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.

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

Definition at line 1595 of file terminal.cpp.