Genicom GEK 00031B User Manual

Page 190

Advertising
background image

Chapter 7. Dec LG/Compaq LG Plus Emulation

GEK-00029B

190

DECSLRM

Set Left and Right Margins: Sets the left and right margins. 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 sequence will be ignored. 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 margin defines the first printable position on a line. The right
margin defines the last printable position on a line.
General Command Syntax
ESC [ Pn1 ; Pn2 s
Indeterminate Conditions
If Pn1 is 0 or omitted, the left margin is unchanged.

If Pn2 is 0 or omitted, the right margin is unchanged.

If Pn2 is greater then the printable width, the right margin is set to
the right 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 left margin.

Decimal:

27 71 Pn1 59 Pn2 115

Hex

:

1B 5B Pn1 3B Pn2 73

BASIC:

CHR$(27);"[";Pn1;";";Pn2;"s";

DECSLPP

Set Lines per Physical Page: Defines form length. DECSLPP sets the
top margin to 1 and the bottom margin to the form length. Pn sets

the form length in the units defined by the PUM and SSU sequences.
General Command Syntax
ESC [ Pn t
Indeterminate Conditions
If Pn1 is 0 or omitted, the form length is set to 11 inches.

Decimal:

27 71 Pn 88

Hex

:

1B 5B Pn 74

BASIC:

CHR$(27);"[";Pn;"t";

Advertising