X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=ncurses%2Fcurses.priv.h;h=81340c87f9a7a12b7f802b897919fe7757e0c090;hp=c06818c50b7d0943fc13268518cc01284c2e94c6;hb=0be808514502f3149b379d036ab3a83cbb4d4c02;hpb=82a087c4c47679fcfa59bb6d7bdbe587355ba3f6 diff --git a/ncurses/curses.priv.h b/ncurses/curses.priv.h index c06818c5..81340c87 100644 --- a/ncurses/curses.priv.h +++ b/ncurses/curses.priv.h @@ -34,7 +34,7 @@ /* - * $Id: curses.priv.h,v 1.321 2007/03/03 21:56:33 tom Exp $ + * $Id: curses.priv.h,v 1.325 2007/03/10 23:43:50 tom Exp $ * * curses.priv.h * @@ -251,6 +251,7 @@ color_t; #endif #undef NCURSES_OPAQUE +#define NCURSES_INTERNALS 1 #define NCURSES_OPAQUE 0 #include /* we'll use -Ipath directive to get the right one! */ @@ -289,6 +290,14 @@ color_t; #define GET_SCREEN_PAIR(s) GetPair(SCREEN_ATTRS(s)) #define SET_SCREEN_PAIR(s,p) SetPair(SCREEN_ATTRS(s), p) +#if USE_REENTRANT +#define SET_LINES(value) SP->_LINES = value +#define SET_COLS(value) SP->_COLS = value +#else +#define SET_LINES(value) LINES = value +#define SET_COLS(value) COLS = value +#endif + /* * Definitions for color pairs */ @@ -611,6 +620,13 @@ struct screen { int _legacy_coding; /* see use_legacy_coding() */ +#if USE_REENTRANT + char _ttytype[NAMESIZE]; + int _ESCDELAY; + int _TABSIZE; + int _LINES; + int _COLS; +#endif /* * ncurses/ncursesw are the same up to this point. */ @@ -1149,6 +1165,7 @@ extern NCURSES_EXPORT(char *) _nc_get_locale(void); extern NCURSES_EXPORT(int) _nc_unicode_locale(void); extern NCURSES_EXPORT(int) _nc_locale_breaks_acs(void); extern NCURSES_EXPORT(int) _nc_setupterm(NCURSES_CONST char *, int, int *, bool); +extern NCURSES_EXPORT(void) _nc_get_screensize(int *, int *); /* lib_tstp.c */ #if USE_SIGWINCH