In the UNIX system environment, you can use Curses functions to move the cursor across the terminal screen. With other implementations, you can either allow Curses to move the cursor using the move function, or you can specify the origin and the destination of the cursor to the mvcur function, which moves the cursor in a more efficient manner.
In DEC C for OpenVMS Systems, the two functions are functionally equivalent and move the cursor with the same efficiency.
Example 6-5 shows how to use the move and mvcur functions.
#include <curses.h> main() { initscr(); . . . clear(); move(10, 10); move(LINES/2, COLS/2); mvcur(0, COLS-1, LINES-1, 0); . . . endwin(); }
Key to Example 6-5: