dart_console/ny_dart_console library

Classes

BoxGlyphSet
Calendar
Console
A representation of the current console window.
Coordinate
A screen position, measured in rows and columns from the top-left origin of the screen. Coordinates are zero-based, and converted as necessary for the underlying system representation (e.g. one-based for VT-style displays).
KeyStroke
A representation of a keystroke.
ProgressBar
A facility for drawing a progress bar in the terminal.
ScrollbackBuffer
The ScrollbackBuffer class is a utility for handling multi-line user input in readline(). It doesn't support history editing a la bash, but it should handle the most common use cases.
Spinner
A spinner animation for indicating indeterminate loading states.
SpinnerStyle
Predefined spinner styles.
Table
An experimental class for drawing tables. The API is not final yet.

Extensions

StringUtils on String

Functions

ansiCursorPosition(int row, int col) String
ansiSetColor(int color) String
ansiSetExtendedBackgroundColor(int color) String
ansiSetExtendedForegroundColor(int color) String
ansiSetRgbBackgroundColor(int r, int g, int b) String
Sets the background color using 24-bit RGB values (TrueColor).
ansiSetRgbForegroundColor(int r, int g, int b) String
Sets the foreground color using 24-bit RGB values (TrueColor).
ansiSetTextStyles({bool bold = false, bool faint = false, bool italic = false, bool underscore = false, bool blink = false, bool inverted = false, bool invisible = false, bool strikethru = false}) String