FabGL
ESP32 Display Controller and Graphics Library

◆ connectLocally()

void connectLocally ( )

Permits using of terminal locally.

Create a queue where to put ANSI keys decoded from keyboard or as replies to terminal queries.
This queue is accessible with read(), available() and peek() methods.

Example:

Terminal.begin(&VGAController);
Terminal.connectLocally();
// from here you can use Terminal.read() to receive keys from keyboard
// and Terminal.write() to control the display.
Examples:
SSD1306_OLED/128x64/NetworkTerminal/NetworkTerminal.ino, SSD1306_OLED/128x64/RTClock/RTClock.ino, VGA/Altair8800/Altair8800.ino, VGA/LoopbackTerminal/LoopbackTerminal.ino, and VGA/NetworkTerminal/NetworkTerminal.ino.

Definition at line 572 of file terminal.cpp.