[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.17 and 1.25

version 1.17, 2001/12/02 09:14:21 version 1.25, 2002/08/04 16:43:08
Line 32 
Line 32 
 #include <termios.h>  #include <termios.h>
   
 /* Private structure definitions for curses. */  /* Private structure definitions for curses. */
   
   /* Termcap capabilities. */
   extern char     __tc_am, __tc_bs, __tc_cc, __tc_da, __tc_eo,
                   __tc_hc, __tc_hl, __tc_in, __tc_mi, __tc_ms,
                   __tc_nc, __tc_ns, __tc_os, __tc_ul, __tc_ut,
                   __tc_xb, __tc_xn, __tc_xt, __tc_xs, __tc_xx;
   extern char     __CA;
   extern int      __tc_pa, __tc_Co, __tc_NC;
   extern char     *__tc_ac, *__tc_AB, *__tc_ae, *__tc_AF, *__tc_AL,
                   *__tc_al, *__tc_as, *__tc_bc, *__tc_bl, *__tc_bt,
                   *__tc_cd, *__tc_ce, *__tc_cl, *__tc_cm, *__tc_cr,
                   *__tc_cs, *__tc_dc, *__tc_DL, *__tc_dl, *__tc_dm,
                   *__tc_DO, *__tc_do, *__tc_eA, *__tc_ed, *__tc_ei,
                   *__tc_ho, *__tc_Ic, *__tc_ic, *__tc_im, *__tc_Ip,
                   *__tc_ip, *__tc_k0, *__tc_k1, *__tc_k2, *__tc_k3,
                   *__tc_k4, *__tc_k5, *__tc_k6, *__tc_k7, *__tc_k8,
                   *__tc_k9, *__tc_kd, *__tc_ke, *__tc_kh, *__tc_kl,
                   *__tc_kr, *__tc_ks, *__tc_ku, *__tc_LE, *__tc_ll,
                   *__tc_ma, *__tc_mb, *__tc_md, *__tc_me, *__tc_mh,
                   *__tc_mk, *__tc_mm, *__tc_mo, *__tc_mp, *__tc_mr,
                   *__tc_nd, *__tc_nl, *__tc_oc, *__tc_op,
                   *__tc_rc, *__tc_RI, *__tc_Sb, *__tc_sc, *__tc_se,
                   *__tc_SF, *__tc_Sf, *__tc_sf, *__tc_so, *__tc_sp,
                   *__tc_SR, *__tc_sr, *__tc_ta, *__tc_te, *__tc_ti,
                   *__tc_uc, *__tc_ue, *__tc_UP, *__tc_up, *__tc_us,
                   *__tc_vb, *__tc_ve, *__tc_vi, *__tc_vs;
   
 /*  /*
  * A window an array of __LINE structures pointed to by the 'lines' pointer.   * A window an array of __LINE structures pointed to by the 'lines' pointer.
  * A line is an array of __LDATA structures pointed to by the 'line' pointer.   * A line is an array of __LDATA structures pointed to by the 'line' pointer.
Line 53  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 82  struct __window {  /* Window structure. 
Line 114  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 */
         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 */
Line 117  struct __pair {
Line 150  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 173  struct __screen {
Line 206  struct __screen {
         struct __color colours[MAX_COLORS];          struct __color colours[MAX_COLORS];
         struct __pair  colour_pairs[MAX_PAIRS];          struct __pair  colour_pairs[MAX_PAIRS];
         attr_t  nca;          attr_t  nca;
   
 /* Style of colour manipulation */  /* Style of colour manipulation */
 #define COLOR_NONE      0  #define COLOR_NONE      0
 #define COLOR_ANSI      1       /* ANSI/DEC-style colour manipulation */  #define COLOR_ANSI      1       /* ANSI/DEC-style colour manipulation */
Line 181  struct __screen {
Line 214  struct __screen {
 #define COLOR_TEK       3       /* Tektronix-style colour manipulation */  #define COLOR_TEK       3       /* Tektronix-style colour manipulation */
 #define COLOR_OTHER     4       /* None of the others but can set fore/back */  #define COLOR_OTHER     4       /* None of the others but can set fore/back */
         int color_type;          int color_type;
   
         attr_t mask_op;          attr_t mask_op;
         attr_t mask_me;          attr_t mask_me;
         attr_t mask_ue;          attr_t mask_ue;
Line 204  struct __screen {
Line 237  struct __screen {
         unsigned int len;          unsigned int len;
         int meta_state;          int meta_state;
         char pad_char;          char pad_char;
         char ttytype[1024];          char ttytype[128];
         int endwin;          int endwin;
           int notty;
 };  };
   
   
Line 218  extern SCREEN   *_cursesi_screen;       
Line 252  extern SCREEN   *_cursesi_screen;       
   
 /* Private functions. */  /* Private functions. */
 #ifdef DEBUG  #ifdef DEBUG
 void     __CTRACE(const char *fmt, ...);  void     __CTRACE(const char *, ...);
 #endif  #endif
 void     _cursesi_free_keymap(keymap_t *map);  void     __cputchar_args(char, void *);
 int      _cursesi_gettmode(SCREEN *screen);  void     _cursesi_free_keymap(keymap_t *);
 void     _cursesi_reset_acs(SCREEN *screen);  int      _cursesi_gettmode(SCREEN *);
 void     _cursesi_resetterm(SCREEN *screen);  void     _cursesi_reset_acs(SCREEN *);
 int      _cursesi_setterm(char *type, SCREEN *screen);  void     _cursesi_resetterm(SCREEN *);
   int      _cursesi_setterm(char *, SCREEN *);
   int      _cursesi_wnoutrefresh(SCREEN *, WINDOW *);
 int      __delay(void);  int      __delay(void);
 unsigned int __hash(char *s, int len);  u_int    __hash_more(char *, size_t, u_int);
 void     __id_subwins(WINDOW *orig);  #define __hash(s, len)  __hash_more((s), (len), 0u)
 void     __init_getch(SCREEN *screen);  void     __id_subwins(WINDOW *);
 void     __init_acs(SCREEN *screen);  void     __init_getch(SCREEN *);
 char    *__longname(char *bp, char *def);       /* Original BSD version */  void     __init_acs(SCREEN *);
 int      __mvcur(int ly, int lx, int y, int x, int in_refresh);  char    *__longname(char *, char *);    /* Original BSD version */
 WINDOW  *__newwin(SCREEN *screen, int lines, int cols, int y, int x);  int      __mvcur(int, int, int, int, int);
   WINDOW  *__newwin(SCREEN *, 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 243  void     __restore_meta_state(void);
Line 280  void     __restore_meta_state(void);
 void     __restore_termios(void);  void     __restore_termios(void);
 void     __restore_stophandler(void);  void     __restore_stophandler(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_subwin(WINDOW *orig, WINDOW *win);  void     __set_subwin(WINDOW *, WINDOW *);
 void     __startwin(SCREEN *screen);  void     __startwin(SCREEN *);
 void     __stop_signal_handler(int signo);  void     __stop_signal_handler(int);
 int      __stopwin(void);  int      __stopwin(void);
 void     __swflags(WINDOW *win);  void     __swflags(WINDOW *);
 int      __timeout(int delay);  int      __timeout(int);
 int      __touchline(WINDOW *win, int y, int sx, int ex);  int      __touchline(WINDOW *, int, int, int);
 int      __touchwin(WINDOW *win);  int      __touchwin(WINDOW *);
 char    *__tscroll(const char *cap, int n1, int n2);  char    *__tscroll(const char *, int, int);
 void     __unsetattr(int);  void     __unsetattr(int);
 int      __waddch(WINDOW *win, __LDATA *dp);  void     __unset_color(WINDOW *win);
   int      __waddch(WINDOW *, __LDATA *);
 int      __wgetnstr(WINDOW *, char *, int);  int      __wgetnstr(WINDOW *, char *, int);
   
 /* Private #defines. */  /* Private #defines. */
 #define min(a,b)        (a < b ? a : b)  #define min(a,b)        ((a) < (b) ? (a) : (b))
 #define max(a,b)        (a > b ? a : b)  #define max(a,b)        ((a) > (b) ? (a ): (b))
   
 /* Private externs. */  /* Private externs. */
 extern int               __echoit;  extern int               __echoit;
Line 272  extern attr_t   __nca;
Line 310  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 struct __winlist *__winlistp;
 extern WINDOW           *__virtscr;  extern WINDOW           *__virtscr;
   extern int               __using_color;
   extern attr_t            __default_color;

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.25

CVSweb <webmaster@jp.NetBSD.org>