source: trunk/minix/lib/curses/winmove.c@ 12

Last change on this file since 12 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 1.4 KB
RevLine 
[9]1/****************************************************************/
2/* Mvwin() routine of the PCcurses package */
3/* */
4/****************************************************************/
5/* This version of curses is based on ncurses, a curses version */
6/* Originally written by Pavel Curtis at Cornell University. */
7/* I have made substantial changes to make it run on IBM PC's, */
8/* And therefore consider myself free to make it public domain. */
9/* Bjorn Larsson (...mcvax!enea!infovax!bl) */
10/****************************************************************/
11/* 1.0: Release: 870515 */
12/****************************************************************/
13/* Modified to run under the MINIX operating system by Don Cope */
14/* These changes are also released into the public domain. */
15/* 900906 */
16/****************************************************************/
17
18#include <curses.h>
19#include "curspriv.h"
20
21/****************************************************************/
22/* Mvwin() moves window 'win' to position (begx, begy) on the */
23/* Screen. */
24/****************************************************************/
25
26int mvwin(win, begy, begx)
27WINDOW *win;
28int begy, begx;
29{
30 if ((begy + win->_maxy) > (LINES - 1) || (begx + win->_maxx) > (COLS - 1))
31 return(ERR);
32 win->_begy = begy;
33 win->_begx = begx;
34 touchwin(win);
35 return(OK);
36} /* mvwin */
Note: See TracBrowser for help on using the repository browser.