Static variables

@:value("\x1B[")staticfinalinlineread onlyESC:String = "\x1B["

ANSI escape sequence header

Static methods

staticinlineattr(str:String, attr:AnsiTextAttribute):String

sets the given text attribute

staticinlinebg(str:String, color:AnsiColor):String

set the text background color


>>> Ansi.bg(RED) == "\x1B[41m"

staticinlineclearLine():String

Clear all characters from current position to the end of the line including the character at the current position

staticinlineclearScreen():String

Clears the screen and moves the cursor to the home position

staticinlinefg(str:String, color:AnsiColor):String

set the text foreground color


>>> Ansi.fg(RED) == "\x1B[31m"

staticinlinereset(str:String):String

staticstripColor(output:String):String