version 1.2, 2000/04/12 21:46:27 |
version 1.12, 2000/12/22 17:07:13 |
|
|
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)) |
|
|
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 82 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 bchar; /* Background character */ |
wchar_t bch; /* Background character */ |
attr_t battr; /* Background attributes */ |
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. */ |
/* Private functions. */ |
#ifdef DEBUG |
#ifdef DEBUG |
void __CTRACE __P((const char *, ...)); |
void __CTRACE(const char *fmt, ...); |
#endif |
#endif |
int __delay __P((void)); |
int __delay(void); |
unsigned int __hash __P((char *, int)); |
unsigned int __hash(char *s, int len); |
void __id_subwins __P((WINDOW *)); |
void __id_subwins(WINDOW *orig); |
void __init_getch __P((char *)); |
void __init_getch(void); |
void __init_acs __P((void)); |
void __init_acs(void); |
char *__longname __P((char *, char *)); /* Original BSD version */ |
char *__longname(char *bp, char *def); /* Original BSD version */ |
int __mvcur __P((int, int, int, int, int)); |
int __mvcur(int ly, int lx, int y, int x, int in_refresh); |
int __nodelay __P((void)); |
int __nodelay(void); |
int __notimeout __P((void)); |
int __notimeout(void); |
char *__parse_cap __P((const char *, ...)); |
char *__parse_cap(const char *, ...); |
void __restartwin __P((void)); |
void __restartwin(void); |
void __restore_colors __P((void)); |
void __restore_colors(void); |
void __restore_termios __P((void)); |
void __restore_cursor_vis(void); |
void __restore_stophandler __P((void)); |
void __restore_meta_state(void); |
void __save_termios __P((void)); |
void __restore_termios(void); |
void __set_color __P((attr_t)); |
void __restore_stophandler(void); |
void __set_stophandler __P((void)); |
void __save_termios(void); |
void __set_subwin __P((WINDOW *, WINDOW *)); |
void __set_color(attr_t attr); |
void __startwin __P((void)); |
void __set_stophandler(void); |
void __stop_signal_handler __P((int)); |
void __set_subwin(WINDOW *orig, WINDOW *win); |
int __stopwin __P((void)); |
void __startwin(void); |
void __swflags __P((WINDOW *)); |
void __stop_signal_handler(int signo); |
int __timeout __P((int)); |
int __stopwin(void); |
int __touchline __P((WINDOW *, int, int, int, int)); |
void __swflags(WINDOW *win); |
int __touchwin __P((WINDOW *)); |
int __timeout(int delay); |
char *__tscroll __P((const char *, int, int)); |
int __touchline(WINDOW *win, int y, int sx, int ex); |
int __waddch __P((WINDOW *, __LDATA *)); |
int __touchwin(WINDOW *win); |
|
char *__tscroll(const char *cap, int n1, int n2); |
|
void __unsetattr(int); |
|
int __waddch(WINDOW *win, __LDATA *dp); |
|
|
/* 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; |
extern int __endwin; |
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 __nca; |
|
extern attr_t __mask_op, __mask_me, __mask_ue, __mask_se; |
|
extern struct __winlist *__winlistp; |
|
extern WINDOW *__virtscr; |