Determine attributes of ANSI-Colored string

Parse a string colored with ANSI escape sequences into a structure suitable for reformatting (into HTML, for example). The output of terminal commands can be marked up with colors and formatting that in some instances you'd like to preserve. This module is essentially the inverse of Term::ANSIColor. The array refs returned from parse can be passed back in to 'Term::ANSIColor::colored'. The strings may not match exactly due to different ways the attributes can be specified, but the end result should be colored the same. This is a '::Tiny' module... it attempts to be correct for most cases with a small amount of code. It may not be 100% correct, especially in complex cases. It only handles the 'm' escape sequence ('\033[0m') which produces colors and simple attributes (bold, underline) (like what can be produced with Term::ANSIColor). Other escape sequences are removed by default but you can disable this by passing 'remove_escapes => 0' to the constructor. If you do find bugs please submit tickets (with patches, if possible).

Nie je dostupný žiadny oficiálny balík pre openSUSE Leap 15.3


openSUSE Tumbleweed

openSUSE Leap 15.3

openSUSE Leap 15.2



Nepodporované distribúcie

Nasledujúce distribúcie nie sú oficiálne podporované. Použite tieto balíky na vlastné riziko.