version 1.28, 2003/01/27 21:09:20 |
version 1.39, 2007/01/21 13:25:36 |
Line 73 extern char *__tc_ac, *__tc_AB, *__tc_ae |
|
Line 73 extern char *__tc_ac, *__tc_AB, *__tc_ae |
|
struct __ldata { |
struct __ldata { |
wchar_t ch; /* Character */ |
wchar_t ch; /* Character */ |
attr_t attr; /* Attributes */ |
attr_t attr; /* Attributes */ |
wchar_t bch; /* Background character */ |
|
attr_t battr; /* Background attributes */ |
|
}; |
}; |
|
|
#define __LDATASIZE (sizeof(__LDATA)) |
#define __LDATASIZE (sizeof(__LDATA)) |
Line 99 struct __window { /* Window structure. |
|
Line 97 struct __window { /* Window structure. |
|
int begy, begx; /* Window home. */ |
int begy, begx; /* Window home. */ |
int cury, curx; /* Current x, y coordinates. */ |
int cury, curx; /* Current x, y coordinates. */ |
int maxy, maxx; /* Maximum values for curx, cury. */ |
int maxy, maxx; /* Maximum values for curx, cury. */ |
short ch_off; /* x offset for firstch/lastch. */ |
int reqy, reqx; /* Size requested when created */ |
|
int ch_off; /* x offset for firstch/lastch. */ |
__LINE **lines; /* Array of pointers to the lines */ |
__LINE **lines; /* Array of pointers to the lines */ |
__LINE *lspace; /* line space (for cleanup) */ |
__LINE *lspace; /* line space (for cleanup) */ |
__LDATA *wspace; /* window space (for cleanup) */ |
__LDATA *wspace; /* window space (for cleanup) */ |
Line 122 struct __window { /* Window structure. |
|
Line 121 struct __window { /* Window structure. |
|
wchar_t bch; /* Background character */ |
wchar_t bch; /* Background character */ |
attr_t battr; /* Background attributes */ |
attr_t battr; /* Background attributes */ |
int scr_t, scr_b; /* Scrolling region top, bottom */ |
int scr_t, scr_b; /* Scrolling region top, bottom */ |
|
SCREEN *screen; /* Screen for this window */ |
|
int pbegy, pbegx, |
|
sbegy, sbegx, |
|
smaxy, smaxx; /* Saved prefresh() values */ |
}; |
}; |
|
|
/* Set of attributes unset by 'me' - 'mb', 'md', 'mh', 'mk', 'mp' and 'mr'. */ |
/* Set of attributes unset by 'me' - 'mb', 'md', 'mh', 'mk', 'mp' and 'mr'. */ |
Line 164 struct __screen { |
|
Line 167 struct __screen { |
|
WINDOW *stdscr; /* Standard screen. */ |
WINDOW *stdscr; /* Standard screen. */ |
WINDOW *__virtscr; /* Virtual screen (for doupdate()). */ |
WINDOW *__virtscr; /* Virtual screen (for doupdate()). */ |
int curwin; /* current window for refresh */ |
int curwin; /* current window for refresh */ |
short lx, ly; /* loop parameters for refresh */ |
int lx, ly; /* loop parameters for refresh */ |
int COLS; /* Columns on the screen. */ |
int COLS; /* Columns on the screen. */ |
int LINES; /* Lines on the screen. */ |
int LINES; /* Lines on the screen. */ |
int COLORS; /* Maximum colors on the screen */ |
int COLORS; /* Maximum colors on the screen */ |
Line 226 struct __screen { |
|
Line 229 struct __screen { |
|
int echoit; |
int echoit; |
int pfast; |
int pfast; |
int rawmode; |
int rawmode; |
|
int nl; |
int noqch; |
int noqch; |
int clearok; |
int clearok; |
int useraw; |
int useraw; |
Line 242 struct __screen { |
|
Line 246 struct __screen { |
|
int endwin; |
int endwin; |
int notty; |
int notty; |
int half_delay; |
int half_delay; |
|
int resized; |
}; |
}; |
|
|
|
|
Line 252 extern int My_term; /* Use Def_term re |
|
Line 257 extern int My_term; /* Use Def_term re |
|
extern const char *Def_term; /* Default terminal type. */ |
extern const char *Def_term; /* Default terminal type. */ |
extern SCREEN *_cursesi_screen; /* The current screen in use */ |
extern SCREEN *_cursesi_screen; /* The current screen in use */ |
|
|
/* Private functions. */ |
/* Debugging options/functions. */ |
#ifdef DEBUG |
#ifdef DEBUG |
void __CTRACE(const char *, ...); |
#define __CTRACE_TSTAMP 0x00000001 |
|
#define __CTRACE_MISC 0x00000002 |
|
#define __CTRACE_INIT 0x00000004 |
|
#define __CTRACE_SCREEN 0x00000008 |
|
#define __CTRACE_WINDOW 0x00000010 |
|
#define __CTRACE_REFRESH 0x00000020 |
|
#define __CTRACE_COLOR 0x00000040 |
|
#define __CTRACE_INPUT 0x00000080 |
|
#define __CTRACE_OUTPUT 0x00000100 |
|
#define __CTRACE_LINE 0x00000200 |
|
#define __CTRACE_ATTR 0x00000400 |
|
#define __CTRACE_ERASE 0x00000800 |
|
#define __CTRACE_ALL 0x7fffffff |
|
void __CTRACE_init(void); |
|
void __CTRACE(int, const char *, ...) __attribute__((__format__(__printf__, 2, 3))); |
#endif |
#endif |
|
|
|
/* Private functions. */ |
void __cputchar_args(char, void *); |
void __cputchar_args(char, void *); |
void _cursesi_free_keymap(keymap_t *); |
void _cursesi_free_keymap(keymap_t *); |
int _cursesi_gettmode(SCREEN *); |
int _cursesi_gettmode(SCREEN *); |
void _cursesi_reset_acs(SCREEN *); |
void _cursesi_reset_acs(SCREEN *); |
void _cursesi_resetterm(SCREEN *); |
void _cursesi_resetterm(SCREEN *); |
int _cursesi_setterm(char *, SCREEN *); |
int _cursesi_setterm(char *, SCREEN *); |
int _cursesi_wnoutrefresh(SCREEN *, WINDOW *, int, int, int, int, int, int); |
|
int __delay(void); |
int __delay(void); |
u_int __hash_more(char *, size_t, u_int); |
u_int __hash_more(const void *, size_t, u_int); |
#define __hash(s, len) __hash_more((s), (len), 0u) |
#define __hash(s, len) __hash_more((s), (len), 0u) |
void __id_subwins(WINDOW *); |
void __id_subwins(WINDOW *); |
void __init_getch(SCREEN *); |
void __init_getch(SCREEN *); |
Line 281 void __restore_cursor_vis(void); |
|
Line 301 void __restore_cursor_vis(void); |
|
void __restore_meta_state(void); |
void __restore_meta_state(void); |
void __restore_termios(void); |
void __restore_termios(void); |
void __restore_stophandler(void); |
void __restore_stophandler(void); |
|
void __restore_winchhandler(void); |
void __save_termios(void); |
void __save_termios(void); |
void __set_color(WINDOW *win, attr_t attr); |
void __set_color(WINDOW *win, attr_t attr); |
void __set_stophandler(void); |
void __set_stophandler(void); |
|
void __set_winchhandler(void); |
void __set_subwin(WINDOW *, WINDOW *); |
void __set_subwin(WINDOW *, WINDOW *); |
void __startwin(SCREEN *); |
void __startwin(SCREEN *); |
void __stop_signal_handler(int); |
void __stop_signal_handler(int); |
Line 297 void __unsetattr(int); |
|
Line 319 void __unsetattr(int); |
|
void __unset_color(WINDOW *win); |
void __unset_color(WINDOW *win); |
int __waddch(WINDOW *, __LDATA *); |
int __waddch(WINDOW *, __LDATA *); |
int __wgetnstr(WINDOW *, char *, int); |
int __wgetnstr(WINDOW *, char *, int); |
|
void __winch_signal_handler(int); |
|
|
/* Private #defines. */ |
/* Private #defines. */ |
#define min(a,b) ((a) < (b) ? (a) : (b)) |
#define min(a,b) ((a) < (b) ? (a) : (b)) |
Line 309 extern int __pfast; |
|
Line 332 extern int __pfast; |
|
extern int __rawmode; |
extern int __rawmode; |
extern int __noqch; |
extern int __noqch; |
extern attr_t __mask_op, __mask_me, __mask_ue, __mask_se; |
extern attr_t __mask_op, __mask_me, __mask_ue, __mask_se; |
extern struct __winlist *__winlistp; |
|
extern WINDOW *__virtscr; |
extern WINDOW *__virtscr; |
extern int __using_color; |
extern int __using_color; |
extern attr_t __default_color; |
extern attr_t __default_color; |