HPlogo MPE/iX Developer's Kit Reference Manual Volume 2: HP 3000 MPE/iX Computer Systems > Chapter 4 CURSES

move wmove

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

The move and wmove routines are used to move the cursor in the window.

Syntax

   #include <curses.h>



   int move(int y, int x);

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

Parameters

win

A pointer to the window in which the cursor is to be written.

x

The x (column) coordinate of the position of the cursor in the window.

y

The y (row) coordinate of the position of the cursor in the window.

Return Values

OK

Successful completion.

ERR

An error occurred. The cursor is outside the window boundary.

Description

The move() routine moves the logical cursor (for stdscr) to the position specified by y (row) and x (column), where the upper-left corner of the window is row 0, column 0. The wmove() routine performs the same action, but moves the cursor in the window specified by win. The physical cursor does not move until after a call to wrefresh() or doupdate().

NOTE: The move() routine is a macro.

Implementation Considerations

Identical to XPG/3

See Also

doupdate(), wrefresh()

Portability

HP-UX, UNIX System V, XPG/3

Feedback to webmaster