dart_console library

Console library

Currently requires a UNIX-style terminal emulator (i.e. a terminal that is able to interpret ANSI escape sequences).

Classes

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).
Key
A representation of a keystroke.
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.

Enums

ConsoleColor
The named ANSI colors.
ControlCharacter
Non-printable characters that can be entered from the keyboard.
TextAlignment
Text alignments for line output.