Controlling the Physical Cursor

There is a virtual cursor associated with each window. There is one physical cursor associated with the physical screen. By default, the physical cursor is independent of the virtual cursors. However, at times you may wish to force the physical cursor to appear at the virtual cursor location.

Functions that associate the physical and virtual cursors are listed in Table 24.2.

Naming Tip: All functions that manipulate the physical cursor use the abbreviation "csr."

Table 24.2: Moving the Virtual & Physical Cursors in Windows

Function Action in Window
sw_opt(CSRPLACE, state, wnp) Sets option to have physical cursor always appear at virtual cursor location
csr_plwn(wnp) Places physical cursor at virtual cursor location. However, if this location is not currently displayed in a window set on the screen, the physical cursor will not move.
csr_mvwn(row, col, wnp) Moves the virtual cursor and physical cursor to the specified coordinates in the window's buffer. However, if this location is not currently displayed in a window set on the screen, the physical cursor will not move

More:

Changing the Place Physical Cursor Option

Placing the Physical Cursor at the Virtual Cursor Location

Moving the Physical Cursor

Moving the Virtual Cursor and the Physical Cursor Together

Reading the Location of the Physical Cursor

Hiding and Restoring the Physical Cursor

Changing the Size and Style of the Physical Cursor


Home Contents Previous Next