Annotation of coherent/a/usr/include.b4ps2/terminfo.h, revision 1.1.1.1

1.1       root        1: /*********************************************************************
                      2: *                         COPYRIGHT NOTICE                           *
                      3: **********************************************************************
                      4: *        This software is copyright (C) 1982 by Pavel Curtis         *
                      5: *                                                                    *
                      6: *        Permission is granted to reproduce and distribute           *
                      7: *        this file by any means so long as no fee is charged         *
                      8: *        above a nominal handling fee and so long as this            *
                      9: *        notice is always included in the copies.                    *
                     10: *                                                                    *
                     11: *        Other rights are reserved except as explicitly granted      *
                     12: *        by written permission of the author.                        *
                     13: *                Pavel Curtis                                        *
                     14: *                Computer Science Dept.                              *
                     15: *                405 Upson Hall                                      *
                     16: *                Cornell University                                  *
                     17: *                Ithaca, NY 14853                                    *
                     18: *                                                                    *
                     19: *                Ph- (607) 256-4934                                  *
                     20: *                                                                    *
                     21: *                Pavel.Cornell@Udel-Relay   (ARPAnet)                *
                     22: *                decvax!cornell!pavel       (UUCPnet)                *
                     23: *********************************************************************/
                     24: 
                     25: /*
                     26:  *  $Header: /src386/usr/include/RCS/terminfo.h,v 1.3 92/11/13 15:38:19 bin Exp $
                     27:  *
                     28:  *     terminfo.h - those things needed for programs runnning at the
                     29:  *                     terminfo level.
                     30:  *
                     31:  *  $Log:      terminfo.h,v $
                     32:  * Revision 1.3  92/11/13  15:38:19  bin
                     33:  * cef update from udo for pads and color
                     34:  * 
                     35:  * Revision 2.3  92/10/25  22:52:49  munk
                     36:  * Now supports 16-bit characters
                     37:  * Defines for alternate character set added
                     38:  * Attribute bits changed, colors added
                     39:  *
                     40:  * Revision 1.2  92/04/13  14:40:21  bin
                     41:  * *** empty log message ***
                     42:  * 
                     43:  * Revision 2.2  91/02/10  12:27:05  munk
                     44:  * Added conditional 8-bit characters for UNIX on PC's
                     45:  * 
                     46:  * Revision 2.1  82/10/25  14:49:59  pavel
                     47:  * Added Copyright Notice
                     48:  * 
                     49:  * Revision 2.0  82/10/24  15:18:26  pavel
                     50:  * Beta-one Test Release
                     51:  * 
                     52:  * Revision 1.4  82/08/23  22:31:21  pavel
                     53:  * The REAL Alpha-one Release Version
                     54:  * 
                     55:  * Revision 1.3  82/08/19  19:24:11  pavel
                     56:  * Alpha Test Release One
                     57:  * 
                     58:  * Revision 1.2  82/08/19  19:10:56  pavel
                     59:  * Alpha Test Release One
                     60:  * 
                     61:  * Revision 1.1  82/08/15  16:42:20  pavel
                     62:  * Initial revision
                     63:  */
                     64: 
                     65: #ifndef A_STANDOUT
                     66: 
                     67: #include <stdio.h>
                     68: #include <sgtty.h>
                     69: 
                     70: #define SGTTY  struct sgttyb
                     71: 
                     72: /* Video attributes */
                     73: 
                     74: #define A_NORMAL       000000000000L
                     75: #define A_ATTRIBUTES   037777600000L   /* 0xFFFF0000 */
                     76: #define A_CHARTEXT     000000177777L   /* 0x0000FFFF */
                     77: #define A_COLOR                017600000000L
                     78: 
                     79: #define A_STANDOUT     000000200000L
                     80: #define        _STANDOUT       A_STANDOUT    /* for compatability with old curses */
                     81: #define A_UNDERLINE    000000400000L
                     82: 
                     83: #define A_REVERSE      000001000000L
                     84: #define A_BLINK                000002000000L
                     85: #define A_DIM          000004000000L
                     86: #define A_BOLD         000010000000L
                     87: #define A_ALTCHARSET   000100000000L
                     88: /* The next two are subject to change so don't depend on them */
                     89: #define A_INVIS                000020000000L
                     90: #define A_PROTECT      000040000000L
                     91: 
                     92: #define COLOR_PAIR(n)  ((n) << 25)
                     93: #define PAIR_NUMBER(n) (((n) & A_COLOR) >> 25)
                     94: 
                     95: #define COLOR_BLACK    1
                     96: #define COLOR_RED      2
                     97: #define COLOR_GREEN    3
                     98: #define COLOR_YELLOW   4
                     99: #define COLOR_BLUE     5
                    100: #define COLOR_MAGENTA  6
                    101: #define COLOR_CYAN     7
                    102: #define COLOR_WHITE    8
                    103: 
                    104: #define ACS_ULCORNER   (acs_map['l'])  /* upper left corner */
                    105: #define ACS_LLCORNER   (acs_map['m'])  /* lower left corner */
                    106: #define ACS_URCORNER   (acs_map['k'])  /* upper right corner */
                    107: #define ACS_LRCORNER   (acs_map['j'])  /* lower right corner */
                    108: #define ACS_RTEE       (acs_map['u'])  /* right tee */
                    109: #define ACS_LTEE       (acs_map['t'])  /* left tee */
                    110: #define ACS_BTEE       (acs_map['v'])  /* bottom tee */
                    111: #define ACS_TTEE       (acs_map['w'])  /* top tee */
                    112: #define ACS_HLINE      (acs_map['q'])  /* horizontal line */
                    113: #define ACS_VLINE      (acs_map['x'])  /* vertical line */
                    114: #define ACS_PLUS       (acs_map['n'])  /* plus */
                    115: #define ACS_S1         (acs_map['o'])  /* scan line 1 */
                    116: #define ACS_S9         (acs_map['s'])  /* scan line 9 */
                    117: #define ACS_DIAMOND    (acs_map['`'])  /* diamond */
                    118: #define ACS_CKBOARD    (acs_map['a'])  /* checker board (stipple) */
                    119: #define ACS_DEGREE     (acs_map['f'])  /* degree symbol */
                    120: #define ACS_PLMINUS    (acs_map['g'])  /* plus/minus */
                    121: #define ACS_BULLET     (acs_map['~'])  /* bullet */
                    122: #define ACS_LARROW     (acs_map[','])  /* arrow pointing left */
                    123: #define ACS_RARROW     (acs_map['+'])  /* arrow pointing right */
                    124: #define ACS_DARROW     (acs_map['.'])  /* arrow pointing down */
                    125: #define ACS_UARROW     (acs_map['-'])  /* arrow pointing up */
                    126: #define ACS_BOARD      (acs_map['h'])  /* board of squares */
                    127: #define ACS_LANTERN    (acs_map['i'])  /* lantern symbol */
                    128: #define ACS_BLOCK      (acs_map['0'])  /* solid square block */
                    129: 
                    130: extern char    ttytype[];
                    131: extern chtype  acs_map[];
                    132: #define NAMESIZE       256
                    133: #endif

unix.superglobalmegacorp.com

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