class documentation
A virtual terminal that renders text output to the display.
| Method | __init__ |
Initialize the virtual terminal for a view manager. |
| Method | dry |
Clear the output buffer and enable input. |
| Method | end |
End batch mode and render if needed |
| Method | get |
Return the terminal dimensions. |
| Method | rd |
Read one character from the terminal input buffer. |
| Method | rd |
Read one raw character from the terminal input buffer. |
| Method | start |
Start batch mode - accumulate writes without rendering |
| Method | update |
Update method to be called periodically to handle pending renders |
| Method | wr |
Write text to the terminal, handling ANSI escape sequences. |
| Instance Variable | char |
Undocumented |
| Instance Variable | char |
Undocumented |
| Instance Variable | cursor |
Undocumented |
| Instance Variable | cursor |
Undocumented |
| Instance Variable | cursor |
Undocumented |
| Instance Variable | draw |
Undocumented |
| Instance Variable | input |
Undocumented |
| Instance Variable | input |
Undocumented |
| Instance Variable | output |
Undocumented |
| Instance Variable | screen |
Undocumented |
| Instance Variable | screen |
Undocumented |
| Instance Variable | scroll |
Undocumented |
| Instance Variable | scroll |
Undocumented |
| Instance Variable | storage |
Undocumented |
| Instance Variable | terminal |
Undocumented |
| Instance Variable | view |
Undocumented |
| Method | _convert |
Convert a Picoware button code to a terminal escape sequence. |
| Method | _handle |
Handle an ANSI/VT100 escape sequence. |
| Method | _print |
Print a character to the terminal buffer. |
| Method | _render |
Render the terminal buffer to the display using C module |
| Method | _scroll |
Scroll terminal content up by one line |
| Method | _update |
Poll input and fill the output buffer with terminal sequences. |
| Instance Variable | _batch |
Undocumented |
| Instance Variable | _comment |
Undocumented |
| Instance Variable | _last |
Undocumented |
| Instance Variable | _needs |
Undocumented |
| Instance Variable | _render |
Undocumented |
| Instance Variable | _render |
Undocumented |
| Instance Variable | _string |
Undocumented |
| Instance Variable | _syntax |
Undocumented |
Initialize the virtual terminal for a view manager.
| Parameters | |
viewViewManager | The view manager for draw and input access. |
Write text to the terminal, handling ANSI escape sequences.
| Parameters | |
textstr | The text to write. |
| Returns | |
int | The number of characters written. |
Convert a Picoware button code to a terminal escape sequence.
| Parameters | |
key:int | The button code. |
| Returns | |
bytes or None | The terminal sequence, or None if unmapped. |