![]() | Programming Guide | ![]() |
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:
- 0 causes subsequent status line messages to be displayed without the cursor's position display.
sm_c_vistoggles display of the cursor position on and off according to the value ofdisplay. This function has no effect if theCURPOSentry 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_visoverrides it.
#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);
...
}
![]()
![]()
![]()
![]()