User manual

Instruction set
5
Command Description Example LUA string
J Erase display content according to
option n. Options are: 0 = from cursor
to end, 1 = from start to cursor, 2
= full display. Omitting n erases the
whole display.
ESC[2J ESC[J "\27[2J"
K Erase line content according to option
n. Options are: 0 = from cursor to line
end, 1 = from line start to cursor, 2 =
full line. Omitting n erases the current
line from cursor to end.
ESC[2K ESC[K "\27[2K"
P Delete n characters right to the
cursor. The character at the cursor
position is also cleared. If n is omitted,
one character is erased.
ESC[P ESC[4P "\27[4P"
M Delete n characters left to the cursor.
The character at the cursor position
is also cleared. If n is omitted, one
character is erased.
ESC[M ESC[4M "\27[4M"
Scroll functions
S Scroll display content n text lines up.
If n is omitted, one line is scrolled.
ESC[S ESC[1S "\27[2S"
T Scroll display content n text lines
down. If n is omitted, one line is
scrolled.
ESC[T ESC[1T "\27[2T"
Table3.1.Text functions
Commands l and h are used to dis/enable several options that influence the textual
representation. The description of these options are collected in Table3.2, “Options”.
Option h: enable l: disable
1 If cursor presentation is also enabled, the
cursor is drawn as a large block.
If cursor presentation is also enabled, the
cursor is drawn as a thin line.
2 Cursor presentation is turned on. Cursor presentation is turned off.
25 Cursor blink is switched on. Cursor blink is switched off.
3 Text is drawn in inverse mode. Background
is dark.
Text is drawn in normal mode. Background
is clear.
8 Automatic wrap on end of line is on. Display
will scroll when last line is wrapped.
Automatic wrap at end of line is off.
Table3.2.Options
This LUA sample code displays some text and the current time and date on top of the
screen in two different modes.