Programming Guide



sm_c_vis

Turns the cursor position display on or off

void sm_c_vis(int display);

display
Specifies whether to turn the cursor position display on or off:

Description

sm_c_vis toggles display of the cursor position on and off according to the value of display. This function has no effect if the CURPOS entry in the video file is not defined. In this case, the cursor position display never appears.

Panther uses an asynchronous function and a status line function to perform the cursor position display. If either one is already installed, sm_c_vis overrides it.

Example

#include <smdefs.h>
#include <smkeys.h>

/* Toggle the cursor position display on or off when
* the PF10 key is struck. The first time the key is
* struck, it will go on.
*/

static int cpos_on = 0;

switch (sm_input(IN_DATA))
{
...
case PF10:
sm_c_vis (cpos_on ^= 1);
...
}