Module | Term::ANSIColor |
In: |
lib/term/ansicolor.rb
lib/term/ansicolor/version.rb lib/term/ansicolor/version.rb lib/term/ansicolor.rb |
The ANSIColor module can be used for namespacing and mixed into your own classes.
COLORED_REGEXP | = | /\e\[(?:(?:[349]|10)[0-7]|[0-9])?m/ | Regular expression that is used to scan for ANSI-sequences while uncoloring strings. | |
VERSION | = | '1.0.7' | Term::ANSIColor version | |
VERSION | = | '1.0.7' | Term::ANSIColor version | |
COLORED_REGEXP | = | /\e\[(?:(?:[349]|10)[0-7]|[0-9])?m/ | Regular expression that is used to scan for ANSI-sequences while uncoloring strings. |
Turns the coloring on or off globally, so you can easily do this for example:
Term::ANSIColor::coloring = STDOUT.isatty
Turns the coloring on or off globally, so you can easily do this for example:
Term::ANSIColor::coloring = STDOUT.isatty
Returns true if Term::ANSIColor supports the feature.
The feature :clear, that is mixing the clear color attribute into String, is only supported on ruby implementations, that do not already implement the String#clear method. It‘s better to use the reset color attribute instead.
Returns true if Term::ANSIColor supports the feature.
The feature :clear, that is mixing the clear color attribute into String, is only supported on ruby implementations, that do not already implement the String#clear method. It‘s better to use the reset color attribute instead.
Returns an uncolored version of the string, that is all ANSI-sequences are stripped from the string.
Returns an uncolored version of the string, that is all ANSI-sequences are stripped from the string.