Chapter 2 Configuring the PCL-II Emulation with Control Codes

Cursor Control

Absolute and relative cursor control are provided for the printer. Cursor moves are made in the current active pitch and current active vertical spacing. The following escape sequences perform these functions:

Absolute Row

ESC&a#R

 

Move cursor to absolute row # (where # is an unsigned

 

integer)

Absolute Column

ESC&a#C

 

Move cursor to absolute column # (where # is an

 

unsigned integer)

Relative Row

ESC&a[+#]R

 

Move cursor to relative row # from current position

 

(where # is a signed [+ only] integer)

Relative Column

ESC&a[+/-#]C

 

Move cursor to relative column # from current position

 

(where # is a signed [+/-] integer)

NOTE: A plus (+) or minus (-) sign in front of the value indicates that the new position is relative to the current active position. A (+) sign means the new position is to the right (horizontal) or that paper motion is forward (vertical). A (-) sign means that the new cursor position is to the left of the current active position. The printer does not perform reverse paper motion.

The vertical cursor positioning commands move the current active position to the same column on a new line; the vertical movement is based on the active vertical spacing.

The horizontal cursor positioning commands move the current active position to a new column on the same line; the horizontal movement is based on the active horizontal print pitch.

The first column/row within a line/page is column/row zero. Therefore, the upper left-most position is position (0,0). This escape sequence ignores margins and can therefore be used to set the current active position to any location within the printer’s physical limits. If a request is made for a location outside the printer’s physical limits, the current active position is moved to the appropriate limit.

40

Page 40
Image 40
Compaq 5525B/31/32 manual Cursor Control