Go to main content

man pages section 3: Curses Library Functions

Exit Print View

Updated: Thursday, June 13, 2019
 
 

mvwin(3XCURSES)

Name

mvwin - move window

Synopsis

cc [ flag... ] file... –I /usr/xpg4/include –L /usr/xpg4/lib \
–R /usr/xpg4/lib –lcurses [ library... ]

c89 [ flag... ] file... –lcurses [ library... ]

#include <curses.h>

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

Parameters

win

Is a pointer to the window to move.

y

Is the y (row) coordinate of the upper left corner of the window.

x

Is the x (column) coordinate of the upper left corner of the window.

Description

The mvwin() function moves the specified window (or subwindow), placing its upper left corner at the positions specified by x and y. The entire window must fit within the physical boundaries of the screen or an error results. In the case of a subwindow, the window must remain within the boundaries of the parent window.

Return Values

On success, the mvwin() function returns OK. Otherwise, it returns ERR.

Errors

None.

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Committed
MT-Level
Unsafe
Standard

See Also

derwin(3XCURSES), libcurses(3XCURSES), attributes(7), standards(7)