FabGL
ESP32 Display Controller and Graphics Library

◆ read() [1/2]

int read ( )

Reads codes from keyboard.

Keyboard queue is available only after Terminal.connectLocally() call.

Returns
The first code of incoming data available (or -1 if no data is available).
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 1578 of file terminal.cpp.