Constructs an instance of Terminal representing the capabilities of the current terminal.
A destructor is present on this object, but not explicitly documented in the source.
A postblit is present on this object, but not explicitly documented in the source.
Clears the screen.
Changes the current color. See enum Color for the values.
The current x position of the output cursor. 0 == leftmost column
The current y position of the output cursor. 0 == topmost row
Flushes your updates to the terminal. It is important to call this when you are finished writing for now if you are using the version=with_eventloop
gets a line, including user editing. Convenience method around the LineGetter class and RealTimeConsoleInput facilities - use them if you need more control. You really shouldn't call this if stdin isn't actually a user-interactive terminal! So if you expect people to pipe data to your app, check for that or use something else.
The current height of the terminal (the number of rows)
hides the cursor
Moves the output cursor to the given position. (0, 0) is the upper left corner of the screen. The force parameter can be used to force an update, even if Terminal doesn't think it is necessary
Returns the terminal to normal output colors
Changes the terminal's title
Attempts to set color according to a 24 bit value (r, g, b, each >= 0 and < 256).
shows the cursor
Note: the Windows console does not support underlining
The current width of the terminal (the number of columns)
Writes to the terminal at the current cursor position.
Writes to the terminal at the current cursor position.
Terminal is only valid to use on an actual console device or terminal handle. You should not attempt to construct a Terminal instance if this returns false;
Encapsulates the I/O capabilities of a terminal.
Warning: do not write out escape sequences to the terminal. This won't work on Windows and will confuse Terminal's internal state on Posix.