User Tools

Site Tools


jvs:cigal:manual:chapter3:getxyz

CIGAL Reference Manual, Chapter 3 (Functions): GETXYZ

GETXYZ -- Read the cursor position

usage: v = getxyz(flag)

GETXYZ reads the cursor's position and returns a vector with the cursor X, Y, Z and Key values. The Key value is the character or command number that terminated the GETXY call. These values are returned in a VECTOR suitable for assigning to a VECTOR type variable. Assigning the results of a GETXYZ call to a NUMBER variable, assigned the KEY value. In this case you read the X and Y values using the number registers CURSX and CURSY (see CURSX(4) and CURSY(4)). For example:

                getxyz

then move the cursor around and when done type a 'q' on the keyboard. GETXY returns:

                100 150 0 113

100 and 150 are sample X and Y cursor positions and 113 is the ASCII code for the letter 'q'.

See Also:
CURSOR(4), CURSX(4), CURSY(4), GETX(4), GETY(4), VECTORS(1), ZDEV(4), ZVALUE(4)

CIGAL Home, CIGAL Manual, Functions List, Manual Help

jvs/cigal/manual/chapter3/getxyz.txt · Last modified: 2023/02/23 18:43 (external edit)