A disabled default is present on this object. To use it, use one of the other constructors or a factory function.
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.
Copying this object is disabled.
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.
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.
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
Writes to the terminal at the current cursor position.
Writes to the terminal at the current cursor position.
The current x position of the output cursor. 0 == leftmost column
The current y position of the output cursor. 0 == topmost row
The current height of the terminal (the number of rows)
The current width of the terminal (the number of columns)
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.