field_cursor()

Purpose

Offsets the logical cursor

Syntax

int field_cursor(row, column)

Parameters

int row

Number of rows by which to offset the cursor

 

int* column

Number of columns by which to offset the cursor

Description

The field_cursor() function is intended for use by developers wishing to create their own askf_x() or inpm_x() functions. It changes the logical cursor position by the specified numbers of rows and columns. This is relative to the top-left of the last field that was displayed with a show() function.

Example

field_start(mapnr, fieldnr, 0);
while (!finished)
{
show(mapnr, fieldnr, 'C', data_size, INPUT_COLOUR);
field_cursor(0, column);
inchar = field_get_character(user.insert_mode);
/* process inchar */
}
show(mapnr, fieldnr, data);
field_end(0);