freebsd-ports/devel/ruby-term-ansicolor/pkg-descr
Cheng-Lung Sung 966dff750b Small Ruby library that colors strings using ANSI escape sequences.
It's possible to use constants:

    include Term::ANSIColor
    print red, bold, "red bold", reset, "\n"

    or

    print red(bold("red bold")), "\n"

WWW: http://term-ansicolor.rubyforge.org/
2007-01-12 08:17:31 +00:00

11 lines
265 B
Text

Small Ruby library that colors strings using ANSI escape sequences.
It's possible to use constants:
include Term::ANSIColor
print red, bold, "red bold", reset, "\n"
or
print red(bold("red bold")), "\n"
WWW: http://term-ansicolor.rubyforge.org/