utils library

Enums

TextStyle

Constants

clearScreen → const String
cursorHide → const String
cursorLeft → const String
cursorRestore → const String
cursorSave → const String
cursorShow → const String
eraseLine → const String
eraseLineEnd → const String
eraseLineStart → const String
eraseScreen → const String

Functions

cursorBackward([int count = 1]) String
cursorDown([int count = 1]) String
cursorForward([int count = 1]) String
cursorMove(int x, int y) String
cursorNextLine([int count = 1]) String
cursorPrevLine([int count = 1]) String
cursorTo(int x, [int? y]) String
cursorUp([int count = 1]) String
eraseDown([int count = 1]) String
eraseLines(int count) String
eraseUp([int count = 1]) String
getTextTruncatedWidth(String input, {num limit = double.infinity, String ellipsis = '', num? ellipsisWidth, num controlWidth = 0, num tabWidth = 8, num emojiWidth = 2, num regularWidth = 1, num? wideWidth}) → ({bool ellipsed, int index, bool truncated, num width})
getTextWidth(String input, {num controlWidth = 0, num tabWidth = 8, num emojiWidth = 2, num regularWidth = 1, num? wideWidth}) num
scrollDown([int count = 1]) String
scrollLeft([int count = 1]) String
scrollRight([int count = 1]) String
scrollUp([int count = 1]) String
stripVTControlCharacters(String text) String
Remove all VT control characters. Use to estimate displayed string width.
styleText(String text, Iterable<TextStyle> styles) String
wrapAnsi(String text, int columns, {bool? trim, bool? wordWrap, bool? hard}) String