cs_adj()

Checks and adjusts the position of the virtual cursor in the window

Call  
#include <vv_sys.h>
int cs_adj(wnp)

WINDOWPTR wnp

Pointer to window

Returns
0 The virtual cursor is beyond the window's lower-right corner, that is, the window is full.
1 The cursor is within the window's boundaries.
Description

If the virtual cursor is beyond the end of the row, cs_adj() moves it to the first column of the next row. If the row exceeds the maximum after this action, the virtual cursor will be positioned to column 0 and one row below the last row, indicating that the window is filled with output.


Home Contents Previous Next