Mercurial > hg > early-roguelike
comparison srogue/ncx.h @ 36:2128c7dc8a40
Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490)
| author | elwin |
|---|---|
| date | Thu, 25 Nov 2010 12:21:41 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 35:05018c63a721 | 36:2128c7dc8a40 |
|---|---|
| 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(); |
