MoveCursor() action

From The x3270 Wiki

The MoveCursor() action moves the terminal cursor to a specific location. It uses 0-origin coordinates.

Parameters

If two parameters are specified, they are:

row
The 0-origin row number.
column
The 0-origin column number.

If one parameter is specified, it is:

offset
An absolute cursor offset. New in 4.0

On x3270 only, MoveCursor() can be invoked with no arguments, which causes the 3270 cursor to be moved to the location of the mouse cursor. Such a call can only be made from a keymap.

Examples

Move the cursor to the upper left-hand corner of the screen.

MoveCursor(0,0)

Move the cursor to the last column of the second row of the screen (on a model 2) using row and column coordinates.

MoveCursor(1,79)

Move the cursor to the last column of the second row of the screen (on a model 2) using an offset. Note that cursor offsets are always 0-origin. New in 4.0

MoveCursor(159)

See also

MoveCursor1() action: the 1-origin version of MoveCursor()