UvAnsi class abstract final

A collection of ANSI escape sequence constants and utilities.

This class provides static constants for common terminal control sequences such as cursor movement, screen clearing, and mode switching.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

cursorBackward(int n) String
Returns an ANSI sequence that moves the cursor backward by n columns.
cursorBackwardTab(int n) String
Returns an ANSI sequence for backward-tab by n stops.
cursorDown(int n) String
Returns an ANSI sequence that moves the cursor down by n rows.
cursorForward(int n) String
Returns an ANSI sequence that moves the cursor forward by n columns.
cursorHorizontalForwardTab(int n) String
Returns an ANSI sequence for forward-tab by n stops.
cursorPosition(int col1, int row1) String
Returns an ANSI sequence that moves the cursor to 1-based col1/row1.
cursorUp(int n) String
Returns an ANSI sequence that moves the cursor up by n rows.
deleteCharacter(int n) String
Returns an ANSI sequence to delete n characters.
deleteLine(int n) String
Returns an ANSI sequence to delete n lines.
eraseCharacter(int n) String
Returns an ANSI sequence to erase n characters.
horizontalPositionAbsolute(int col1) String
Returns an ANSI sequence that moves to absolute 1-based col1.
insertCharacter(int n) String
Returns an ANSI sequence to insert n characters.
insertLine(int n) String
Returns an ANSI sequence to insert n lines.
repeatPreviousCharacter(int n) String
Returns an ANSI sequence to repeat the previous character n times.
Returns the OSC 8 sequence that clears the current hyperlink.
scrollDown(int n) String
Returns an ANSI sequence to scroll down by n lines.
scrollUp(int n) String
Returns an ANSI sequence to scroll up by n lines.
Returns an OSC 8 hyperlink sequence for url and params.
setTopBottomMargins(int top1, int bottom1) String
Returns an ANSI sequence to set scrolling margins to top1/bottom1.
verticalPositionAbsolute(int row1) String
Returns an ANSI sequence that moves to absolute 1-based row1.

Constants

beginSynchronizedUpdate → const String
Begin Synchronized Update — tells the terminal to start buffering output.
cursorHomePosition → const String
Moves the cursor to the home position (top-left corner).
disableBracketedPaste → const String
Disables bracketed paste mode.
disableFocusReporting → const String
Disables focus reporting.
disableMouseAllEvents → const String
Disables mouse tracking for all events.
disableMouseSgr → const String
Disables mouse SGR extended coordinates.
enableBracketedPaste → const String
Enables bracketed paste mode.
enableFocusReporting → const String
Enables focus reporting.
enableMouseAllEvents → const String
Enables mouse tracking for all events.
enableMouseSgr → const String
Enables mouse SGR extended coordinates.
endSynchronizedUpdate → const String
End Synchronized Update — tells the terminal to flush buffered output.
eraseEntireLine → const String
Erases the entire current line.
eraseEntireScreen → const String
Erases the entire screen.
eraseLineLeft → const String
Erases from the beginning of the line to the cursor.
eraseLineRight → const String
Erases from the cursor to the end of the line.
eraseScreenBelow → const String
Erases the screen below the cursor.
hideCursor → const String
Hides the cursor (DECTCEM).
resetModeAltScreenSaveCursor → const String
Resets alternate screen buffer and restores cursor (DECRST 1049).
resetModeAutoWrap → const String
Resets auto wrap mode (DECAWM).
resetStyle → const String
reverseIndex → const String
Reverse index — moves the cursor up one line, scrolling if needed.
setModeAltScreenSaveCursor → const String
Alternate screen buffer with saved cursor (DECSET 1049).
setModeAutoWrap → const String
Sets auto wrap mode (DECAWM).
showCursor → const String
Shows the cursor (DECTCEM).