Browse Prior Art Database

Save and Restore Cursor Command

IP.com Disclosure Number: IPCOM000036874D
Original Publication Date: 1989-Nov-01
Included in the Prior Art Database: 2005-Jan-29
Document File: 1 page(s) / 12K

Publishing Venue

IBM

Related People

Brown, JK: AUTHOR [+3]

Abstract

Disclosed is a new IBM Personal Printer ASCII command to save and restore the cursor position. The printer driver, using this command, can save a cursor position on a form, process more of the form and then return to the saved position.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 64% of the total text.

Page 1 of 1

Save and Restore Cursor Command

Disclosed is a new IBM Personal Printer ASCII command to save and restore the cursor position. The printer driver, using this command, can save a cursor position on a form, process more of the form and then return to the saved position.

This command is an extended command in the ASCII datastream architecture. The command data byte sequence in BASIC notation is LPRINT CHR$(27), CHR$(91), CHR$(106), CHR$(CNT1), CHR$(CNTh), CHR$(Mode).

This command permits the printer user to stack up to 31 cursor positions and restore the cursor position from the stack in a last-in, first-out order. The user may also save and/or restore the cursor position to a specific stack location within the 31 possible locations. The X or Y cursor position can be restored individually without disturbing the other. This can be done using the restore by lastin, first-out capability (Pop) or by direct position specification.

The specification of the action requested is done with the Mode byte. The Mode byte is divided into two pieces. The high-order bit is not used. The next 5 bits from the high-order bit is the stack position being referenced. If this value is 0, then the request is for a last-in, first-out operation (Push/Pop). If this value is non- zero, then the request is for a direct register operation. The low- order two bits is the action requested. A value of zero is a request to save the cursor position (X and Y). A value of one is a request to restore th...