![](/images/new-backgrounds/1265909/265909213x1.webp)
Printek Emulation
Horizontal Margins
Printing is allowed only within the left and right margins. Exceeding the right margin will cause line wrap, setting the current print position to the left margin and advancing the paper one line.
Set Left and Right Margin | ESC H n1 n2 |
Sets the left margin to column n1 and the right margin to column n2 at the current character spacing. 0≥n1≥255, 0≥n2≥255. If character spacing is changed after setting the margins, the position of the margins will not change.
The left margin is inclusive, but the right margin is exclusive. For example, a left margin at column 10 still allows a character to be printed in column 10. A right margin at column 75 allows a character to be printed in column 74, but not in column 75.
The leftmost column is column zero. The left margin must be left of the right margin and ≥13.4 inches. The right margin must be right of the left margin and ≥13.6 inches. Invalid margins will be ignored. Overrides the “Left Margin” and “Right Margin” values in the forms menu.
Example: The following escape sequence will set a one inch left margin, and will set a right margin
7.5inches from the left edge of the form, if character spacing is currently 10 cpi. For a standard 8.5 inch wide form, this would result in a one inch right margin.
Escape Sequence: | ESC | H | 10 | 75 |
Hexadecimal: | 1B | 48 | 0A | 4B |
101