[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
Base Operating System and Extensions Technical Reference, Volume 2

move or wmove Subroutine

Purpose

Window location cursor functions.

Library

Curses Library (libcurses.a)

Syntax

int ( x);

int wmove (WINDOW *win,
int y,
int x);

Description

The move and wmove subroutines move the logical cursor associated with the current or specified window to (y, x) relative to the window's origin. This subroutine does not move the cursor of the terminal until the next refresh operation.

Parameters

y
x
*win

Return Values

Upon successful completion, these subroutines return OK. Otherwise, they return ERR.

Examples

  1. To move the logical cursor in the stdscr to the coordinates y = 5, x = 10, use:
    move(5, 10);
  2. To move the logical cursor in the user-defined window my_window to the coordinates y = 5, x = 10, use:
    WINDOW *my_window;
    wmove(my_window, 5, 10);

Implementation Specifics

These subroutines are part of Base Operating System (BOS) Runtime.

Related Information

The getch and refresh subroutines.

Controlling the Cursor with Curses, Curses Overview for Programming, List of Curses Subroutines in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs.


[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]