class Ansi2Html
- Ansi2Html
- Reference
- Object
Defined in:
ansi2html.crConstant Summary
-
ANSI_ESC_SEQ_REGEX =
/\A\x1b\[((?:\d{1,3};?)+|)m/
-
CHARS_TO_REMOVE_REGEX =
/\A\x08+/
-
MALFORMED_SEQ_REGEX =
/\A\x1b\[?[\d;]{0,3}/
-
PALLETE =
{} of Symbol => Hash(String, String)
-
REAL_TEXT_REGEX =
/\A([^\x1b\x08]+)/m
-
STYLES =
{} of String => String
Constructors
Instance Method Summary
- #convert(input : String | Array(String), pallete = :linux)
- #each(&block : String -> )
- #push_style(style)
- #push_tag(tag, style = nil)
- #reset_styles
- #tokenize(text, &block : Symbol, String | UInt8 | Tuple(UInt8, UInt8, UInt8) -> )
Constructor Detail
Instance Method Detail
def tokenize(text, &block : Symbol, String | UInt8 | Tuple(UInt8, UInt8, UInt8) -> )
#