FreeBSD.software
Home/devel/rubygem-term-ansicolor

rubygem-term-ansicolor

1.11.3

Term::ANSIColor for Ruby

Small Ruby library that colors strings using ANSI escape sequences. It's possible to use constants: print red, bold, "red bold", reset, "\n" or unary functions: print red(bold("red bold")), "\n" Blockforms do also autoreset at the block's end: print red { bold { "red bold" } }, "\n" It's also possible to use this module as Mixin for classes of objects that respond to :to_str, e.g. String. class String include Term::ANSIColor end print "red bold".red.bold, "\n"

Origin: devel/rubygem-term-ansicolor
Category: devel
Size: 148KiB
License: GPLv2
Maintainer: sunpoet@FreeBSD.org
Dependencies: 3 packages
Required by: 1 packages
$pkg install rubygem-term-ansicolor

Dependencies (3)

Required By (1 packages)

More in devel