A SERVICE OF

logo

Horizontal Spacing Commands
Function:
Carriage return
Format:
ASCII
<CR>
Decimal
13
Hexadecimal OD
Remarks:
Returns the print head to the left margin. If auto-line feed is on,
paper is also advanced one line.
Function:
Set right margin
Format:
ASCII
<ESC>
“Q” n
Decimal
27
81 n
Hexadecimal 1B 51 n
Remarks:
Sets a right margin at n character columns of the current char-
acter width. The value of n can range from 1 to 255. This com-
mand must be sent at the beginning of a line. If a line to be
printed exceeds the right margin, a carriage return and line
feed will be inserted to keep the line from exceeding the right
margin.
Function:
Set left margin
Format:
ASCII
<ESC> "1" n
Decimal 27
108 n
Hexadecimal 1B
49 n
Remarks:
Set the left margin at n character positions of the current char-
acter width. The value of n can range from 0 to 160, but if the
value is too large (if it results in a left margin greater than 8
inches), the command will be ignored. This command should
be placed at the beginning of a line.
A-7