Carriage return
The cursor is moved to the start of the line in which it is currently positioned
when the
CR
command (hexadecimal 0D) is entered. The command is
ignored if the cursor is already at the start of the line.
Delete display
The display can be deleted with this ESC sequence. The cursor position
remains unchanged. The ESC sequence is as follows:
Code
Hexadezimal
ESC ‘[‘ ‘2’ ‘J’
1B 5B 32 4A
Position cursor
The cursor position can be defined with this ESC sequence. The cursor is
not visible on the display whilst this is being carried out. The following ESC
sequence (for example) can be implemented:
Code
Hexadezimal
ESC ‘[‘ ‘Py’ ; ‘Px’ ‘H’
1B 5B 31 3B 31 48
The parameters are transferred as ASCII characters and have the following
meaning:
Parameter
Meaning
Py
This parameter defines the line.
Px
This parameter defines the column.
Example
The parameters are to replaced with the following values if you wish to
position the cursor at the very start of the first line:
15
CONTROL SEQUENCES