The handheld terminals support a list of escape sequences that can be used in functions like printf or putc to denote special characters like a form feed, backspace and inverted text display.
The complete set can be found below.

Special characters

Special charactersDescription
\a Alert (bell) character.
Sounds the buzzer.
\b Backspace.
Decrements the cursor position,
and removes the character at the new position
\f Form feed.
Clears the display.
\n New line.
Places the cursor at the beginning of the line below the current line.
If the cursor is at the bottom line,
the display contents are scrolled up by one line.
\r Carriage return.
Places the cursor at the start of the current line.
\\ \ The backslash sign.
\' ' The single quote sign.
\" "The double quote sign.
%% % The percent sign.
\tr Toggles inverted text display on/off.
By default inverted display is off.

Last updated: 2020/10/21