SGX-120L User Manual, rev2.0
Page 5 of 21
http://www.seetron.com/sgxmnl.htm
2002-11-13
Text Control Codes
The table below lists the text control codes. A separate section lists the graphics instructions. To send
control codes from most terminal programs, hold down the control key and press another key. For
example, to send ctrl-L (clear screen), hold down Ctrl and press L. To send control codes from a program,
transmit a byte containing the appropriate ASCII value. For example, ctrl-L, the clear-screen instruction,
has an ASCII value of 12 (see table). A program would send a byte value of 12 (0C hex or 00001100
binary) to clear the screen.
NOTE: The font-size instruction, ESC-F, is described in the graphics portion of this manual.
Null ASCII 0 (Control-@)
The G12032 ignores nulls without storing them in its data buffer. Sending a null is the equivalent of a brief
time delay. Delay lengths depend on serial speed--at 2400 baud, a null takes 4 milliseconds (ms); at 9600,
1 ms.
ASCII
Value
Control Code
ASCII Name
G12032 Function
0
ctrl-@
NUL
Null; ignored prior to buffer
1
ctrl-A
SOH
Send cursor home (position 0, upper left corner)
2
ctrl-B
STX
Begin inverse text (white on black printing)
3
ctrl-C
ETX
End inverse text
4
ctrl-D
ETO
Ignored
5
ctrl-E
ENQ
Ignored
6
ctrl-F
ACK
Ignored
7
ctrl-G
BEL
Ignored
8
ctrl-H
BS
Backspace
9
ctrl-I
HTAB
Tab to next multiple-of-4 column
10
ctrl-J
LF
Smart linefeed; move down one row
11
ctrl-K
VTAB
Vertical tab; move up one row
12
ctrl-L
FF
Formfeed; clear the screen
13
ctrl-M
CR
Carriage return; move to beginning of next line
14
ctrl-N
SO
Turn backlight on
15
ctrl-O
SI
Turn backlight off
16
ctrl-P
DLE
Accept cursor-position data
17
ctrl-Q
DC1
Ignored
18
ctrl-R
DC2
Accept right-alignment data
19-26
-
-
All ignored
27
ctrl-[
ESC
Escape; begin graphics instruction