|
|
1.1 root 1: /*
2: * Copyright (c) 1983 Regents of the University of California.
3: * All rights reserved.
4: *
5: * This code is derived from software contributed to Berkeley by
6: * Edward Wang at The University of California, Berkeley.
7: *
8: * Redistribution and use in source and binary forms are permitted provided
9: * that: (1) source distributions retain this entire copyright notice and
10: * comment, and (2) distributions including binaries display the following
11: * acknowledgement: ``This product includes software developed by the
12: * University of California, Berkeley and its contributors'' in the
13: * documentation or other materials provided with the distribution and in
14: * all advertising materials mentioning features or use of this software.
15: * Neither the name of the University nor the names of its contributors may
16: * be used to endorse or promote products derived from this software without
17: * specific prior written permission.
18: * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
19: * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
20: * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
21: */
22:
23: #ifndef lint
24: static char sccsid[] = "@(#)char.c 3.7 (Berkeley) 6/6/90";
25: #endif /* not lint */
26:
27: #include "char.h"
28:
29: char _cmap[] = {
30: _C|_U, _C|_U, _C|_U, _C|_U, /* ^@ - ^C */
31: _C|_U, _C|_U, _C|_U, _C|_U, /* ^D - ^G */
32: _C, _C|_P, _C, _C|_U, /* ^H - ^K */
33: _C|_U, _C, _C|_U, _C|_U, /* ^L - ^O */
34: _C|_U, _C|_U, _C|_U, _C|_U, /* ^P - ^S */
35: _C|_U, _C|_U, _C|_U, _C|_U, /* ^T - ^W */
36: _C|_U, _C|_U, _C|_U, _C|_U, /* ^U - ^[ */
37: _C|_U, _C|_U, _C|_U, _C|_U, /* ^\ - ^_ */
38:
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: _P|_U, _P|_U, _P|_U, _P|_U,
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:
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: _P|_U, _P|_U, _P|_U, _P|_U,
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:
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, _P|_U,
60: _P|_U, _P|_U, _P|_U, _P|_U,
61: _P|_U, _P|_U, _P|_U, _P|_U,
62: _P|_U, _P|_U, _P|_U, _P|_U,
63: _P|_U, _P|_U, _P|_U, _P|_U,
64: _P|_U, _P|_U, _P|_U, _C|_U,
65:
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: _C|_U, _C|_U, _C|_U, _C|_U,
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:
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: _C|_U, _C|_U, _C|_U, _C|_U,
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:
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: _C|_U, _C|_U, _C|_U, _C|_U,
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:
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: _C|_U, _C|_U, _C|_U, _C|_U,
97: _C|_U, _C|_U, _C|_U, _C|_U,
98: _C|_U, _C|_U, _C|_U, _C|_U,
99: _C|_U, _C|_U, _C|_U, _C|_U,
100: _C|_U, _C|_U, _C|_U, _C|_U
101: };
102:
103: char *_unctrl[] = {
104: "^@", "^A", "^B", "^C", "^D", "^E", "^F", "^G",
105: "^H", "^I", "^J", "^K", "^L", "^M", "^N", "^O",
106: "^P", "^Q", "^R", "^S", "^T", "^U", "^V", "^W",
107: "^X", "^Y", "^Z", "^[", "^\\", "^]", "^^", "^_",
108: " ", "!", "\"", "#", "$", "%", "&", "'",
109: "(", ")", "*", "+", ",", "-", ".", "/",
110: "0", "1", "2", "3", "4", "5", "6", "7",
111: "8", "9", ":", ";", "<", "=", ">", "?",
112: "@", "A", "B", "C", "D", "E", "F", "G",
113: "H", "I", "J", "K", "L", "M", "N", "O",
114: "P", "Q", "R", "S", "T", "U", "V", "W",
115: "X", "Y", "Z", "[", "\\", "]", "^", "_",
116: "`", "a", "b", "c", "d", "e", "f", "g",
117: "h", "i", "j", "k", "l", "m", "n", "o",
118: "p", "q", "r", "s", "t", "u", "v", "w",
119: "x", "y", "z", "{", "|", "}", "~", "^?",
120: "\\200","\\201","\\202","\\203","\\204","\\205","\\206","\\207",
121: "\\210","\\211","\\212","\\213","\\214","\\215","\\216","\\217",
122: "\\220","\\221","\\222","\\223","\\224","\\225","\\226","\\227",
123: "\\230","\\231","\\232","\\233","\\234","\\235","\\236","\\237",
124: "\\240","\\241","\\242","\\243","\\244","\\245","\\246","\\247",
125: "\\250","\\251","\\252","\\253","\\254","\\255","\\256","\\257",
126: "\\260","\\261","\\262","\\263","\\264","\\265","\\266","\\267",
127: "\\270","\\271","\\272","\\273","\\274","\\275","\\276","\\277",
128: "\\300","\\301","\\302","\\303","\\304","\\305","\\306","\\307",
129: "\\310","\\311","\\312","\\313","\\314","\\315","\\316","\\317",
130: "\\320","\\321","\\322","\\323","\\324","\\325","\\326","\\327",
131: "\\330","\\331","\\332","\\333","\\334","\\335","\\336","\\337",
132: "\\340","\\341","\\342","\\343","\\344","\\345","\\346","\\347",
133: "\\350","\\351","\\352","\\353","\\354","\\355","\\356","\\357",
134: "\\360","\\361","\\362","\\363","\\364","\\365","\\366","\\367",
135: "\\370","\\371","\\372","\\373","\\374","\\375","\\376","\\377"
136: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.