Read Current Pen Position; Read Graphics Cursor Position; Read Cursor Position With Wait - HP 262SA Reference Manual

Dual-system display terminal and word-processing terminal
Table of Contents

Advertisement

Graphics
Read Current Pen Position (Parameter= 2)
The pen position and status are returned as a string of ASCII characters.
Pen Position Request:
Ec
*
5
2
A
The terminal responds:
<X) , <
y) ,
<Pen), <t e r mi na tor)
Where <
x)
=
X coordinate
<v)
= Y coordinate
<Pen)
= Pen state, O=pen up, 1= pen down
For example, assume that the pen is at 360,80, the pen is up, and the terminal is set for the DCl
handshake, with CR as the terminator:
The computer sends:
Ec
*
5
2
A
<terminator) DC1
X coordinate
The terminal responds:
+00360, +00080, 0 CR
Pen state
Y coordinate
Read Graphics Cursor Position (Parameter= 3)
The graphics cursor position is returned as a string of ASCII characters.
Read Graphics Cursor Request:
Ec
*
5
3
A
The terminal responds:
<x) = X coordinate
<
y)
= Y coordinate
When the cursor is positioned in the lower left corner of the screen, the terminal's response is:
+00000, +00000 CR
Read Cursor Position With Wait (Parameter= 4)
This request allows the user to position the cursor, then strike a key to return the position. The
ASCII decimal code for the key stroke is also returned (not the actual character). The code is
returned as three digits. For example, striking an uppercase A returns 065, the ASCII decimal
code for an uppercaseA. Only ASCII character keys generate a response (ie, ROLL UP, ROLL
DOWN, etc., are ignored). The graphics cursor is turned on if it is not already on. If an escape
sequence is received by the terminal after it has received the READ CURSOR with WAIT
command and before a key is struck, the READ CURSOR command is aborted. The new
sequence is executed instead.
D-57

Advertisement

Table of Contents
loading

This manual is also suitable for:

2628a

Table of Contents