[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.1 and 1.12

version 1.1, 2000/04/11 13:57:09 version 1.12, 2000/12/22 17:07:13
Line 42 
Line 42 
  */   */
   
 struct __ldata {  struct __ldata {
 #define __CHARTEXT      0x000000ff      /* bits for 8-bit characters */  
         wchar_t ch;                     /* Character */          wchar_t ch;                     /* Character */
 #define __NORMAL        0x00000000      /* Added characters are normal. */  
 #define __STANDOUT      0x00010000      /* Added characters are standout. */  
 #define __UNDERSCORE    0x00020000      /* Added characters are underscored. */  
 #define __REVERSE       0x00040000      /* Added characters are reverse  
                                            video. */  
 #define __BLINK         0x00080000      /* Added characters are blinking. */  
 #define __DIM           0x00100000      /* Added characters are dim. */  
 #define __BOLD          0x00200000      /* Added characters are bold. */  
 #define __BLANK         0x00400000      /* Added characters are blanked. */  
 #define __PROTECT       0x00800000      /* Added characters are protected. */  
 #define __ALTCHARSET    0x01000000      /* Added characters are ACS */  
 #define __COLOR         0xee000000      /* Color bits */  
 #define __ATTRIBUTES    0xefff0000      /* All 8-bit attribute bits */  
 #define __TERMATTR      0x00fc0000      /* Termcap attribute modes  
                                            (reverse, blinking, dim, bold,  
                                            blanked & protected */  
         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 68  struct __ldata {
Line 53  struct __ldata {
 struct __line {  struct __line {
 #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 */
 #define __FORCEPAINT    0x04            /* Force a repaint of the line */  
         unsigned int flags;          unsigned int flags;
         unsigned int hash;              /* Hash value for the line. */          unsigned int hash;              /* Hash value for the line. */
         int *firstchp, *lastchp;        /* First and last chngd columns ptrs */          int *firstchp, *lastchp;        /* First and last chngd columns ptrs */
Line 99  struct __window {  /* Window structure. 
Line 83  struct __window {  /* Window structure. 
         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 */
           attr_t  battr;                  /* Background attributes */
 };  };
   
   /* Set of attributes unset by 'me' - 'mb', 'md', 'mh', 'mk', 'mp' and 'mr'. */
   #define __TERMATTR \
           (__REVERSE | __BLINK | __DIM | __BOLD | __BLANK | __PROTECT)
   
   struct __winlist {
           struct __window         *winp;  /* The window. */
           struct __winlist        *nextp; /* Next window. */
   };
   
   /* Private variables. */
   extern char      __GT;                  /* Gtty indicates tabs. */
   extern char      __NONL;                /* Term can't hack LF doing a CR. */
   extern char      __UPPERCASE;           /* Terminal is uppercase only. */
   
   extern int       My_term;               /* Use Def_term regardless. */
   extern const char       *Def_term;      /* Default terminal type. */
   
   /* 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;
   
   /* Private functions. */
   #ifdef DEBUG
   void     __CTRACE(const char *fmt, ...);
   #endif
   int      __delay(void);
   unsigned int __hash(char *s, int len);
   void     __id_subwins(WINDOW *orig);
   void     __init_getch(void);
   void     __init_acs(void);
   char    *__longname(char *bp, char *def);       /* Original BSD version */
   int      __mvcur(int ly, int lx, int y, int x, int in_refresh);
   int      __nodelay(void);
   int      __notimeout(void);
   char    *__parse_cap(const char *, ...);
   void     __restartwin(void);
   void     __restore_colors(void);
   void     __restore_cursor_vis(void);
   void     __restore_meta_state(void);
   void     __restore_termios(void);
   void     __restore_stophandler(void);
   void     __save_termios(void);
   void     __set_color(attr_t attr);
   void     __set_stophandler(void);
   void     __set_subwin(WINDOW *orig, WINDOW *win);
   void     __startwin(void);
   void     __stop_signal_handler(int signo);
   int      __stopwin(void);
   void     __swflags(WINDOW *win);
   int      __timeout(int delay);
   int      __touchline(WINDOW *win, int y, int sx, int ex);
   int      __touchwin(WINDOW *win);
   char    *__tscroll(const char *cap, int n1, int n2);
   void     __unsetattr(int);
   int      __waddch(WINDOW *win, __LDATA *dp);
   
   /* Private #defines. */
   #define min(a,b)        (a < b ? a : b)
   #define max(a,b)        (a > b ? a : b)
   
   /* Private externs. */
   extern int               __echoit;
   extern int               __endwin;
   extern int               __pfast;
   extern int               __rawmode;
   extern int               __noqch;
   extern attr_t            __nca;
   extern attr_t            __mask_op, __mask_me, __mask_ue, __mask_se;
   extern struct __winlist *__winlistp;
   extern WINDOW           *__virtscr;

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.12

CVSweb <webmaster@jp.NetBSD.org>