version 1.7, 2000/04/27 00:22:44 |
version 1.16, 2001/06/13 10:45:57 |
|
|
* 1. Redistributions of source code must retain the above copyright |
* 1. Redistributions of source code must retain the above copyright |
* notice, this list of conditions and the following disclaimer. |
* notice, this list of conditions and the following disclaimer. |
* 2. The name of the author may not be used to endorse or promote products |
* 2. The name of the author may not be used to endorse or promote products |
* derived from this software withough specific prior written permission |
* derived from this software without specific prior written permission |
* |
* |
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR |
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR |
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
|
|
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 86 struct __window { /* Window structure. |
|
Line 85 struct __window { /* Window structure. |
|
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 */ |
}; |
}; |
|
|
/* 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 97 struct __winlist { |
|
Line 97 struct __winlist { |
|
struct __winlist *nextp; /* Next 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. */ |
|
|
/* Private functions. */ |
/* Private functions. */ |
#ifdef DEBUG |
#ifdef DEBUG |
void __CTRACE(const char *fmt, ...); |
void __CTRACE(const char *fmt, ...); |
Line 104 void __CTRACE(const char *fmt, ...); |
|
Line 112 void __CTRACE(const char *fmt, ...); |
|
int __delay(void); |
int __delay(void); |
unsigned int __hash(char *s, int len); |
unsigned int __hash(char *s, int len); |
void __id_subwins(WINDOW *orig); |
void __id_subwins(WINDOW *orig); |
void __init_getch(char *sp); |
void __init_getch(void); |
void __init_acs(void); |
void __init_acs(void); |
char *__longname(char *bp, char *def); /* Original BSD version */ |
char *__longname(char *bp, char *def); /* Original BSD version */ |
int __mvcur(int ly, int lx, int y, int x, int in_refresh); |
int __mvcur(int ly, int lx, int y, int x, int in_refresh); |
Line 126 void __stop_signal_handler(int signo); |
|
Line 134 void __stop_signal_handler(int signo); |
|
int __stopwin(void); |
int __stopwin(void); |
void __swflags(WINDOW *win); |
void __swflags(WINDOW *win); |
int __timeout(int delay); |
int __timeout(int delay); |
int __touchline(WINDOW *win, int y, int sx, int ex, int force); |
int __touchline(WINDOW *win, int y, int sx, int ex); |
int __touchwin(WINDOW *win); |
int __touchwin(WINDOW *win); |
char *__tscroll(const char *cap, int n1, int n2); |
char *__tscroll(const char *cap, int n1, int n2); |
void __unsetattr(int); |
void __unsetattr(int); |
int __waddch(WINDOW *win, __LDATA *dp); |
int __waddch(WINDOW *win, __LDATA *dp); |
|
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) |
Line 143 extern int __pfast; |
|
Line 152 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 struct __winlist *__winlistp; |
extern WINDOW *__virtscr; |
extern WINDOW *__virtscr; |