When you explicitly change the virtual cursor position, either by a call to cs_mv() or by direct assignment, the physical cursor does not move to the new virtual cursor location, even if the automatic physical cursor placement option is on. If you want to move both the virtual and physical cursor to a new location, use the move cursors in window function, csr_mvwn():
|
||
|
|
|
|
|
|
|
|
|
In the following code example, let's assume that the virtual cursor advance option has been turned off.
|
The string "Do you ..." is written to the window starting at a virtual cursor position of (0, 0). The physical cursor remains where it was when wn_up() was called. After the string is written, the virtual cursor and the physical cursor are still at (0, 0). The csr_mvwn() moves both to the end of the text written to the window.