FabGL
ESP32 Display Controller and Graphics Library

◆ waitFor()

bool waitFor ( int  value,
int  timeOutMS = -1 
)

Wait for a specific code from keyboard, discarding all previous codes.

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

Parameters
valueChar code to wait for.
timeOutMSTimeout in milliseconds. -1 = no timeout (infinite wait).
Returns
True if specified value has been received within timeout time.

Definition at line 1720 of file terminal.cpp.