User`s manual

7–70 Digital Emulation
Set Left and Right Margins (DECSLRM)
ASCII Code ESC [ Pn1 ; Pn2 s
Hex Code 1B 5B Pn1 3B Pn2 73
Dec Code 27 91 Pn1 59 Pn2 115
Purpose Sets the left and right margins.
Discussion Pn1 sets the left margin and the line home position. Pn2 sets the right
margin. If the first parameter is greater than the second parameter, the
printer will ignore the sequence. The unit of measurement can be
character cells, decipoints, or pixels. The maximum allowable value of
the Pn1 parameter is always one less than the Pn2 parameter.
The left horizontal margin defines the first printable position on a line. The
right horizontal margin defines the last printable position on a line. These are
called hard margins because you cannot print outside the area defined by the
margins, except under two conditions:
1. Using the Drawing Vectors (DECVEC) sequence, you can draw lines
outside the margins.
2. If you justify text, but the spacing between words is less than the
minimum specified width of the space character, the text will print
unjustified and will exceed the right margin.
Margins settings go into effect as soon as they are received. The printer will
set the margins where specified, except in the following cases:
If Pn1 = 0 or is omitted, the left margin is unchanged.
If Pn2 = 0 or is omitted, the right margin is unchanged.
If Pn2 is greater than the printable width, the right margin is set to the
right printable limit.
If the sequence sets the left margin to the right of the right margin, the
command is ignored.
If the active position is less than the new left margin, the active position
is set to the new left margin.