TerminalWidget
class TerminalWidget : WidgetGroup, OnScrollHandler {
ScrollBar _verticalScrollBar;
TerminalContent _content;
TerminalDevice _device;
Signal!TerminalInputHandler onBytesRead;
bool _echo;
}
A destructor is present on this object, but not explicitly documented in the source.
- handleFocusChange
void handleFocusChange(bool focused, bool receivedFocusFromKeyboard = false)
override to handle focus changes
- 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
- onScrollEvent
bool onScrollEvent(AbstractSlider source, ScrollEvent event)
- deviceName
string deviceName [@property getter]
returns terminal/tty device (or named pipe for windows) name
- echo
bool echo [@property getter]
- echo
bool echo [@property setter]