- autoHideCursor
void autoHideCursor()
Undocumented in source. Be warned that the author may not have intended to support it.
- autoShowCursor
void autoShowCursor()
Undocumented in source. Be warned that the author may not have intended to support it.
- clear
void clear()
- color
void color(int foreground, int background, ForceOption force, bool reverseVideo)
Changes the current color. See enum Color for the values.
- doTermcap
bool doTermcap(string key, T t)
Undocumented in source. Be warned that the author may not have intended to support it.
- findSequenceInTermcap
string findSequenceInTermcap(char[] sequenceIn)
Undocumented in source. Be warned that the author may not have intended to support it.
- flush
void flush()
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
- getSize
int[] getSize()
Undocumented in source. Be warned that the author may not have intended to support it.
- getTermcap
string getTermcap(string key)
Undocumented in source. Be warned that the author may not have intended to support it.
- getline
string getline(string prompt)
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.
- hideCursor
void hideCursor()
- isMacTerminal
bool isMacTerminal()
Undocumented in source. Be warned that the author may not have intended to support it.
- moveTo
void moveTo(int x, int y, ForceOption force)
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
- readTermcap
void readTermcap()
Undocumented in source. Be warned that the author may not have intended to support it.
- reset
void reset()
Returns the terminal to normal output colors
- setTitle
void setTitle(string t)
Changes the terminal's title
- setTrueColor
bool setTrueColor(RGB foreground, RGB background, ForceOption force)
Attempts to set color according to a 24 bit value (r, g, b, each >= 0 and < 256).
- showCursor
void showCursor()
- terminalInFamily
bool terminalInFamily(string[] terms)
Undocumented in source. Be warned that the author may not have intended to support it.
- underline
void underline(bool set, ForceOption force)
Note: the Windows console does not support underlining
- updateSize
void updateSize()
Undocumented in source. Be warned that the author may not have intended to support it.
- write
void write(T t)
Writes to the terminal at the current cursor position.
- writePrintableString
void writePrintableString(char[] s, ForceOption force)
Undocumented in source. Be warned that the author may not have intended to support it.
- writeStringRaw
void writeStringRaw(char[] s)
Undocumented in source. Be warned that the author may not have intended to support it.
- writef
void writef(string f, T t)
- writefln
void writefln(string f, T t)
- writeln
void writeln(T t)
Writes to the terminal at the current cursor position.
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.