go to 0.81
[nvi.git] / common / gs.h
blob440f789cdfabf51c00f34213d4ca796c39eabb28
1 /*-
2 * Copyright (c) 1993
3 * The Regents of the University of California. All rights reserved.
5 * %sccs.include.redist.c%
7 * $Id: gs.h,v 8.15 1993/11/05 14:47:36 bostic Exp $ (Berkeley) $Date: 1993/11/05 14:47:36 $
8 */
10 typedef struct _gs {
11 struct list_entry screens; /* Linked list of SCR structures. */
13 mode_t origmode; /* Original terminal mode. */
14 struct termios
15 original_termios; /* Original terminal values. */
16 struct termios
17 s5_curses_botch; /* System V curses workaround. */
19 struct _msg *msgp; /* User message list. */
21 char *tmp_bp; /* Temporary buffer. */
22 size_t tmp_blen; /* Size of temporary buffer. */
24 #ifdef DEBUG
25 FILE *tracefp; /* Trace file pointer. */
26 #endif
28 /* INFORMATION SHARED BY ALL SCREENS. */
29 struct _ibuf *key; /* Key input buffer. */
30 struct _ibuf *tty; /* Tty input buffer. */
32 struct list_entry cutq; /* Cut buffers. */
34 #define MAX_BIT_SEQ 128 /* Max + 1 fast check character. */
35 struct list_entry seqq; /* Linked list of maps, abbrevs. */
36 bitstr_t bit_decl(seqb, MAX_BIT_SEQ);
38 #define G_BELLSCHED 0x0001 /* Bell scheduled. */
39 #define G_INITSCR 0x0002 /* Curses initscr() called. */
40 #define G_ISFROMTTY 0x0004 /* Reading from a tty. */
41 #define G_RECOVER_SET 0x0008 /* Recover system initialized. */
42 #define G_SETMODE 0x0010 /* Tty mode changed. */
43 #define G_SIGALRM 0x0020 /* SIGALRM arrived. */
44 #define G_SIGHUP 0x0040 /* SIGHUP arrived. */
45 #define G_SIGTERM 0x0080 /* SIGTERM arrived. */
46 #define G_SIGWINCH 0x0100 /* SIGWINCH arrived. */
47 #define G_SLEEPING 0x0200 /* Asleep (die on signal). */
48 #define G_SNAPSHOT 0x0400 /* Always snapshot files. */
49 #define G_TMP_INUSE 0x0800 /* Temporary buffer in use. */
50 u_int flags;
51 } GS;
53 extern GS *__global_list; /* List of screens. */