TermWrapper

Wrapper to arsd.terminal to make it bit easier to manage

Constructors

this
this()

constructor

Destructor

~this
~this()
Undocumented in source.

Members

Functions

color
void color(Color fg, Color bg)

sets colors

fill
void fill(dchar ch)

fills all cells with a character

fill
void fill(dchar ch, int x1, int x2, int y1, int y2)

fills a rectangle with a character

flush
void flush()

flush to terminal

getEvent
bool getEvent(int msecTimeout, Event event)

waits msecTimeout msecs for event to occur. Returns as soon as it occurs (or if one had occurred before calling it)

moveCursor
void moveCursor(int x, int y)

moves cursor to position

put
void put(int x, int y, dchar ch)

writes a character ch at a position (x, y)

put
void put(int x, int y, dchar ch, Color fg, Color bg)

writes a character ch at a position (x, y) with fg as foreground and bg as background color

write
void write(int x, int y, dstring str)

writes a string at position (x, y)

write
void write(int x, int y, dstring str, Color fg, Color bg)

writes a string at position (x, y) with fg as foreground and bg as background color

Properties

cursorVisible
bool cursorVisible [@property setter]

Set true to show cursor, false to hide cursor

height
int height [@property getter]
width
int width [@property getter]

Meta