home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume20 / keybind.pch < prev    next >
SHell self-extracting ARchive  |  1989-10-29  |  1.7 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: SHell self-extracting ARchive (archive/shar).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert SHell self-extracting ARchive (archive/shar) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert IFF Binary Patch (other/iffBinaryPatch) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file news or mail, ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/329 Shell Archive Format default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/rfc822 default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 53 75 62 6a 65 63 74 3a | 20 20 76 32 30 69 30 38 |Subject:| v20i08|
|00000010| 33 3a 20 20 52 65 62 69 | 6e 64 20 74 68 65 20 63 |3: Rebi|nd the c|
|00000020| 6f 6e 73 6f 6c 65 20 6b | 65 79 62 6f 61 72 64 20 |onsole k|eyboard |
|00000030| 69 6e 20 58 65 6e 69 78 | 20 6f 72 20 53 79 73 74 |in Xenix| or Syst|
|00000040| 65 6d 20 56 72 33 2e 32 | 2e 31 2b 0a 4e 65 77 73 |em Vr3.2|.1+.News|
|00000050| 67 72 6f 75 70 73 3a 20 | 63 6f 6d 70 2e 73 6f 75 |groups: |comp.sou|
|00000060| 72 63 65 73 2e 75 6e 69 | 78 0a 53 65 6e 64 65 72 |rces.uni|x.Sender|
|00000070| 3a 20 73 6f 75 72 63 65 | 73 0a 41 70 70 72 6f 76 |: source|s.Approv|
|00000080| 65 64 3a 20 72 73 61 6c | 7a 40 75 75 6e 65 74 2e |ed: rsal|z@uunet.|
|00000090| 55 55 2e 4e 45 54 0a 0a | 53 75 62 6d 69 74 74 65 |UU.NET..|Submitte|
|000000a0| 64 2d 62 79 3a 20 45 72 | 69 63 20 53 2e 20 52 61 |d-by: Er|ic S. Ra|
|000000b0| 79 6d 6f 6e 64 20 3c 65 | 72 69 63 40 73 6e 61 72 |ymond <e|ric@snar|
|000000c0| 6b 2e 75 75 2e 6e 65 74 | 3e 0a 50 6f 73 74 69 6e |k.uu.net|>.Postin|
|000000d0| 67 2d 6e 75 6d 62 65 72 | 3a 20 56 6f 6c 75 6d 65 |g-number|: Volume|
|000000e0| 20 32 30 2c 20 49 73 73 | 75 65 20 38 33 0a 41 72 | 20, Iss|ue 83.Ar|
|000000f0| 63 68 69 76 65 2d 6e 61 | 6d 65 3a 20 6b 65 79 62 |chive-na|me: keyb|
|00000100| 69 6e 64 2e 70 63 68 0a | 0a 41 20 66 69 6c 65 20 |ind.pch.|.A file |
|00000110| 77 61 73 20 69 6e 61 64 | 76 65 72 74 65 6e 74 6c |was inad|vertentl|
|00000120| 79 20 6c 65 66 74 20 6f | 66 66 20 74 68 65 20 73 |y left o|ff the s|
|00000130| 68 61 72 20 6d 61 6e 69 | 66 65 73 74 20 69 6e 20 |har mani|fest in |
|00000140| 74 68 65 20 4d 61 6b 65 | 66 69 6c 65 2e 0a 0a 48 |the Make|file...H|
|00000150| 65 72 65 20 69 74 20 69 | 73 2e 0a 0a 50 6c 65 61 |ere it i|s...Plea|
|00000160| 73 65 20 61 6c 73 6f 20 | 61 64 64 20 60 6b 65 79 |se also |add `key|
|00000170| 62 69 6e 64 2e 68 27 20 | 74 6f 20 74 68 65 20 73 |bind.h' |to the s|
|00000180| 68 61 72 20 70 72 6f 64 | 75 63 74 69 6f 6e 20 69 |har prod|uction i|
|00000190| 6e 20 4d 61 6b 65 66 69 | 6c 65 2e 0a 0a 23 21 20 |n Makefi|le...#! |
|000001a0| 2f 62 69 6e 2f 73 68 0a | 23 20 54 68 69 73 20 69 |/bin/sh.|# This i|
|000001b0| 73 20 61 20 73 68 65 6c | 6c 20 61 72 63 68 69 76 |s a shel|l archiv|
|000001c0| 65 2e 20 20 52 65 6d 6f | 76 65 20 61 6e 79 74 68 |e. Remo|ve anyth|
|000001d0| 69 6e 67 20 62 65 66 6f | 72 65 20 74 68 69 73 20 |ing befo|re this |
|000001e0| 6c 69 6e 65 2c 20 74 68 | 65 6e 20 75 6e 70 61 63 |line, th|en unpac|
|000001f0| 6b 0a 23 20 69 74 20 62 | 79 20 73 61 76 69 6e 67 |k.# it b|y saving|
|00000200| 20 69 74 20 69 6e 74 6f | 20 61 20 66 69 6c 65 20 | it into| a file |
|00000210| 61 6e 64 20 74 79 70 69 | 6e 67 20 22 73 68 20 66 |and typi|ng "sh f|
|00000220| 69 6c 65 22 2e 20 20 54 | 6f 20 6f 76 65 72 77 72 |ile". T|o overwr|
|00000230| 69 74 65 20 65 78 69 73 | 74 69 6e 67 0a 23 20 66 |ite exis|ting.# f|
|00000240| 69 6c 65 73 2c 20 74 79 | 70 65 20 22 73 68 20 66 |iles, ty|pe "sh f|
|00000250| 69 6c 65 20 2d 63 22 2e | 20 20 59 6f 75 20 63 61 |ile -c".| You ca|
|00000260| 6e 20 61 6c 73 6f 20 66 | 65 65 64 20 74 68 69 73 |n also f|eed this|
|00000270| 20 61 73 20 73 74 61 6e | 64 61 72 64 20 69 6e 70 | as stan|dard inp|
|00000280| 75 74 20 76 69 61 0a 23 | 20 75 6e 73 68 61 72 2c |ut via.#| unshar,|
|00000290| 20 6f 72 20 62 79 20 74 | 79 70 69 6e 67 20 22 73 | or by t|yping "s|
|000002a0| 68 20 3c 66 69 6c 65 22 | 2c 20 65 2e 67 2e 2e 20 |h <file"|, e.g.. |
|000002b0| 20 49 66 20 74 68 69 73 | 20 61 72 63 68 69 76 65 | If this| archive|
|000002c0| 20 69 73 20 63 6f 6d 70 | 6c 65 74 65 2c 20 79 6f | is comp|lete, yo|
|000002d0| 75 0a 23 20 77 69 6c 6c | 20 73 65 65 20 74 68 65 |u.# will| see the|
|000002e0| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 6d 65 73 73 61 | followi|ng messa|
|000002f0| 67 65 20 61 74 20 74 68 | 65 20 65 6e 64 3a 0a 23 |ge at th|e end:.#|
|00000300| 09 09 22 45 6e 64 20 6f | 66 20 73 68 65 6c 6c 20 |.."End o|f shell |
|00000310| 61 72 63 68 69 76 65 2e | 22 0a 23 20 43 6f 6e 74 |archive.|".# Cont|
|00000320| 65 6e 74 73 3a 20 20 6b | 65 79 62 69 6e 64 2e 68 |ents: k|eybind.h|
|00000330| 0a 23 20 57 72 61 70 70 | 65 64 20 62 79 20 72 73 |.# Wrapp|ed by rs|
|00000340| 61 6c 7a 40 70 61 70 61 | 79 61 2e 62 62 6e 2e 63 |alz@papa|ya.bbn.c|
|00000350| 6f 6d 20 6f 6e 20 4d 6f | 6e 20 4f 63 74 20 33 30 |om on Mo|n Oct 30|
|00000360| 20 31 31 3a 31 38 3a 32 | 31 20 31 39 38 39 0a 50 | 11:18:2|1 1989.P|
|00000370| 41 54 48 3d 2f 62 69 6e | 3a 2f 75 73 72 2f 62 69 |ATH=/bin|:/usr/bi|
|00000380| 6e 3a 2f 75 73 72 2f 75 | 63 62 20 3b 20 65 78 70 |n:/usr/u|cb ; exp|
|00000390| 6f 72 74 20 50 41 54 48 | 0a 69 66 20 74 65 73 74 |ort PATH|.if test|
|000003a0| 20 2d 66 20 27 6b 65 79 | 62 69 6e 64 2e 68 27 20 | -f 'key|bind.h' |
|000003b0| 2d 61 20 22 24 7b 31 7d | 22 20 21 3d 20 22 2d 63 |-a "${1}|" != "-c|
|000003c0| 22 20 3b 20 74 68 65 6e | 20 0a 20 20 65 63 68 6f |" ; then| . echo|
|000003d0| 20 73 68 61 72 3a 20 57 | 69 6c 6c 20 6e 6f 74 20 | shar: W|ill not |
|000003e0| 63 6c 6f 62 62 65 72 20 | 65 78 69 73 74 69 6e 67 |clobber |existing|
|000003f0| 20 66 69 6c 65 20 5c 22 | 27 6b 65 79 62 69 6e 64 | file \"|'keybind|
|00000400| 2e 68 27 5c 22 0a 65 6c | 73 65 0a 65 63 68 6f 20 |.h'\".el|se.echo |
|00000410| 73 68 61 72 3a 20 45 78 | 74 72 61 63 74 69 6e 67 |shar: Ex|tracting|
|00000420| 20 5c 22 27 6b 65 79 62 | 69 6e 64 2e 68 27 5c 22 | \"'keyb|ind.h'\"|
|00000430| 20 5c 28 34 32 38 20 63 | 68 61 72 61 63 74 65 72 | \(428 c|haracter|
|00000440| 73 5c 29 0a 73 65 64 20 | 22 73 2f 5e 58 2f 2f 22 |s\).sed |"s/^X//"|
|00000450| 20 3e 27 6b 65 79 62 69 | 6e 64 2e 68 27 20 3c 3c | >'keybi|nd.h' <<|
|00000460| 27 45 4e 44 5f 4f 46 5f | 46 49 4c 45 27 0a 58 2f |'END_OF_|FILE'.X/|
|00000470| 2a 20 6b 65 79 62 69 6e | 64 2e 68 20 2d 2d 20 74 |* keybin|d.h -- t|
|00000480| 68 69 73 20 73 74 72 75 | 63 74 75 72 65 20 75 73 |his stru|cture us|
|00000490| 65 64 20 66 6f 72 20 61 | 20 70 72 65 63 6f 6d 70 |ed for a| precomp|
|000004a0| 69 6c 65 64 20 6b 65 79 | 6d 61 70 20 64 65 66 69 |iled key|map defi|
|000004b0| 6e 69 74 69 6f 6e 20 2a | 2f 0a 58 0a 58 23 64 65 |nition *|/.X.X#de|
|000004c0| 66 69 6e 65 20 4b 42 44 | 48 44 4d 41 47 49 43 09 |fine KBD|HDMAGIC.|
|000004d0| 30 78 30 31 30 32 30 31 | 30 32 09 2f 2a 20 61 6c |0x010201|02./* al|
|000004e0| 6c 20 62 79 74 65 73 20 | 6d 75 73 74 20 62 65 20 |l bytes |must be |
|000004f0| 6e 6f 6e 2d 70 72 69 6e | 74 61 62 6c 65 20 63 68 |non-prin|table ch|
|00000500| 61 72 73 20 2a 2f 0a 58 | 0a 58 74 79 70 65 64 65 |ars */.X|.Xtypede|
|00000510| 66 20 73 74 72 75 63 74 | 0a 58 7b 0a 58 20 20 20 |f struct|.X{.X |
|00000520| 20 69 6e 74 09 09 09 6d | 61 67 69 63 3b 09 09 2f | int...m|agic;../|
|00000530| 2a 20 73 68 6f 75 6c 64 | 20 62 65 20 4b 42 44 48 |* should| be KBDH|
|00000540| 44 4d 41 47 49 43 20 2a | 2f 0a 58 20 20 20 20 6b |DMAGIC *|/.X k|
|00000550| 65 79 6d 61 70 5f 74 09 | 09 6b 65 79 6d 61 70 3b |eymap_t.|.keymap;|
|00000560| 09 09 2f 2a 20 6b 65 79 | 62 6f 61 72 64 20 6d 61 |../* key|board ma|
|00000570| 70 20 74 6f 20 6c 6f 61 | 64 20 2a 2f 0a 58 20 20 |p to loa|d */.X |
|00000580| 20 20 73 74 72 6d 61 70 | 5f 74 09 09 73 74 72 6d | strmap|_t..strm|
|00000590| 61 70 3b 09 09 2f 2a 20 | 73 74 72 69 6e 67 20 74 |ap;../* |string t|
|000005a0| 61 62 6c 65 20 74 6f 20 | 6c 6f 61 64 20 2a 2f 0a |able to |load */.|
|000005b0| 58 7d 0a 58 6b 62 64 5f | 74 3b 0a 58 0a 58 65 78 |X}.Xkbd_|t;.X.Xex|
|000005c0| 74 65 72 6e 20 6b 62 64 | 5f 74 20 6b 62 64 3b 0a |tern kbd|_t kbd;.|
|000005d0| 58 0a 58 65 78 74 65 72 | 6e 20 76 6f 69 64 20 64 |X.Xexter|n void d|
|000005e0| 75 6d 70 5f 73 74 72 69 | 6e 67 28 29 3b 09 2f 2a |ump_stri|ng();./*|
|000005f0| 20 66 72 6f 6d 20 74 68 | 65 20 6c 65 78 69 63 61 | from th|e lexica|
|00000600| 6c 20 61 6e 61 6c 79 7a | 65 72 20 2a 2f 0a 58 0a |l analyz|er */.X.|
|00000610| 58 2f 2a 20 6b 65 79 62 | 69 6e 64 2e 68 20 65 6e |X/* keyb|ind.h en|
|00000620| 64 73 20 68 65 72 65 20 | 2a 2f 0a 45 4e 44 5f 4f |ds here |*/.END_O|
|00000630| 46 5f 46 49 4c 45 0a 69 | 66 20 74 65 73 74 20 34 |F_FILE.i|f test 4|
|00000640| 32 38 20 2d 6e 65 20 60 | 77 63 20 2d 63 20 3c 27 |28 -ne `|wc -c <'|
|00000650| 6b 65 79 62 69 6e 64 2e | 68 27 60 3b 20 74 68 65 |keybind.|h'`; the|
|00000660| 6e 0a 20 20 20 20 65 63 | 68 6f 20 73 68 61 72 3a |n. ec|ho shar:|
|00000670| 20 5c 22 27 6b 65 79 62 | 69 6e 64 2e 68 27 5c 22 | \"'keyb|ind.h'\"|
|00000680| 20 75 6e 70 61 63 6b 65 | 64 20 77 69 74 68 20 77 | unpacke|d with w|
|00000690| 72 6f 6e 67 20 73 69 7a | 65 21 0a 66 69 0a 23 20 |rong siz|e!.fi.# |
|000006a0| 65 6e 64 20 6f 66 20 27 | 6b 65 79 62 69 6e 64 2e |end of '|keybind.|
|000006b0| 68 27 0a 66 69 0a 65 63 | 68 6f 20 73 68 61 72 3a |h'.fi.ec|ho shar:|
|000006c0| 20 45 6e 64 20 6f 66 20 | 73 68 65 6c 6c 20 61 72 | End of |shell ar|
|000006d0| 63 68 69 76 65 2e 0a 65 | 78 69 74 20 30 0a |chive..e|xit 0. |
+--------+-------------------------+-------------------------+--------+--------+