[BACK]Return to curses_private.h CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libcurses

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libcurses/curses_private.h between version 1.23 and 1.35

version 1.23, 2002/06/26 18:37:28 version 1.35, 2004/03/22 18:57:38
Line 80  struct __ldata {
Line 80  struct __ldata {
 #define __LDATASIZE     (sizeof(__LDATA))  #define __LDATASIZE     (sizeof(__LDATA))
   
 struct __line {  struct __line {
   #ifdef DEBUG
   #define SENTINEL_VALUE 0xaac0ffee
   
           unsigned int sentinel;          /* try to catch line overflows */
   #endif
 #define __ISDIRTY       0x01            /* Line is dirty. */  #define __ISDIRTY       0x01            /* Line is dirty. */
 #define __ISPASTEOL     0x02            /* Cursor is past end of line */  #define __ISPASTEOL     0x02            /* Cursor is past end of line */
         unsigned int flags;          unsigned int flags;
Line 94  struct __window {  /* Window structure. 
Line 99  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 109  struct __window {  /* Window structure. 
Line 115  struct __window {  /* Window structure. 
 #define __LEAVEOK       0x00000100      /* If cursor left */  #define __LEAVEOK       0x00000100      /* If cursor left */
 #define __KEYPAD        0x00010000      /* If interpreting keypad codes */  #define __KEYPAD        0x00010000      /* If interpreting keypad codes */
 #define __NOTIMEOUT     0x00020000      /* Wait indefinitely for func keys */  #define __NOTIMEOUT     0x00020000      /* Wait indefinitely for func keys */
   #define __IDCHAR        0x00040000      /* insert/delete char sequences */
   #define __ISPAD         0x00080000      /* "window" is a pad */
         unsigned int flags;          unsigned int flags;
         int     delay;                  /* delay for getch() */          int     delay;                  /* delay for getch() */
         attr_t  wattr;                  /* Character attributes */          attr_t  wattr;                  /* Character attributes */
         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 */
 };  };
   
 /* 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 144  struct __pair {
Line 153  struct __pair {
 /* Maximum colours */  /* Maximum colours */
 #define MAX_COLORS      64  #define MAX_COLORS      64
 /* Maximum colour pairs - determined by number of colour bits in attr_t */  /* Maximum colour pairs - determined by number of colour bits in attr_t */
 #define MAX_PAIRS       64      /* PAIR_NUMBER(__COLOR) + 1 */  #define MAX_PAIRS       PAIR_NUMBER(__COLOR)
   
 typedef struct keymap keymap_t;  typedef struct keymap keymap_t;
   
Line 157  struct __screen {
Line 166  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 219  struct __screen {
Line 228  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 234  struct __screen {
Line 244  struct __screen {
         char ttytype[128];          char ttytype[128];
         int endwin;          int endwin;
         int notty;          int notty;
           int half_delay;
           int resized;
 };  };
   
   
Line 246  extern SCREEN   *_cursesi_screen;       
Line 258  extern SCREEN   *_cursesi_screen;       
   
 /* Private functions. */  /* Private functions. */
 #ifdef DEBUG  #ifdef DEBUG
 void     __CTRACE(const char *, ...);  void     __CTRACE(const char *, ...) __attribute__((__format__(__printf__, 1, 0)));
 #endif  #endif
 void     __cputchar_args(char, void *);  void     __cputchar_args(char, void *);
 void     _cursesi_free_keymap(keymap_t *);  void     _cursesi_free_keymap(keymap_t *);
Line 254  int      _cursesi_gettmode(SCREEN *);
Line 266  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      __delay(void);  int      __delay(void);
 u_int    __hash_more(char *, size_t, u_int);  u_int    __hash_more(char *, size_t, u_int);
 #define __hash(s, len)  __hash_more((s), (len), 0u)  #define __hash(s, len)  __hash_more((s), (len), 0u)
Line 263  void  __init_getch(SCREEN *);
Line 274  void  __init_getch(SCREEN *);
 void     __init_acs(SCREEN *);  void     __init_acs(SCREEN *);
 char    *__longname(char *, char *);    /* Original BSD version */  char    *__longname(char *, char *);    /* Original BSD version */
 int      __mvcur(int, int, int, int, int);  int      __mvcur(int, int, int, int, int);
 WINDOW  *__newwin(SCREEN *, int, int, int, int);  WINDOW  *__newwin(SCREEN *, int, int, int, int, int);
 int      __nodelay(void);  int      __nodelay(void);
 int      __notimeout(void);  int      __notimeout(void);
 char    *__parse_cap(const char *, ...);  char    *__parse_cap(const char *, ...);
Line 273  void     __restore_cursor_vis(void);
Line 284  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(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 286  int  __touchline(WINDOW *, int, int, int
Line 299  int  __touchline(WINDOW *, int, int, int
 int      __touchwin(WINDOW *);  int      __touchwin(WINDOW *);
 char    *__tscroll(const char *, int, int);  char    *__tscroll(const char *, int, int);
 void     __unsetattr(int);  void     __unsetattr(int);
   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 299  extern int   __endwin;
Line 314  extern int   __endwin;
 extern int               __pfast;  extern int               __pfast;
 extern int               __rawmode;  extern int               __rawmode;
 extern int               __noqch;  extern int               __noqch;
 extern attr_t            __nca;  
 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 attr_t            __default_color;

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.35

CVSweb <webmaster@jp.NetBSD.org>