Annotation of 43BSDTahoe/ucb/window/char.c, revision 1.1

1.1     ! root        1: /*
        !             2:  * Copyright (c) 1983 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 the above copyright notice and this paragraph are
        !             7:  * duplicated in all such forms and that any documentation,
        !             8:  * advertising materials, and other materials related to such
        !             9:  * distribution and use acknowledge that the software was developed
        !            10:  * by the University of California, Berkeley.  The name of the
        !            11:  * University may not be used to endorse or promote products derived
        !            12:  * from this software without specific prior written permission.
        !            13:  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
        !            14:  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
        !            15:  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
        !            16:  */
        !            17: 
        !            18: #ifndef lint
        !            19: static char sccsid[] = "@(#)char.c     3.5 (Berkeley) 6/29/88";
        !            20: #endif /* not lint */
        !            21: 
        !            22: #include "char.h"
        !            23: 
        !            24: char _cmap[] = {
        !            25:        _C|_U,          _C|_U,          _C|_U,          _C|_U,  /* ^@ - ^C */
        !            26:        _C|_U,          _C|_U,          _C|_U,          _C|_U,  /* ^D - ^G */
        !            27:        _C,             _C|_P,          _C,             _C|_U,  /* ^H - ^K */
        !            28:        _C|_U,          _C,             _C|_U,          _C|_U,  /* ^L - ^O */
        !            29:        _C|_U,          _C|_U,          _C|_U,          _C|_U,  /* ^P - ^S */
        !            30:        _C|_U,          _C|_U,          _C|_U,          _C|_U,  /* ^T - ^W */
        !            31:        _C|_U,          _C|_U,          _C|_U,          _C|_U,  /* ^U - ^[ */
        !            32:        _C|_U,          _C|_U,          _C|_U,          _C|_U,  /* ^\ - ^_ */
        !            33: 
        !            34:        _P|_U,          _P|_U,          _P|_U,          _P|_U,
        !            35:        _P|_U,          _P|_U,          _P|_U,          _P|_U,
        !            36:        _P|_U,          _P|_U,          _P|_U,          _P|_U,
        !            37:        _P|_U,          _P|_U,          _P|_U,          _P|_U,
        !            38:        _P|_U,          _P|_U,          _P|_U,          _P|_U,
        !            39:        _P|_U,          _P|_U,          _P|_U,          _P|_U,
        !            40:        _P|_U,          _P|_U,          _P|_U,          _P|_U,
        !            41:        _P|_U,          _P|_U,          _P|_U,          _P|_U,
        !            42: 
        !            43:        _P|_U,          _P|_U,          _P|_U,          _P|_U,
        !            44:        _P|_U,          _P|_U,          _P|_U,          _P|_U,
        !            45:        _P|_U,          _P|_U,          _P|_U,          _P|_U,
        !            46:        _P|_U,          _P|_U,          _P|_U,          _P|_U,
        !            47:        _P|_U,          _P|_U,          _P|_U,          _P|_U,
        !            48:        _P|_U,          _P|_U,          _P|_U,          _P|_U,
        !            49:        _P|_U,          _P|_U,          _P|_U,          _P|_U,
        !            50:        _P|_U,          _P|_U,          _P|_U,          _P|_U,
        !            51: 
        !            52:        _P|_U,          _P|_U,          _P|_U,          _P|_U,
        !            53:        _P|_U,          _P|_U,          _P|_U,          _P|_U,
        !            54:        _P|_U,          _P|_U,          _P|_U,          _P|_U,
        !            55:        _P|_U,          _P|_U,          _P|_U,          _P|_U,
        !            56:        _P|_U,          _P|_U,          _P|_U,          _P|_U,
        !            57:        _P|_U,          _P|_U,          _P|_U,          _P|_U,
        !            58:        _P|_U,          _P|_U,          _P|_U,          _P|_U,
        !            59:        _P|_U,          _P|_U,          _P|_U,          _C|_U,
        !            60: 
        !            61:        _C|_U,          _C|_U,          _C|_U,          _C|_U,
        !            62:        _C|_U,          _C|_U,          _C|_U,          _C|_U,
        !            63:        _C|_U,          _C|_U,          _C|_U,          _C|_U,
        !            64:        _C|_U,          _C|_U,          _C|_U,          _C|_U,
        !            65:        _C|_U,          _C|_U,          _C|_U,          _C|_U,
        !            66:        _C|_U,          _C|_U,          _C|_U,          _C|_U,
        !            67:        _C|_U,          _C|_U,          _C|_U,          _C|_U,
        !            68:        _C|_U,          _C|_U,          _C|_U,          _C|_U,
        !            69: 
        !            70:        _C|_U,          _C|_U,          _C|_U,          _C|_U,
        !            71:        _C|_U,          _C|_U,          _C|_U,          _C|_U,
        !            72:        _C|_U,          _C|_U,          _C|_U,          _C|_U,
        !            73:        _C|_U,          _C|_U,          _C|_U,          _C|_U,
        !            74:        _C|_U,          _C|_U,          _C|_U,          _C|_U,
        !            75:        _C|_U,          _C|_U,          _C|_U,          _C|_U,
        !            76:        _C|_U,          _C|_U,          _C|_U,          _C|_U,
        !            77:        _C|_U,          _C|_U,          _C|_U,          _C|_U,
        !            78: 
        !            79:        _C|_U,          _C|_U,          _C|_U,          _C|_U,
        !            80:        _C|_U,          _C|_U,          _C|_U,          _C|_U,
        !            81:        _C|_U,          _C|_U,          _C|_U,          _C|_U,
        !            82:        _C|_U,          _C|_U,          _C|_U,          _C|_U,
        !            83:        _C|_U,          _C|_U,          _C|_U,          _C|_U,
        !            84:        _C|_U,          _C|_U,          _C|_U,          _C|_U,
        !            85:        _C|_U,          _C|_U,          _C|_U,          _C|_U,
        !            86:        _C|_U,          _C|_U,          _C|_U,          _C|_U,
        !            87: 
        !            88:        _C|_U,          _C|_U,          _C|_U,          _C|_U,
        !            89:        _C|_U,          _C|_U,          _C|_U,          _C|_U,
        !            90:        _C|_U,          _C|_U,          _C|_U,          _C|_U,
        !            91:        _C|_U,          _C|_U,          _C|_U,          _C|_U,
        !            92:        _C|_U,          _C|_U,          _C|_U,          _C|_U,
        !            93:        _C|_U,          _C|_U,          _C|_U,          _C|_U,
        !            94:        _C|_U,          _C|_U,          _C|_U,          _C|_U,
        !            95:        _C|_U,          _C|_U,          _C|_U,          _C|_U
        !            96: };
        !            97: 
        !            98: char *_unctrl[] = {
        !            99:        "^@",   "^A",   "^B",   "^C",   "^D",   "^E",   "^F",   "^G",
        !           100:        "^H",   "^I",   "^J",   "^K",   "^L",   "^M",   "^N",   "^O",
        !           101:        "^P",   "^Q",   "^R",   "^S",   "^T",   "^U",   "^V",   "^W",
        !           102:        "^X",   "^Y",   "^Z",   "^[",   "^\\",  "^]",   "^^",   "^_",
        !           103:        " ",    "!",    "\"",   "#",    "$",    "%",    "&",    "'",
        !           104:        "(",    ")",    "*",    "+",    ",",    "-",    ".",    "/",
        !           105:        "0",    "1",    "2",    "3",    "4",    "5",    "6",    "7",
        !           106:        "8",    "9",    ":",    ";",    "<",    "=",    ">",    "?",
        !           107:        "@",    "A",    "B",    "C",    "D",    "E",    "F",    "G",
        !           108:        "H",    "I",    "J",    "K",    "L",    "M",    "N",    "O",
        !           109:        "P",    "Q",    "R",    "S",    "T",    "U",    "V",    "W",
        !           110:        "X",    "Y",    "Z",    "[",    "\\",   "]",    "^",    "_",
        !           111:        "`",    "a",    "b",    "c",    "d",    "e",    "f",    "g",
        !           112:        "h",    "i",    "j",    "k",    "l",    "m",    "n",    "o",
        !           113:        "p",    "q",    "r",    "s",    "t",    "u",    "v",    "w",
        !           114:        "x",    "y",    "z",    "{",    "|",    "}",    "~",    "^?",
        !           115:        "\\200","\\201","\\202","\\203","\\204","\\205","\\206","\\207",
        !           116:        "\\210","\\211","\\212","\\213","\\214","\\215","\\216","\\217",
        !           117:        "\\220","\\221","\\222","\\223","\\224","\\225","\\226","\\227",
        !           118:        "\\230","\\231","\\232","\\233","\\234","\\235","\\236","\\237",
        !           119:        "\\240","\\241","\\242","\\243","\\244","\\245","\\246","\\247",
        !           120:        "\\250","\\251","\\252","\\253","\\254","\\255","\\256","\\257",
        !           121:        "\\260","\\261","\\262","\\263","\\264","\\265","\\266","\\267",
        !           122:        "\\270","\\271","\\272","\\273","\\274","\\275","\\276","\\277",
        !           123:        "\\300","\\301","\\302","\\303","\\304","\\305","\\306","\\307",
        !           124:        "\\310","\\311","\\312","\\313","\\314","\\315","\\316","\\317",
        !           125:        "\\320","\\321","\\322","\\323","\\324","\\325","\\326","\\327",
        !           126:        "\\330","\\331","\\332","\\333","\\334","\\335","\\336","\\337",
        !           127:        "\\340","\\341","\\342","\\343","\\344","\\345","\\346","\\347",
        !           128:        "\\350","\\351","\\352","\\353","\\354","\\355","\\356","\\357",
        !           129:        "\\360","\\361","\\362","\\363","\\364","\\365","\\366","\\367",
        !           130:        "\\370","\\371","\\372","\\373","\\374","\\375","\\376","\\377"
        !           131: };

unix.superglobalmegacorp.com

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