Placing the Physical Cursor at the Virtual Cursor Location

At any time, whether or not the automatic cursor placement option is set, you can place the physical cursor directly at the virtual cursor location with the place physical cursor in window function, csr_plwn():

int csr_plwn(wnp)

WINDOWPTR wnp;        /* Pointer to a window            */

In the following code example,

wn_up(ex_wnp);

v_st("This string is writing to the example window.", ex_wnp);

csr_plwn(ex_wnp);

the csr_plwn() call places the physical cursor right after the written string.


Home Contents Previous Next