DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

mvcur(3curses)


mvcur -- output cursor movement commands to the terminal

Synopsis

cc [options] file -lcurses
#include <curses.h>

int mvcur(int oldrow, int oldcol, int newrow, int newcol);

Description

The mvcur(3curses) function outputs one or more commands to the terminal that move the terminal's cursor to (newrow, newcol), an absolute position on the terminal screen. The (oldrow, oldcol) arguments specify the former cursor position. Specifying the former position is necessary on terminals that do not provide coordinate-based movement commands. On terminals that provide these commands, Curses may select a more efficient way to move the cursor based on the former position. If (newrow, newcol) is not a valid address for the terminal in use, mvcur(3curses) fails. If (oldrow, oldcol) is the same as (newrow, newcol), then mvcur(3curses) succeeds without taking any action. If mvcur(3curses) outputs a cursor movement command, it updates its information concerning the location of the cursor on the terminal.

Return value

Upon successful completion, mvcur(3curses) returns OK. Otherwise, it returns ERR.

Errors

No errors are defined.

Usage

After use of mvcur(3curses), the model Curses maintains of the state of the terminal might not match the actual state of the terminal. The application should touch and refresh the window before resuming conventional use of Curses.

Standards Conformance

The Single UNIX Specification, Version 2; The Open Group.

References

doupdate(3curses), is_linetouched(3curses), curses(4)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004