Annotation of early-roguelike/srogue/ncx.h, Revision 1.1.1.1
1.1 rubenllo 1: /*
2: * Super-Rogue
3: * Copyright (C) 1984 Robert D. Kindelberger
4: * All rights reserved.
5: *
6: * See the file LICENSE.TXT for full copyright and licensing information.
7: */
8:
9: /*
10: # define CBREAK FALSE
11: # define _IOSTRG 01
12: */
13:
14: /*
15: * mv functions
16: */
17: #define mvwaddch(win,y,x,ch) VOID(wmove(win,y,x)==ERR?ERR:waddch(win,ch))
18: #define mvwgetch(win,y,x,ch) VOID(wmove(win,y,x)==ERR?ERR:wgetch(win,ch))
19: #define mvwaddstr(win,y,x,str) VOID(wmove(win,y,x)==ERR?ERR:waddstr(win,str))
20: #define mvwgetstr(win,y,x,str) VOID(wmove(win,y,x)==ERR?ERR:wgetstr(win,str))
21: #define mvwinch(win,y,x) VOID(wmove(win,y,x) == ERR ? ERR : winch(win))
22: #define mvaddch(y,x,ch) mvwaddch(stdscr,y,x,ch)
23: #define mvgetch(y,x,ch) mvwgetch(stdscr,y,x,ch)
24: #define mvaddstr(y,x,str) mvwaddstr(stdscr,y,x,str)
25: #define mvgetstr(y,x,str) mvwgetstr(stdscr,y,x,str)
26: #define mvinch(y,x) mvwinch(stdscr,y,x)
27:
28: /*
29: * psuedo functions
30: */
31:
32: #define clearok(win,bf) (win->_clear = bf)
33: #define leaveok(win,bf) (win->_leave = bf)
34: #define scrollok(win,bf) (win->_scroll = bf)
35: #define getyx(win,y,x) y = win->_cury, x = win->_curx
36: #define winch(win) (win->_y[win->_cury][win->_curx])
37:
38: WINDOW *initscr(), *newwin();
CVSweb