Changing the Place Physical Cursor Option

You can change the default window setting so that the output functions automatically place the physical cursor at the virtual cursor location after it finishes writing a string. To set the place physical cursor option for the window, use sw_opt():

sw_opt(CSRPLACE, state, wnp);

where state is ON or OFF and wnp is the window you want to set the CSRPLACE option for. To turn this option ON, you would call:

sw_opt(CSRPLACE, ON, wnp);

When physical cursor placement is turned ON, string output functions will place the blinking physical cursor at the location of the window's virtual cursor.

To disable this option, call:

sw_opt(CSRPLACE, OFF, wnp);


Home Contents Previous Next