TerminalWidget

Undocumented in source.

Constructors

this
this()
Undocumented in source.
this
this(string ID)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

handleFocusChange
void handleFocusChange(bool focused, bool receivedFocusFromKeyboard)

override to handle focus changes

handleInput
void handleInput(dstring chars)
Undocumented in source. Be warned that the author may not have intended to support it.
handleTextInput
bool handleTextInput(dstring str)
Undocumented in source. Be warned that the author may not have intended to support it.
layout
void layout(Rect rc)

Set widget rectangle to specified value and layout widget contents. (Step 2 of two phase layout).

measure
void measure(int parentWidth, int parentHeight)

Measure widget according to desired width and height constraints. (Step 1 of two phase layout).

onDraw
void onDraw(DrawBuf buf)

Draw widget at its position to buffer

onKeyEvent
bool onKeyEvent(KeyEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
onScrollEvent
bool onScrollEvent(AbstractSlider source, ScrollEvent event)

handle scroll event

resetTerminal
void resetTerminal()
Undocumented in source. Be warned that the author may not have intended to support it.
scrollTo
void scrollTo(int y)
Undocumented in source. Be warned that the author may not have intended to support it.
write
void write(string bytes)
Undocumented in source. Be warned that the author may not have intended to support it.
write
void write(dstring chars)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

deviceName
string deviceName [@property getter]

returns terminal/tty device (or named pipe for windows) name

echo
bool echo [@property getter]

check echo mode

echo
bool echo [@property setter]

set echo mode

Static functions

parseParam
bool parseParam(dchar[] buf, int index, int value)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_content
TerminalContent _content;
Undocumented in source.
_device
TerminalDevice _device;
Undocumented in source.
_echo
bool _echo;
Undocumented in source.
_verticalScrollBar
ScrollBar _verticalScrollBar;
Undocumented in source.
onBytesRead
Signal!TerminalInputHandler onBytesRead;
Undocumented in source.

Meta