DEC LA120 Emulation

Vertical Margins

Printing is allowed only within the top and bottom margins. Exceeding the bottom margin will set the current line to the top margin of the next form.

Set Top and Bottom Margins

ESC [ n1 ; n2 r

Sets the top margin to line n1 and the bottom margin to line n2 at the current line spacing. 0≥n1≥255, 0≥n2≥255. If line spacing is changed after setting the margins, the position of the margins will not change. Vertical margins are cleared by ESC [ n t.

The top and bottom margins are both inclusive. For example, a top margin at line 7 still allows text to be printed on line 7, but not on line 6. A bottom margin at line 60 still allows text to be printed on line 60, but not on line 61.

The first line is line one. If n1 or n2 is zero (or is omitted), the corresponding margin is not changed. The top margin must be above the bottom margin. The bottom margin must be below the top margin. The margins cannot exceed the form length. Invalid margins will be ignored. Overrides the “Top Margin” and “Bottom Margin” values in the forms menu.

Example: The following escape sequence will set a top margin at line 7, and will set a bottom margin at line 60. For a standard 11 inch form with 6 lpi line spacing, this would result in one inch top and bottom margins.

Escape Sequence:

ESC

[

7

;

6

0

r

Hexadecimal:

1B

5B

37

3B

36

30

72

Example: The following escape sequence will set a top margin at line 7, without affecting the bottom margin.

Escape Sequence:

ESC

[

7

r

Hexadecimal:

1B

5B

37

72

Example: The following escape sequence will set a bottom margin at line 60, without affecting the top margin.

Escape Sequence:

ESC

[

;

6

0

r

Hexadecimal:

1B

5B

3B

36

30

72

79

Page 85
Image 85
Printek 8000 manual Set Top and Bottom Margins, ESC n1 n2 r