Rev | Line | |
---|
[9] | 1 | /* Constants */
|
---|
| 2 | #define _SUBWIN 1 /* window is a subwindow */
|
---|
| 3 | #define _ENDLINE 2 /* last winline is last screen line */
|
---|
| 4 | #define _FULLWIN 4 /* window fills screen */
|
---|
| 5 | #define _SCROLLWIN 8 /* window lwr rgt is screen lwr rgt */
|
---|
| 6 |
|
---|
| 7 | #define _NO_CHANGE -1 /* flags line edge unchanged */
|
---|
| 8 | #define _BREAKCHAR 0x03 /* ^C character */
|
---|
| 9 | #define _DCCHAR 0x08 /* Delete Char char (BS) */
|
---|
| 10 | #define _DLCHAR 0x1b /* Delete Line char (ESC) */
|
---|
| 11 | #define _GOCHAR 0x11 /* ^Q character */
|
---|
| 12 | #define _PRINTCHAR 0x10 /* ^P character */
|
---|
| 13 | #define _STOPCHAR 0x13 /* ^S character */
|
---|
| 14 | #define NUNGETCH 10 /* max # chars to ungetch() */
|
---|
| 15 |
|
---|
| 16 | #define max(a,b) (((a) > (b)) ? (a) : (b))
|
---|
| 17 | #define min(a,b) (((a) < (b)) ? (a) : (b))
|
---|
| 18 |
|
---|
| 19 | /* Character mask definitions. */
|
---|
| 20 | #define CHR_MSK ((int) 0x00ff) /* ASCIIZ character mask */
|
---|
| 21 | #define ATR_MSK ((int) 0xff00) /* attribute mask */
|
---|
| 22 | #define ATR_NRM ((int) 0x0000) /* no special attributes */
|
---|
| 23 |
|
---|
| 24 | /* Type declarations. */
|
---|
| 25 |
|
---|
| 26 | typedef struct {
|
---|
| 27 | WINDOW *tmpwin; /* window used for updates */
|
---|
| 28 | int cursrow; /* position of physical cursor */
|
---|
| 29 | int curscol;
|
---|
| 30 | bool rawmode;
|
---|
| 31 | bool cbrkmode;
|
---|
| 32 | bool echoit;
|
---|
| 33 | } cursv;
|
---|
| 34 |
|
---|
| 35 | /* External variables */
|
---|
| 36 | extern cursv _cursvar; /* curses variables */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.