Mercurial > hg > early-roguelike
comparison urogue/lint-curses.h @ 256:c495a4f288c6
Import UltraRogue from the Roguelike Restoration Project (r1490)
author | John "Elwin" Edwards |
---|---|
date | Tue, 31 Jan 2017 19:56:04 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
253:d9badb9c0179 | 256:c495a4f288c6 |
---|---|
1 /* | |
2 lint-curses.h | |
3 | |
4 UltraRogue: The Ultimate Adventure in the Dungeons of Doom | |
5 Copyright (C) 1993, 1995 Herb Chong | |
6 All rights reserved. | |
7 | |
8 See the file LICENSE.TXT for full copyright and licensing information. | |
9 */ | |
10 | |
11 | |
12 /* Sufficient info to pass lint */ | |
13 #ifndef TRUE | |
14 #define TRUE 1 | |
15 #endif | |
16 #ifndef FALSE | |
17 #define FALSE 0 | |
18 #endif | |
19 #define getyx(win,y,x) y = win->_cury, x = win->_curx | |
20 struct screen { int opque_data_type; }; | |
21 typedef struct { int _cury; int _curx; } WINDOW; | |
22 extern WINDOW *stdscr; | |
23 extern WINDOW *curscr; | |
24 extern int LINES; | |
25 extern int COLS; | |
26 extern char *unctrl(char c); | |
27 extern void initscr(void); | |
28 extern int wmove(WINDOW *window, int Line, int Column); | |
29 extern int move(int Line, int Column); | |
30 extern int addch(char c); | |
31 extern int mvaddch(int y, int x, char c); | |
32 extern int waddch(WINDOW *window, char c); | |
33 extern int mvwaddch(WINDOW *window, int y, int x, char c); | |
34 extern int mvwinch(WINDOW *window, int y, int x); | |
35 extern int winch(WINDOW *window); | |
36 extern int mvinch(int y, int x); | |
37 extern int getch(void); | |
38 extern int wgetch(WINDOW *window); | |
39 extern void clear(void); | |
40 extern void wclear(WINDOW *window); | |
41 extern void refresh(void); | |
42 extern void wrefresh(WINDOW *window); | |
43 extern void clearok(WINDOW *window, int flag); | |
44 extern void endwin(void); | |
45 extern void touchwin(WINDOW *window); | |
46 extern void overlay(WINDOW *w1, WINDOW *w2); | |
47 extern void wclrtoeol(WINDOW *window); | |
48 extern void wprintw(WINDOW *window, const char *fmt, ...); | |
49 extern void mvprintw(int line, int col, char *fmt, ...); | |
50 extern void mvwprintw(WINDOW *window, int line, int col, char *fmt, ...); | |
51 extern int mvwaddstr(WINDOW *window, int y, int x, const char *str); | |
52 extern int mvaddstr(int y, int x, char *str); | |
53 extern int waddstr(WINDOW *window, char *str); | |
54 extern int addstr(char *str); | |
55 extern void standout(void); | |
56 extern void wstandout(WINDOW *window); | |
57 extern void standend(void); | |
58 extern void wstandend(WINDOW *window); | |
59 extern void noecho(void); | |
60 extern void cbreak(void); | |
61 extern void crmode(void); | |
62 extern void nonl(void); | |
63 extern void nl(void); | |
64 extern int wgetch(WINDOW *window); | |
65 extern WINDOW *newwin(int lines, int cols, int y, int x); | |
66 extern void overwrite(WINDOW *w1, WINDOW *w2); | |
67 extern void delwin(WINDOW *window); | |
68 extern void printw(char *fmt, ...); | |
69 |