Annotation of 43BSDReno/lib/libcurses/curses.c, revision 1.1.1.1

1.1       root        1: /*
                      2:  * Copyright (c) 1981 Regents of the University of California.
                      3:  * All rights reserved.
                      4:  *
                      5:  * Redistribution and use in source and binary forms are permitted
                      6:  * provided that: (1) source distributions retain this entire copyright
                      7:  * notice and comment, and (2) distributions including binaries display
                      8:  * the following acknowledgement:  ``This product includes software
                      9:  * developed by the University of California, Berkeley and its contributors''
                     10:  * in the documentation or other materials provided with the distribution
                     11:  * and in all advertising materials mentioning features or use of this
                     12:  * software. Neither the name of the University nor the names of its
                     13:  * contributors may be used to endorse or promote products derived
                     14:  * from this software without specific prior written permission.
                     15:  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
                     16:  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
                     17:  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
                     18:  */
                     19: 
                     20: #ifndef lint
                     21: static char sccsid[] = "@(#)curses.c   5.7 (Berkeley) 6/1/90";
                     22: #endif /* not lint */
                     23: 
                     24: /*
                     25:  * Define global variables
                     26:  *
                     27:  */
                     28: # include      "curses.h"
                     29: 
                     30: bool   _echoit         = TRUE, /* set if stty indicates ECHO           */
                     31:        _rawmode        = FALSE,/* set if stty indicates RAW mode       */
                     32:        My_term         = FALSE,/* set if user specifies terminal type  */
                     33:        _endwin         = FALSE;/* set if endwin has been called        */
                     34: 
                     35: char   ttytype[50],            /* long name of tty                     */
                     36:        *Def_term       = "unknown";    /* default terminal type        */
                     37: 
                     38: int    _tty_ch         = 0,    /* file channel which is a tty          */
                     39:        LINES,                  /* number of lines allowed on screen    */
                     40:        COLS,                   /* number of columns allowed on screen  */
                     41:        _res_flg;               /* sgtty flags for reseting later       */
                     42: 
                     43: WINDOW *stdscr         = NULL,
                     44:        *curscr         = NULL;
                     45: 
                     46: # ifdef DEBUG
                     47: FILE   *outf;                  /* debug output file                    */
                     48: # endif
                     49: 
                     50: SGTTY  _tty;                   /* tty modes                            */
                     51: 
                     52: bool   AM, BS, CA, DA, DB, EO, HC, HZ, IN, MI, MS, NC, NS, OS, UL, XB, XN,
                     53:        XT, XS, XX;
                     54: char   *AL, *BC, *BT, *CD, *CE, *CL, *CM, *CR, *CS, *DC, *DL, *DM,
                     55:        *DO, *ED, *EI, *K0, *K1, *K2, *K3, *K4, *K5, *K6, *K7, *K8,
                     56:        *K9, *HO, *IC, *IM, *IP, *KD, *KE, *KH, *KL, *KR, *KS, *KU,
                     57:        *LL, *MA, *ND, *NL, *RC, *SC, *SE, *SF, *SO, *SR, *TA, *TE,
                     58:        *TI, *UC, *UE, *UP, *US, *VB, *VS, *VE, *AL_PARM, *DL_PARM,
                     59:        *UP_PARM, *DOWN_PARM, *LEFT_PARM, *RIGHT_PARM;
                     60: char   PC;
                     61: 
                     62: /*
                     63:  * From the tty modes...
                     64:  */
                     65: 
                     66: bool   GT, NONL, UPPERCASE, normtty, _pfast;

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.