Commands: System Functions

It's possible to dynamically change the screen title text and action button labels. Setting an empty label to a button makes it look disabled. The buttons send ASCII 1-5 when clicked. Those changes are not retained after restart.

CodeMeaning
`\ec` Clear screen, reset attributes and cursor. The screen size, title and button labels remain unchanged.
`\e[5n` Query device status, ESPTerm replies with `\e[0n` "device is OK". Can be used to check if the terminal has booted up and is ready to receive commands.
_CAN_ (24) This ASCII code is not a command, but is sent by ESPTerm when it becomes ready to receive commands. When this code is received on the UART, it means ESPTerm has restarted and is ready. Use this to detect spontaneous restarts which require a full screen repaint.
`\e]0;title\a` Set screen title (this is a standard OSC command)
\e]81;btn1\a \\ \e]82;btn2\a \\ \e]83;btn3\a \\ \e]84;btn4\a \\ \e]85;btn5\a \\ Set button 1-5 label - eg.`\e]81;Yes\a` sets the first button text to "Yes".
\e[?800h \\ \e[?800l Show (`h`) or hide (`l`) action buttons (the blue buttons under the screen).
\e[?801h \\ \e[?801l Show (`h`) or hide (`l`) menu/help links under the screen.
`\e[8;r;ct` Set screen size (this is a command borrowed from xterm)