if no messages waiting, always display the file status line on
[nvi.git] / common / gs.h
blob323c983df699dd4ff87ef23c6dce218bf87a5f26
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.22 1993/11/23 17:09:50 bostic Exp $ (Berkeley) $Date: 1993/11/23 17:09:50 $
8 */
10 struct _gs {
11 CIRCLEQ_HEAD(_dqh, _scr) dq; /* Displayed screens. */
12 CIRCLEQ_HEAD(_hqh, _scr) hq; /* Hidden screens. */
14 mode_t origmode; /* Original terminal mode. */
15 struct termios
16 original_termios; /* Original terminal values. */
17 struct termios
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. */
25 #ifdef DEBUG
26 FILE *tracefp; /* Trace file pointer. */
27 #endif
29 /* INFORMATION SHARED BY ALL SCREENS. */
30 IBUF *key; /* Key input buffer. */
31 IBUF *tty; /* Tty input buffer. */
33 LIST_HEAD(_cuth, _cb) cutq; /* Linked list of cut buffers. */
35 #define MAX_BIT_SEQ 128 /* Max + 1 fast check character. */
36 LIST_HEAD(_seqh, _seq) seqq; /* Linked list of maps, abbrevs. */
37 bitstr_t bit_decl(seqb, MAX_BIT_SEQ);
38 int key_cnt; /* Map expansion count. */
40 #define G_BELLSCHED 0x00001 /* Bell scheduled. */
41 #define G_CURSES_INIT 0x00002 /* Curses: initialized. */
42 #define G_CURSES_S5CB 0x00004 /* Curses: s5_curses_botch set. */
43 #define G_ISFROMTTY 0x00008 /* Reading from a tty. */
44 #define G_RECOVER_SET 0x00010 /* Recover system initialized. */
45 #define G_SETMODE 0x00020 /* Tty mode changed. */
46 #define G_SIGALRM 0x00040 /* SIGALRM arrived. */
47 #define G_SIGHUP 0x00080 /* SIGHUP arrived. */
48 #define G_SIGTERM 0x00100 /* SIGTERM arrived. */
49 #define G_SIGWINCH 0x00200 /* SIGWINCH arrived. */
50 #define G_SLEEPING 0x00400 /* Asleep (die on signal). */
51 #define G_SNAPSHOT 0x00800 /* Always snapshot files. */
52 #define G_TMP_INUSE 0x01000 /* Temporary buffer in use. */
53 u_int flags;
56 extern GS *__global_list; /* List of screens. */