1: #ifndef lint 2: static char sccsid[] = "@(#)char.c 3.3 4/24/85"; 3: #endif 4: 5: /* 6: * Copyright (c) 1983 Regents of the University of California, 7: * All rights reserved. Redistribution permitted subject to 8: * the terms of the Berkeley Software License Agreement. 9: */ 10: 11: #include "char.h" 12: 13: char _cmap[] = { 14: _C|_U, _C|_U, _C|_U, _C|_U, /* ^@ - ^C */ 15: _C|_U, _C|_U, _C|_U, _C|_U, /* ^D - ^G */ 16: _C, _C|_P, _C, _C|_U, /* ^H - ^K */ 17: _C|_U, _C, _C|_U, _C|_U, /* ^L - ^O */ 18: _C|_U, _C|_U, _C|_U, _C|_U, /* ^P - ^S */ 19: _C|_U, _C|_U, _C|_U, _C|_U, /* ^T - ^W */ 20: _C|_U, _C|_U, _C|_U, _C|_U, /* ^U - ^[ */ 21: _C|_U, _C|_U, _C|_U, _C|_U, /* ^\ - ^_ */ 22: 23: _P|_U, _P|_U, _P|_U, _P|_U, 24: _P|_U, _P|_U, _P|_U, _P|_U, 25: _P|_U, _P|_U, _P|_U, _P|_U, 26: _P|_U, _P|_U, _P|_U, _P|_U, 27: _P|_U, _P|_U, _P|_U, _P|_U, 28: _P|_U, _P|_U, _P|_U, _P|_U, 29: _P|_U, _P|_U, _P|_U, _P|_U, 30: _P|_U, _P|_U, _P|_U, _P|_U, 31: 32: _P|_U, _P|_U, _P|_U, _P|_U, 33: _P|_U, _P|_U, _P|_U, _P|_U, 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: 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: _P|_U, _P|_U, _P|_U, _P|_U, 48: _P|_U, _P|_U, _P|_U, _C|_U, 49: 50: _C|_U, _C|_U, _C|_U, _C|_U, 51: _C|_U, _C|_U, _C|_U, _C|_U, 52: _C|_U, _C|_U, _C|_U, _C|_U, 53: _C|_U, _C|_U, _C|_U, _C|_U, 54: _C|_U, _C|_U, _C|_U, _C|_U, 55: _C|_U, _C|_U, _C|_U, _C|_U, 56: _C|_U, _C|_U, _C|_U, _C|_U, 57: _C|_U, _C|_U, _C|_U, _C|_U, 58: 59: _C|_U, _C|_U, _C|_U, _C|_U, 60: _C|_U, _C|_U, _C|_U, _C|_U, 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: 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: _C|_U, _C|_U, _C|_U, _C|_U, 75: _C|_U, _C|_U, _C|_U, _C|_U, 76: 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: _C|_U, _C|_U, _C|_U, _C|_U, 84: _C|_U, _C|_U, _C|_U, _C|_U 85: }; 86: 87: char *_unctrl[] = { 88: "^@", "^A", "^B", "^C", "^D", "^E", "^F", "^G", 89: "^H", "^I", "^J", "^K", "^L", "^M", "^N", "^O", 90: "^P", "^Q", "^R", "^S", "^T", "^U", "^V", "^W", 91: "^X", "^Y", "^Z", "^[", "^\\", "^]", "^^", "^_", 92: " ", "!", "\"", "#", "$", "%", "&", "'", 93: "(", ")", "*", "+", ",", "-", ".", "/", 94: "0", "1", "2", "3", "4", "5", "6", "7", 95: "8", "9", ":", ";", "<", "=", ">", "?", 96: "@", "A", "B", "C", "D", "E", "F", "G", 97: "H", "I", "J", "K", "L", "M", "N", "O", 98: "P", "Q", "R", "S", "T", "U", "V", "W", 99: "X", "Y", "Z", "[", "\\", "]", "^", "_", 100: "`", "a", "b", "c", "d", "e", "f", "g", 101: "h", "i", "j", "k", "l", "m", "n", "o", 102: "p", "q", "r", "s", "t", "u", "v", "w", 103: "x", "y", "z", "{", "|", "}", "~", "^?", 104: "\\200","\\201","\\202","\\203","\\204","\\205","\\206","\\207", 105: "\\210","\\211","\\212","\\213","\\214","\\215","\\216","\\217", 106: "\\220","\\221","\\222","\\223","\\224","\\225","\\226","\\227", 107: "\\230","\\231","\\232","\\233","\\234","\\235","\\236","\\237", 108: "\\240","\\241","\\242","\\243","\\244","\\245","\\246","\\247", 109: "\\250","\\251","\\252","\\253","\\254","\\255","\\256","\\257", 110: "\\260","\\261","\\262","\\263","\\264","\\265","\\266","\\267", 111: "\\270","\\271","\\272","\\273","\\274","\\275","\\276","\\277", 112: "\\300","\\301","\\302","\\303","\\304","\\305","\\306","\\307", 113: "\\310","\\311","\\312","\\313","\\314","\\315","\\316","\\317", 114: "\\320","\\321","\\322","\\323","\\324","\\325","\\326","\\327", 115: "\\330","\\331","\\332","\\333","\\334","\\335","\\336","\\337", 116: "\\340","\\341","\\342","\\343","\\344","\\345","\\346","\\347", 117: "\\350","\\351","\\352","\\353","\\354","\\355","\\356","\\357", 118: "\\360","\\361","\\362","\\363","\\364","\\365","\\366","\\367", 119: "\\370","\\371","\\372","\\373","\\374","\\375","\\376","\\377" 120: };