Class | Mutter::Mutterer |
In: |
lib/mutter/mutterer.rb
|
Parent: | Object |
Parse a string to ANSI codes
if the glyph is a pair, we match [0] as the start and [1] as the end marker. the matches are sent to +stylize+
Apply styles to a string
if the style is a default ANSI style, we add the start and end sequence to the string. if the style is a custom style, we recurse, sending the list of ANSI styles contained in the custom style. TODO: use ';' delimited codes instead of multiple \e sequences