FabGL
ESP32 Display Controller and Graphics Library

◆ setText() [2/2]

void setText ( char const *  text,
int  length,
bool  moveCursor = true 
)

Sets initial text specifying length.

Call this method if the input must have some text already inserted. This method can be also called during editing to replace current text.

Parameters
textInitial text.
lengthText length
moveCursorIf true the cursor is moved at the end of initial text.

Definition at line 5241 of file terminal.cpp.