File: README

package info (click to toggle)
ruby-colored 1.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 96 kB
  • sloc: ruby: 101; makefile: 2
file content (23 lines) | stat: -rw-r--r-- 617 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
cute.

  >> puts "this is red".red
 
  >> puts "this is red with a blue background (read: ugly)".red_on_blue

  >> puts "this is red with an underline".red.underline

  >> puts "this is really bold and really blue".bold.blue

  >> logger.debug "hey this is broken!".red_on_yellow     # in rails

  >> puts Color.red "This is red" # but this part is mostly untested

Windows users:
  You will need the Win32 Console Ansi gem.  Get it:

  $ sudo gem install win32console-1.0.0 --source require.errtheblog.com

  (We're trying to make it official.  Hang in there.)

>> chris[at]ozmm[dot]org
=> http://github.com/defunkt