3 * The Regents of the University of California. All rights reserved.
5 * %sccs.include.redist.c%
7 * $Id: gs.h,v 8.24 1993/11/29 20:02:01 bostic Exp $ (Berkeley) $Date: 1993/11/29 20:02:01 $
11 CIRCLEQ_HEAD(_dqh
, _scr
) dq
; /* Displayed screens. */
12 CIRCLEQ_HEAD(_hqh
, _scr
) hq
; /* Hidden screens. */
14 mode_t origmode
; /* Original terminal mode. */
16 original_termios
; /* Original terminal values. */
18 s5_curses_botch
; /* System V curses workaround. */
20 MSGH msgq
; /* User message list. */
22 char *tmp_bp
; /* Temporary buffer. */
23 size_t tmp_blen
; /* Size of temporary buffer. */
26 FILE *tracefp
; /* Trace file pointer. */
29 /* INFORMATION SHARED BY ALL SCREENS. */
30 IBUF
*tty
; /* Key input buffer. */
32 LIST_HEAD(_cuth
, _cb
) cutq
; /* Linked list of cut buffers. */
34 #define MAX_BIT_SEQ 128 /* Max + 1 fast check character. */
35 LIST_HEAD(_seqh
, _seq
) seqq
; /* Linked list of maps, abbrevs. */
36 bitstr_t
bit_decl(seqb
, MAX_BIT_SEQ
);
38 #define term_key_val(sp, ch) \
39 ((ch) <= MAX_FAST_KEY ? sp->gp->special_key[ch] : \
40 (ch) > sp->gp->max_special ? 0 : __term_key_val(sp, ch))
41 #define MAX_FAST_KEY 255 /* Max + 1 fast check character.*/
42 CHAR_T max_special
; /* Max special character. */
43 u_char
*special_key
; /* Fast lookup table. */
44 CHNAME
const *cname
; /* Display names of ASCII characters. */
46 #define G_BELLSCHED 0x00001 /* Bell scheduled. */
47 #define G_CURSES_INIT 0x00002 /* Curses: initialized. */
48 #define G_CURSES_S5CB 0x00004 /* Curses: s5_curses_botch set. */
49 #define G_ISFROMTTY 0x00008 /* Reading from a tty. */
50 #define G_RECOVER_SET 0x00010 /* Recover system initialized. */
51 #define G_SETMODE 0x00020 /* Tty mode changed. */
52 #define G_SIGALRM 0x00040 /* SIGALRM arrived. */
53 #define G_SIGHUP 0x00080 /* SIGHUP arrived. */
54 #define G_SIGTERM 0x00100 /* SIGTERM arrived. */
55 #define G_SIGWINCH 0x00200 /* SIGWINCH arrived. */
56 #define G_SLEEPING 0x00400 /* Asleep (die on signal). */
57 #define G_SNAPSHOT 0x00800 /* Always snapshot files. */
58 #define G_TMP_INUSE 0x01000 /* Temporary buffer in use. */
62 extern GS
*__global_list
; /* List of screens. */