|
|
1.1 ! root 1: #include "map.h" ! 2: #include "/usr/jerq/include/keymap.h" ! 3: ! 4: int kmap[256] = ! 5: { ! 6: 0, 1, 2, 3, 4, 5, 6, 7, /* 7 */ ! 7: 8, 9, 10, 11, 12, 13, 14, 15, /* 15 */ ! 8: 16, 17, 18, 19, 20, 21, 22, 23, /* 23 */ ! 9: 24, 25, 26, 27, 28, 29, 30, 31, /* 31 */ ! 10: ' ', UMLAUT, ')', '<', LE, '=', '>', ']', /* ' */ ! 11: OR, AND, NE, DIVIDE, ',', '+', '.', '/', /* / */ ! 12: '0', '1', '2', '3', '4', '5', '6', '7', /* 7 */ ! 13: '8', '9', '(', '[', ';', TIMES, ':', '\\', /* ? */ ! 14: NEG, ALPHA, BASE, CAP, FLOOR, EPSILON, '_', DEL, /* G */ ! 15: DELTA, IOTA, JOT, '\'', QUAD, '|', TOP, CIRCLE, /* O */ ! 16: '*', '?', RHO, CEILING, '~', DARROW, CUP, OMEGA, /* W */ ! 17: RSHOE, UARROW, LSHOE, LARROW, '{', LTACK, GE, '-', /* _ */ ! 18: DIAMOND, 'a', 'b', 'c', 'd', 'e', 'f', 'g', /* g */ ! 19: 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', /* o */ ! 20: 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', /* w */ ! 21: 'x', 'y', 'z', RARROW, '}', RTACK, '$', '', /* */ ! 22: 0, 0, 0, 0, 0, 0, 0, 0, /* 135 */ ! 23: 0, 0, 0, 0, 0, 0, 0, 0, /* 143 */ ! 24: 0, 0, DGRADE, 0, THORN, BSLASHB, 0, 0, /* 151 */ ! 25: 0, 0, 0, 0, 0, 0, 0, 0, /* 159 */ ! 26: 0, 0, 0, 0, 0, 0, 0, 0, /* 167 */ ! 27: 0, 0, 0, 0, 0, 0, 0, 0, /* 175 */ ! 28: 0, 0, 254, 0, 0, 0, 0, 0, /* 183 */ ! 29: 0, 0, 0, 0, 0, 0, 0, 0, /* 191 */ ! 30: OBAR, UGRADE, NAND, QQUAD, NOR, 0, ON, 0, /* 199 */ ! 31: 0, 0, 0, 0, 0, 0, 0, 0, /* 207 */ ! 32: 0, 0, LAMP, HYDRANT, CENT, SLASHB, MATCH, OVER, /* 215 */ ! 33: 0, 0, 0, 0, 0, 0, 0, 0, /* 223 */ ! 34: 0, 0, 0, 0, 0, 64, 0, 0, /* 231 */ ! 35: TRANS, IBEAM, DOMINO, LOG, DELTAB, THETA, PHI, LDEL, /* 239 */ ! 36: 0, 0, 0, 0, 0, 0, 0, 0, /* 247 */ ! 37: 0, 0, 0, 0, 0, 0, 0, 0, /* 255 */ ! 38: }; ! 39: ! 40: mapchar(c) ! 41: { ! 42: static lower = 1; ! 43: ! 44: if(c == 033) /* escape */ ! 45: { ! 46: lower = !lower; ! 47: return(255); ! 48: } ! 49: if((c >= 'a') && (c <= 'z')) ! 50: return(c - (lower? 0:32)); ! 51: return(kmap[c]); ! 52: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.