home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / compsrcs / unix / volume25 / ile < prev    next >
SHell self-extracting ARchive  |  1991-12-13  |  82.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

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

You can browse this item here: ile

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert SHell self-extracting ARchive (archive/shar) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file makefile script, 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 76 32 35 69 30 32 39 |Subject:| v25i029|
|00000010| 3a 20 69 6c 65 20 2d 20 | 61 6e 20 69 6e 70 75 74 |: ile - |an input|
|00000020| 20 6c 69 6e 65 20 65 64 | 69 74 6f 72 0a 4e 65 77 | line ed|itor.New|
|00000030| 73 67 72 6f 75 70 73 3a | 20 63 6f 6d 70 2e 73 6f |sgroups:| comp.so|
|00000040| 75 72 63 65 73 2e 75 6e | 69 78 0a 41 70 70 72 6f |urces.un|ix.Appro|
|00000050| 76 65 64 3a 20 76 69 78 | 69 65 40 70 61 2e 64 65 |ved: vix|ie@pa.de|
|00000060| 63 2e 63 6f 6d 0a 0a 53 | 75 62 6d 69 74 74 65 64 |c.com..S|ubmitted|
|00000070| 2d 42 79 3a 20 52 6f 62 | 65 72 74 20 43 2e 20 50 |-By: Rob|ert C. P|
|00000080| 65 6e 64 6c 65 74 6f 6e | 20 3c 62 6f 62 70 40 68 |endleton| <bobp@h|
|00000090| 61 6c 2e 63 6f 6d 3e 0a | 50 6f 73 74 69 6e 67 2d |al.com>.|Posting-|
|000000a0| 4e 75 6d 62 65 72 3a 20 | 56 6f 6c 75 6d 65 20 32 |Number: |Volume 2|
|000000b0| 35 2c 20 49 73 73 75 65 | 20 32 39 0a 41 72 63 68 |5, Issue| 29.Arch|
|000000c0| 69 76 65 2d 4e 61 6d 65 | 3a 20 69 6c 65 0a 0a 5b |ive-Name|: ile..[|
|000000d0| 20 54 68 69 73 20 70 72 | 6f 67 72 61 6d 20 67 69 | This pr|ogram gi|
|000000e0| 76 65 73 20 79 6f 75 20 | 69 6e 74 65 72 61 63 74 |ves you |interact|
|000000f0| 69 76 65 20 6c 69 6e 65 | 20 65 64 69 74 69 6e 67 |ive line| editing|
|00000100| 20 73 69 6d 69 6c 61 72 | 20 74 6f 20 74 63 73 68 | similar| to tcsh|
|00000110| 20 6f 72 20 6b 73 68 2c | 0a 20 20 65 78 63 65 70 | or ksh,|. excep|
|00000120| 74 20 74 68 61 74 20 69 | 74 20 77 69 6c 6c 20 72 |t that i|t will r|
|00000130| 75 6e 20 61 6e 79 20 70 | 72 6f 67 72 61 6d 20 61 |un any p|rogram a|
|00000140| 73 20 69 74 73 20 73 75 | 62 70 72 6f 63 65 73 73 |s its su|bprocess|
|00000150| 2c 20 73 6f 20 61 6c 74 | 68 6f 75 67 68 20 79 6f |, so alt|hough yo|
|00000160| 75 0a 20 20 64 6f 6e 27 | 74 20 67 65 74 20 74 6f |u. don'|t get to|
|00000170| 20 63 61 72 72 79 20 74 | 68 65 20 60 68 69 73 74 | carry t|he `hist|
|00000180| 6f 72 79 27 20 63 6f 6e | 74 65 78 74 20 66 72 6f |ory' con|text fro|
|00000190| 6d 20 70 72 6f 67 72 61 | 6d 20 74 6f 20 70 72 6f |m progra|m to pro|
|000001a0| 67 72 61 6d 2c 20 79 6f | 75 0a 20 20 63 61 6e 20 |gram, yo|u. can |
|000001b0| 67 65 74 20 66 61 6e 63 | 79 20 65 64 69 74 69 6e |get fanc|y editin|
|000001c0| 67 20 69 6e 20 70 72 6f | 67 72 61 6d 73 20 74 68 |g in pro|grams th|
|000001d0| 61 74 20 64 6f 6e 27 74 | 20 6e 65 63 63 65 73 73 |at don't| neccess|
|000001e0| 61 72 69 6c 79 20 73 75 | 70 70 6f 72 74 20 69 74 |arily su|pport it|
|000001f0| 2e 0a 20 20 52 75 6e 6e | 69 6e 67 20 22 69 6c 65 |.. Runn|ing "ile|
|00000200| 20 2f 62 69 6e 2f 63 73 | 68 22 20 69 73 20 61 20 | /bin/cs|h" is a |
|00000210| 6c 6f 74 20 6c 69 6b 65 | 20 74 63 73 68 2c 20 61 |lot like| tcsh, a|
|00000220| 6e 64 20 22 69 6c 65 20 | 2f 62 69 6e 2f 73 68 22 |nd "ile |/bin/sh"|
|00000230| 20 69 73 20 61 20 6c 6f | 74 0a 20 20 6c 69 6b 65 | is a lo|t. like|
|00000240| 20 6b 73 68 2e 20 20 49 | 20 77 72 6f 74 65 20 74 | ksh. I| wrote t|
|00000250| 68 65 20 4d 61 6b 65 66 | 69 6c 65 2e 20 20 20 20 |he Makef|ile. |
|00000260| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000270| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2d 2d 76 | | --v|
|00000280| 69 78 20 5d 0a 0a 23 21 | 20 2f 62 69 6e 2f 73 68 |ix ]..#!| /bin/sh|
|00000290| 0a 23 20 54 68 69 73 20 | 69 73 20 61 20 73 68 65 |.# This |is a she|
|000002a0| 6c 6c 20 61 72 63 68 69 | 76 65 2e 20 20 52 65 6d |ll archi|ve. Rem|
|000002b0| 6f 76 65 20 61 6e 79 74 | 68 69 6e 67 20 62 65 66 |ove anyt|hing bef|
|000002c0| 6f 72 65 20 74 68 69 73 | 20 6c 69 6e 65 2c 20 74 |ore this| line, t|
|000002d0| 68 65 6e 20 75 6e 70 61 | 63 6b 0a 23 20 69 74 20 |hen unpa|ck.# it |
|000002e0| 62 79 20 73 61 76 69 6e | 67 20 69 74 20 69 6e 74 |by savin|g it int|
|000002f0| 6f 20 61 20 66 69 6c 65 | 20 61 6e 64 20 74 79 70 |o a file| and typ|
|00000300| 69 6e 67 20 22 73 68 20 | 66 69 6c 65 22 2e 20 20 |ing "sh |file". |
|00000310| 54 6f 20 6f 76 65 72 77 | 72 69 74 65 20 65 78 69 |To overw|rite exi|
|00000320| 73 74 69 6e 67 0a 23 20 | 66 69 6c 65 73 2c 20 74 |sting.# |files, t|
|00000330| 79 70 65 20 22 73 68 20 | 66 69 6c 65 20 2d 63 22 |ype "sh |file -c"|
|00000340| 2e 20 20 59 6f 75 20 63 | 61 6e 20 61 6c 73 6f 20 |. You c|an also |
|00000350| 66 65 65 64 20 74 68 69 | 73 20 61 73 20 73 74 61 |feed thi|s as sta|
|00000360| 6e 64 61 72 64 20 69 6e | 70 75 74 20 76 69 61 0a |ndard in|put via.|
|00000370| 23 20 75 6e 73 68 61 72 | 2c 20 6f 72 20 62 79 20 |# unshar|, or by |
|00000380| 74 79 70 69 6e 67 20 22 | 73 68 20 3c 66 69 6c 65 |typing "|sh <file|
|00000390| 22 2c 20 65 2e 67 2e 2e | 20 20 49 66 20 74 68 69 |", e.g..| If thi|
|000003a0| 73 20 61 72 63 68 69 76 | 65 20 69 73 20 63 6f 6d |s archiv|e is com|
|000003b0| 70 6c 65 74 65 2c 20 79 | 6f 75 0a 23 20 77 69 6c |plete, y|ou.# wil|
|000003c0| 6c 20 73 65 65 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |l see th|e follow|
|000003d0| 69 6e 67 20 6d 65 73 73 | 61 67 65 20 61 74 20 74 |ing mess|age at t|
|000003e0| 68 65 20 65 6e 64 3a 0a | 23 09 09 22 45 6e 64 20 |he end:.|#.."End |
|000003f0| 6f 66 20 61 72 63 68 69 | 76 65 20 31 20 28 6f 66 |of archi|ve 1 (of|
|00000400| 20 31 29 2e 22 0a 23 20 | 43 6f 6e 74 65 6e 74 73 | 1).".# |Contents|
|00000410| 3a 20 20 4d 41 4e 49 46 | 45 53 54 20 4d 61 6b 65 |: MANIF|EST Make|
|00000420| 66 69 6c 65 20 52 45 41 | 44 4d 45 20 69 6c 65 2e |file REA|DME ile.|
|00000430| 31 20 69 6c 65 2e 63 0a | 23 20 57 72 61 70 70 65 |1 ile.c.|# Wrappe|
|00000440| 64 20 62 79 20 76 69 78 | 69 65 40 63 6f 67 6e 69 |d by vix|ie@cogni|
|00000450| 74 69 6f 6e 2e 70 61 2e | 64 65 63 2e 63 6f 6d 20 |tion.pa.|dec.com |
|00000460| 6f 6e 20 46 72 69 20 44 | 65 63 20 31 33 20 31 34 |on Fri D|ec 13 14|
|00000470| 3a 33 38 3a 32 32 20 31 | 39 39 31 0a 50 41 54 48 |:38:22 1|991.PATH|
|00000480| 3d 2f 62 69 6e 3a 2f 75 | 73 72 2f 62 69 6e 3a 2f |=/bin:/u|sr/bin:/|
|00000490| 75 73 72 2f 75 63 62 20 | 3b 20 65 78 70 6f 72 74 |usr/ucb |; export|
|000004a0| 20 50 41 54 48 0a 69 66 | 20 74 65 73 74 20 2d 66 | PATH.if| test -f|
|000004b0| 20 27 4d 41 4e 49 46 45 | 53 54 27 20 2d 61 20 22 | 'MANIFE|ST' -a "|
|000004c0| 24 7b 31 7d 22 20 21 3d | 20 22 2d 63 22 20 3b 20 |${1}" !=| "-c" ; |
|000004d0| 74 68 65 6e 20 0a 20 20 | 65 63 68 6f 20 73 68 61 |then . |echo sha|
|000004e0| 72 3a 20 57 69 6c 6c 20 | 6e 6f 74 20 63 6c 6f 62 |r: Will |not clob|
|000004f0| 62 65 72 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ber exis|ting fil|
|00000500| 65 20 5c 22 27 4d 41 4e | 49 46 45 53 54 27 5c 22 |e \"'MAN|IFEST'\"|
|00000510| 0a 65 6c 73 65 0a 65 63 | 68 6f 20 73 68 61 72 3a |.else.ec|ho shar:|
|00000520| 20 45 78 74 72 61 63 74 | 69 6e 67 20 5c 22 27 4d | Extract|ing \"'M|
|00000530| 41 4e 49 46 45 53 54 27 | 5c 22 20 5c 28 32 36 39 |ANIFEST'|\" \(269|
|00000540| 20 63 68 61 72 61 63 74 | 65 72 73 5c 29 0a 73 65 | charact|ers\).se|
|00000550| 64 20 22 73 2f 5e 58 2f | 2f 22 20 3e 27 4d 41 4e |d "s/^X/|/" >'MAN|
|00000560| 49 46 45 53 54 27 20 3c | 3c 27 45 4e 44 5f 4f 46 |IFEST' <|<'END_OF|
|00000570| 5f 46 49 4c 45 27 0a 58 | 20 20 20 46 69 6c 65 20 |_FILE'.X| File |
|00000580| 4e 61 6d 65 09 09 41 72 | 63 68 69 76 65 20 23 09 |Name..Ar|chive #.|
|00000590| 44 65 73 63 72 69 70 74 | 69 6f 6e 0a 58 2d 2d 2d |Descript|ion.X---|
|000005a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000005b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000005c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000005d0| 2d 2d 2d 2d 2d 2d 2d 2d | 0a 58 20 4d 41 4e 49 46 |--------|.X MANIF|
|000005e0| 45 53 54 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |EST | |
|000005f0| 20 20 20 20 20 20 31 09 | 54 68 69 73 20 73 68 69 | 1.|This shi|
|00000600| 70 70 69 6e 67 20 6c 69 | 73 74 0a 58 20 4d 61 6b |pping li|st.X Mak|
|00000610| 65 66 69 6c 65 20 20 20 | 20 20 20 20 20 20 20 20 |efile | |
|00000620| 20 20 20 20 20 20 20 20 | 31 09 0a 58 20 52 45 41 | |1..X REA|
|00000630| 44 4d 45 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |DME | |
|00000640| 20 20 20 20 20 20 20 20 | 31 09 0a 58 20 69 6c 65 | |1..X ile|
|00000650| 2e 31 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.1 | |
|00000660| 20 20 20 20 20 20 20 20 | 31 09 0a 58 20 69 6c 65 | |1..X ile|
|00000670| 2e 63 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.c | |
|00000680| 20 20 20 20 20 20 20 20 | 31 09 0a 45 4e 44 5f 4f | |1..END_O|
|00000690| 46 5f 46 49 4c 45 0a 69 | 66 20 74 65 73 74 20 32 |F_FILE.i|f test 2|
|000006a0| 36 39 20 2d 6e 65 20 60 | 77 63 20 2d 63 20 3c 27 |69 -ne `|wc -c <'|
|000006b0| 4d 41 4e 49 46 45 53 54 | 27 60 3b 20 74 68 65 6e |MANIFEST|'`; then|
|000006c0| 0a 20 20 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |. ech|o shar: |
|000006d0| 5c 22 27 4d 41 4e 49 46 | 45 53 54 27 5c 22 20 75 |\"'MANIF|EST'\" u|
|000006e0| 6e 70 61 63 6b 65 64 20 | 77 69 74 68 20 77 72 6f |npacked |with wro|
|000006f0| 6e 67 20 73 69 7a 65 21 | 0a 66 69 0a 23 20 65 6e |ng size!|.fi.# en|
|00000700| 64 20 6f 66 20 27 4d 41 | 4e 49 46 45 53 54 27 0a |d of 'MA|NIFEST'.|
|00000710| 66 69 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 4d |fi.if te|st -f 'M|
|00000720| 61 6b 65 66 69 6c 65 27 | 20 2d 61 20 22 24 7b 31 |akefile'| -a "${1|
|00000730| 7d 22 20 21 3d 20 22 2d | 63 22 20 3b 20 74 68 65 |}" != "-|c" ; the|
|00000740| 6e 20 0a 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |n . ech|o shar: |
|00000750| 57 69 6c 6c 20 6e 6f 74 | 20 63 6c 6f 62 62 65 72 |Will not| clobber|
|00000760| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 5c | existin|g file \|
|00000770| 22 27 4d 61 6b 65 66 69 | 6c 65 27 5c 22 0a 65 6c |"'Makefi|le'\".el|
|00000780| 73 65 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 45 78 |se.echo |shar: Ex|
|00000790| 74 72 61 63 74 69 6e 67 | 20 5c 22 27 4d 61 6b 65 |tracting| \"'Make|
|000007a0| 66 69 6c 65 27 5c 22 20 | 5c 28 32 32 33 20 63 68 |file'\" |\(223 ch|
|000007b0| 61 72 61 63 74 65 72 73 | 5c 29 0a 73 65 64 20 22 |aracters|\).sed "|
|000007c0| 73 2f 5e 58 2f 2f 22 20 | 3e 27 4d 61 6b 65 66 69 |s/^X//" |>'Makefi|
|000007d0| 6c 65 27 20 3c 3c 27 45 | 4e 44 5f 4f 46 5f 46 49 |le' <<'E|ND_OF_FI|
|000007e0| 4c 45 27 0a 58 23 20 76 | 69 78 20 31 33 64 65 63 |LE'.X# v|ix 13dec|
|000007f0| 39 31 0a 58 0a 44 45 53 | 54 50 41 54 48 20 3d 20 |91.X.DES|TPATH = |
|00000800| 2f 75 73 72 2f 6c 6f 63 | 61 6c 0a 43 46 4c 41 47 |/usr/loc|al.CFLAG|
|00000810| 53 20 3d 20 2d 67 0a 43 | 43 20 3d 20 63 63 0a 58 |S = -g.C|C = cc.X|
|00000820| 0a 61 6c 6c 3a 20 69 6c | 65 0a 58 0a 63 6c 65 61 |.all: il|e.X.clea|
|00000830| 6e 3a 0a 58 09 2d 72 6d | 20 2a 2e 6f 0a 58 09 2d |n:.X.-rm| *.o.X.-|
|00000840| 72 6d 20 69 6c 65 0a 58 | 0a 69 6e 73 74 61 6c 6c |rm ile.X|.install|
|00000850| 3a 0a 58 09 69 6e 73 74 | 61 6c 6c 20 2d 63 20 69 |:.X.inst|all -c i|
|00000860| 6c 65 20 24 28 44 45 53 | 54 50 41 54 48 29 2f 62 |le $(DES|TPATH)/b|
|00000870| 69 6e 2f 69 6c 65 0a 58 | 09 69 6e 73 74 61 6c 6c |in/ile.X|.install|
|00000880| 20 2d 63 20 69 6c 65 2e | 31 20 24 28 44 45 53 54 | -c ile.|1 $(DEST|
|00000890| 50 41 54 48 29 2f 6d 61 | 6e 2f 6d 61 6e 31 2f 69 |PATH)/ma|n/man1/i|
|000008a0| 6c 65 2e 31 0a 58 0a 69 | 6c 65 3a 20 69 6c 65 2e |le.1.X.i|le: ile.|
|000008b0| 6f 0a 58 09 63 63 20 2d | 6f 20 69 6c 65 20 69 6c |o.X.cc -|o ile il|
|000008c0| 65 2e 6f 20 2d 6c 74 65 | 72 6d 63 61 70 0a 45 4e |e.o -lte|rmcap.EN|
|000008d0| 44 5f 4f 46 5f 46 49 4c | 45 0a 69 66 20 74 65 73 |D_OF_FIL|E.if tes|
|000008e0| 74 20 32 32 33 20 2d 6e | 65 20 60 77 63 20 2d 63 |t 223 -n|e `wc -c|
|000008f0| 20 3c 27 4d 61 6b 65 66 | 69 6c 65 27 60 3b 20 74 | <'Makef|ile'`; t|
|00000900| 68 65 6e 0a 20 20 20 20 | 65 63 68 6f 20 73 68 61 |hen. |echo sha|
|00000910| 72 3a 20 5c 22 27 4d 61 | 6b 65 66 69 6c 65 27 5c |r: \"'Ma|kefile'\|
|00000920| 22 20 75 6e 70 61 63 6b | 65 64 20 77 69 74 68 20 |" unpack|ed with |
|00000930| 77 72 6f 6e 67 20 73 69 | 7a 65 21 0a 66 69 0a 23 |wrong si|ze!.fi.#|
|00000940| 20 65 6e 64 20 6f 66 20 | 27 4d 61 6b 65 66 69 6c | end of |'Makefil|
|00000950| 65 27 0a 66 69 0a 69 66 | 20 74 65 73 74 20 2d 66 |e'.fi.if| test -f|
|00000960| 20 27 52 45 41 44 4d 45 | 27 20 2d 61 20 22 24 7b | 'README|' -a "${|
|00000970| 31 7d 22 20 21 3d 20 22 | 2d 63 22 20 3b 20 74 68 |1}" != "|-c" ; th|
|00000980| 65 6e 20 0a 20 20 65 63 | 68 6f 20 73 68 61 72 3a |en . ec|ho shar:|
|00000990| 20 57 69 6c 6c 20 6e 6f | 74 20 63 6c 6f 62 62 65 | Will no|t clobbe|
|000009a0| 72 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |r existi|ng file |
|000009b0| 5c 22 27 52 45 41 44 4d | 45 27 5c 22 0a 65 6c 73 |\"'READM|E'\".els|
|000009c0| 65 0a 65 63 68 6f 20 73 | 68 61 72 3a 20 45 78 74 |e.echo s|har: Ext|
|000009d0| 72 61 63 74 69 6e 67 20 | 5c 22 27 52 45 41 44 4d |racting |\"'READM|
|000009e0| 45 27 5c 22 20 5c 28 32 | 35 30 20 63 68 61 72 61 |E'\" \(2|50 chara|
|000009f0| 63 74 65 72 73 5c 29 0a | 73 65 64 20 22 73 2f 5e |cters\).|sed "s/^|
|00000a00| 58 2f 2f 22 20 3e 27 52 | 45 41 44 4d 45 27 20 3c |X//" >'R|EADME' <|
|00000a10| 3c 27 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 27 0a 4e |<'END_OF|_FILE'.N|
|00000a20| 41 4d 45 0a 58 20 20 20 | 20 20 69 6c 65 20 2d 20 |AME.X | ile - |
|00000a30| 41 6e 20 69 6e 70 75 74 | 20 6c 69 6e 65 20 65 64 |An input| line ed|
|00000a40| 69 74 6f 72 20 66 6f 72 | 20 55 4e 49 58 20 28 49 |itor for| UNIX (I|
|00000a50| 6e 70 75 74 20 4c 69 6e | 65 20 45 64 69 74 6f 72 |nput Lin|e Editor|
|00000a60| 29 0a 58 0a 53 59 4e 54 | 41 58 0a 58 20 20 20 20 |).X.SYNT|AX.X |
|00000a70| 20 69 6c 65 20 5b 2d 66 | 69 6c 65 2f 6e 61 6d 65 | ile [-f|ile/name|
|00000a80| 5d 20 5b 70 72 6f 67 20 | 61 72 67 31 20 61 72 67 |] [prog |arg1 arg|
|00000a90| 32 20 2e 2e 2e 20 61 72 | 67 6e 5d 0a 58 0a 44 45 |2 ... ar|gn].X.DE|
|00000aa0| 53 43 52 49 50 54 49 4f | 4e 0a 58 20 20 20 20 20 |SCRIPTIO|N.X |
|00000ab0| 54 68 65 20 69 6c 65 20 | 70 72 6f 67 72 61 6d 20 |The ile |program |
|00000ac0| 69 73 20 61 6e 20 69 6e | 70 75 74 20 6c 69 6e 65 |is an in|put line|
|00000ad0| 20 65 64 69 74 6f 72 20 | 74 68 61 74 20 70 72 6f | editor |that pro|
|00000ae0| 76 69 64 65 73 20 61 6e | 0a 58 20 20 20 20 20 65 |vides an|.X e|
|00000af0| 61 73 69 65 72 20 74 6f | 20 75 73 65 20 68 69 73 |asier to| use his|
|00000b00| 74 6f 72 79 20 6d 65 63 | 68 61 6e 69 73 6d 20 74 |tory mec|hanism t|
|00000b10| 68 61 6e 20 74 68 65 20 | 73 68 65 6c 6c 2e 0a 45 |han the |shell..E|
|00000b20| 4e 44 5f 4f 46 5f 46 49 | 4c 45 0a 69 66 20 74 65 |ND_OF_FI|LE.if te|
|00000b30| 73 74 20 32 35 30 20 2d | 6e 65 20 60 77 63 20 2d |st 250 -|ne `wc -|
|00000b40| 63 20 3c 27 52 45 41 44 | 4d 45 27 60 3b 20 74 68 |c <'READ|ME'`; th|
|00000b50| 65 6e 0a 20 20 20 20 65 | 63 68 6f 20 73 68 61 72 |en. e|cho shar|
|00000b60| 3a 20 5c 22 27 52 45 41 | 44 4d 45 27 5c 22 20 75 |: \"'REA|DME'\" u|
|00000b70| 6e 70 61 63 6b 65 64 20 | 77 69 74 68 20 77 72 6f |npacked |with wro|
|00000b80| 6e 67 20 73 69 7a 65 21 | 0a 66 69 0a 23 20 65 6e |ng size!|.fi.# en|
|00000b90| 64 20 6f 66 20 27 52 45 | 41 44 4d 45 27 0a 66 69 |d of 'RE|ADME'.fi|
|00000ba0| 0a 69 66 20 74 65 73 74 | 20 2d 66 20 27 69 6c 65 |.if test| -f 'ile|
|00000bb0| 2e 31 27 20 2d 61 20 22 | 24 7b 31 7d 22 20 21 3d |.1' -a "|${1}" !=|
|00000bc0| 20 22 2d 63 22 20 3b 20 | 74 68 65 6e 20 0a 20 20 | "-c" ; |then . |
|00000bd0| 65 63 68 6f 20 73 68 61 | 72 3a 20 57 69 6c 6c 20 |echo sha|r: Will |
|00000be0| 6e 6f 74 20 63 6c 6f 62 | 62 65 72 20 65 78 69 73 |not clob|ber exis|
|00000bf0| 74 69 6e 67 20 66 69 6c | 65 20 5c 22 27 69 6c 65 |ting fil|e \"'ile|
|00000c00| 2e 31 27 5c 22 0a 65 6c | 73 65 0a 65 63 68 6f 20 |.1'\".el|se.echo |
|00000c10| 73 68 61 72 3a 20 45 78 | 74 72 61 63 74 69 6e 67 |shar: Ex|tracting|
|00000c20| 20 5c 22 27 69 6c 65 2e | 31 27 5c 22 20 5c 28 31 | \"'ile.|1'\" \(1|
|00000c30| 36 34 34 31 20 63 68 61 | 72 61 63 74 65 72 73 5c |6441 cha|racters\|
|00000c40| 29 0a 73 65 64 20 22 73 | 2f 5e 58 2f 2f 22 20 3e |).sed "s|/^X//" >|
|00000c50| 27 69 6c 65 2e 31 27 20 | 3c 3c 27 45 4e 44 5f 4f |'ile.1' |<<'END_O|
|00000c60| 46 5f 46 49 4c 45 27 0a | 58 2e 64 65 20 45 58 09 |F_FILE'.|X.de EX.|
|00000c70| 09 5c 22 42 65 67 69 6e | 20 65 78 61 6d 70 6c 65 |.\"Begin| example|
|00000c80| 0a 58 2e 6e 65 20 35 0a | 58 2e 69 66 20 6e 20 2e |.X.ne 5.|X.if n .|
|00000c90| 73 70 20 31 0a 58 2e 69 | 66 20 74 20 2e 73 70 20 |sp 1.X.i|f t .sp |
|00000ca0| 2e 35 0a 58 2e 6e 66 0a | 58 2e 69 6e 20 2b 2e 35 |.5.X.nf.|X.in +.5|
|00000cb0| 69 0a 58 2e 2e 0a 58 2e | 64 65 20 45 45 0a 58 2e |i.X...X.|de EE.X.|
|00000cc0| 66 69 0a 58 2e 69 6e 20 | 2d 2e 35 69 0a 58 2e 69 |fi.X.in |-.5i.X.i|
|00000cd0| 66 20 6e 20 2e 73 70 20 | 31 0a 58 2e 69 66 20 74 |f n .sp |1.X.if t|
|00000ce0| 20 2e 73 70 20 2e 35 0a | 58 2e 2e 0a 58 2e 54 48 | .sp .5.|X...X.TH|
|00000cf0| 20 49 4c 45 20 31 20 22 | 35 20 4d 61 79 20 31 39 | ILE 1 "|5 May 19|
|00000d00| 38 38 22 20 0a 58 2e 53 | 48 20 4e 41 4d 45 0a 58 |88" .X.S|H NAME.X|
|00000d10| 2e 50 50 0a 69 6c 65 20 | 2d 20 41 6e 20 69 6e 70 |.PP.ile |- An inp|
|00000d20| 75 74 20 6c 69 6e 65 20 | 65 64 69 74 6f 72 20 66 |ut line |editor f|
|00000d30| 6f 72 20 55 4e 49 58 20 | 28 49 6e 70 75 74 20 4c |or UNIX |(Input L|
|00000d40| 69 6e 65 20 45 64 69 74 | 6f 72 29 0a 58 2e 50 50 |ine Edit|or).X.PP|
|00000d50| 0a 58 2e 53 48 20 53 59 | 4e 54 41 58 0a 58 2e 50 |.X.SH SY|NTAX.X.P|
|00000d60| 50 0a 58 5c 66 42 69 6c | 65 5c 66 50 20 5b 2d 66 |P.X\fBil|e\fP [-f|
|00000d70| 69 6c 65 2f 6e 61 6d 65 | 5c 66 50 5d 20 5c 66 50 |ile/name|\fP] \fP|
|00000d80| 5b 70 72 6f 67 20 61 72 | 67 31 20 61 72 67 32 20 |[prog ar|g1 arg2 |
|00000d90| 2e 2e 2e 20 61 72 67 6e | 5c 66 50 5d 0a 58 2e 50 |... argn|\fP].X.P|
|00000da0| 50 0a 58 2e 53 48 20 44 | 45 53 43 52 49 50 54 49 |P.X.SH D|ESCRIPTI|
|00000db0| 4f 4e 0a 58 2e 50 50 0a | 58 0a 54 68 65 20 5c 66 |ON.X.PP.|X.The \f|
|00000dc0| 49 69 6c 65 5c 66 50 20 | 70 72 6f 67 72 61 6d 20 |Iile\fP |program |
|00000dd0| 69 73 20 61 6e 20 69 6e | 70 75 74 20 6c 69 6e 65 |is an in|put line|
|00000de0| 20 65 64 69 74 6f 72 20 | 74 68 61 74 20 70 72 6f | editor |that pro|
|00000df0| 76 69 64 65 73 20 61 6e | 20 65 61 73 69 65 72 0a |vides an| easier.|
|00000e00| 74 6f 20 75 73 65 20 68 | 69 73 74 6f 72 79 20 6d |to use h|istory m|
|00000e10| 65 63 68 61 6e 69 73 6d | 20 74 68 61 6e 20 74 68 |echanism| than th|
|00000e20| 65 20 73 68 65 6c 6c 2e | 0a 58 0a 58 2e 50 50 0a |e shell.|.X.X.PP.|
|00000e30| 58 0a 54 68 65 20 5c 66 | 49 69 6c 65 5c 66 50 20 |X.The \f|Iile\fP |
|00000e40| 70 72 6f 67 72 61 6d 20 | 63 61 6e 20 62 65 20 72 |program |can be r|
|00000e50| 75 6e 20 61 73 20 61 20 | 73 69 6d 70 6c 65 20 73 |un as a |simple s|
|00000e60| 68 65 6c 6c 20 61 72 6f | 75 6e 64 20 61 6e 79 20 |hell aro|und any |
|00000e70| 70 72 6f 67 72 61 6d 2e | 0a 49 74 20 67 69 76 65 |program.|.It give|
|00000e80| 73 20 61 6e 79 20 70 72 | 6f 67 72 61 6d 20 61 6e |s any pr|ogram an|
|00000e90| 20 69 6e 70 75 74 20 6c | 69 6e 65 20 65 64 69 74 | input l|ine edit|
|00000ea0| 69 6e 67 20 61 6e 64 20 | 61 20 68 69 73 74 6f 72 |ing and |a histor|
|00000eb0| 79 20 6d 65 63 68 61 6e | 69 73 6d 2e 20 49 74 0a |y mechan|ism. It.|
|00000ec0| 63 61 6e 20 61 6c 73 6f | 20 62 65 20 72 75 6e 20 |can also| be run |
|00000ed0| 61 72 6f 75 6e 64 20 79 | 6f 75 72 20 66 61 76 6f |around y|our favo|
|00000ee0| 72 69 74 65 20 73 68 65 | 6c 6c 2e 20 57 68 65 6e |rite she|ll. When|
|00000ef0| 20 72 75 6e 20 61 72 6f | 75 6e 64 20 74 68 65 20 | run aro|und the |
|00000f00| 73 68 65 6c 6c 0a 58 5c | 66 49 69 6c 65 5c 66 50 |shell.X\|fIile\fP|
|00000f10| 20 72 65 63 6f 72 64 73 | 20 74 68 65 20 69 6e 70 | records| the inp|
|00000f20| 75 74 20 74 6f 20 70 72 | 6f 67 72 61 6d 73 20 61 |ut to pr|ograms a|
|00000f30| 73 20 77 65 6c 6c 20 61 | 73 20 69 6e 70 75 74 20 |s well a|s input |
|00000f40| 74 6f 20 74 68 65 20 73 | 68 65 6c 6c 0a 69 6e 20 |to the s|hell.in |
|00000f50| 69 74 73 20 68 69 73 74 | 6f 72 79 20 62 75 66 66 |its hist|ory buff|
|00000f60| 65 72 2e 0a 58 0a 58 5c | 66 49 69 6c 65 5c 66 50 |er..X.X\|fIile\fP|
|00000f70| 20 74 61 6b 65 73 20 74 | 77 6f 20 6f 70 74 69 6f | takes t|wo optio|
|00000f80| 6e 61 6c 20 63 6f 6d 6d | 61 6e 64 20 6c 69 6e 65 |nal comm|and line|
|00000f90| 20 61 72 67 75 6d 65 6e | 74 73 2e 20 54 68 65 20 | argumen|ts. The |
|00000fa0| 66 69 72 73 74 0a 61 72 | 67 75 6d 65 6e 74 20 69 |first.ar|gument i|
|00000fb0| 73 20 74 68 65 20 6e 61 | 6d 65 20 6f 66 20 61 6e |s the na|me of an|
|00000fc0| 20 69 6e 69 74 69 61 6c | 69 7a 61 74 69 6f 6e 20 | initial|ization |
|00000fd0| 66 69 6c 65 20 63 6f 6e | 74 61 69 6e 69 6e 67 20 |file con|taining |
|00000fe0| 75 73 65 72 20 64 65 66 | 69 6e 65 64 0a 6b 65 79 |user def|ined.key|
|00000ff0| 20 61 6e 64 20 64 65 6c | 69 6d 69 74 65 72 20 62 | and del|imiter b|
|00001000| 69 6e 64 69 6e 67 73 2e | 20 54 68 65 20 73 65 63 |indings.| The sec|
|00001010| 6f 6e 64 20 61 72 67 75 | 6d 65 6e 74 20 69 73 20 |ond argu|ment is |
|00001020| 74 68 65 20 6e 61 6d 65 | 20 6f 66 20 61 0a 70 72 |the name| of a.pr|
|00001030| 6f 67 72 61 6d 20 74 6f | 20 65 78 65 63 75 74 65 |ogram to| execute|
|00001040| 20 61 6e 64 20 74 68 65 | 20 63 6f 6d 6d 61 6e 64 | and the| command|
|00001050| 20 6c 69 6e 65 20 61 72 | 67 75 6d 65 6e 74 73 20 | line ar|guments |
|00001060| 66 6f 72 20 74 68 61 74 | 20 70 72 6f 67 72 61 6d |for that| program|
|00001070| 2e 0a 58 0a 58 2e 50 50 | 0a 58 0a 49 66 20 6e 6f |..X.X.PP|.X.If no|
|00001080| 20 69 6e 69 74 69 61 6c | 69 7a 61 74 69 6f 6e 20 | initial|ization |
|00001090| 66 69 6c 65 20 69 73 20 | 67 69 76 65 6e 20 6f 6e |file is |given on|
|000010a0| 20 74 68 65 20 63 6f 6d | 6d 61 6e 64 20 6c 69 6e | the com|mand lin|
|000010b0| 65 20 5c 66 49 69 6c 65 | 5c 66 50 20 66 69 72 73 |e \fIile|\fP firs|
|000010c0| 74 0a 6c 6f 6f 6b 73 20 | 69 6e 20 5c 66 49 2e 2f |t.looks |in \fI./|
|000010d0| 2e 69 6c 65 72 63 5c 66 | 50 20 61 6e 64 20 74 68 |.ilerc\f|P and th|
|000010e0| 65 6e 20 69 6e 20 5c 66 | 49 24 48 4f 4d 45 2f 2e |en in \f|I$HOME/.|
|000010f0| 69 6c 65 72 63 5c 66 50 | 2e 20 49 66 20 6e 6f 0a |ilerc\fP|. If no.|
|00001100| 69 6e 69 74 69 61 6c 69 | 7a 61 74 69 6f 6e 20 66 |initiali|zation f|
|00001110| 69 6c 65 20 69 73 20 66 | 6f 75 6e 64 20 5c 66 49 |ile is f|ound \fI|
|00001120| 69 6c 65 5c 66 50 20 70 | 72 6f 76 69 64 65 73 20 |ile\fP p|rovides |
|00001130| 64 65 66 61 75 6c 74 20 | 76 61 6c 75 65 73 20 66 |default |values f|
|00001140| 6f 72 0a 64 65 6c 69 6d | 69 74 65 72 20 61 6e 64 |or.delim|iter and|
|00001150| 20 6b 65 79 20 62 69 6e | 64 69 6e 67 73 2e 0a 58 | key bin|dings..X|
|00001160| 0a 58 2e 50 50 0a 58 0a | 49 66 20 6e 6f 20 70 72 |.X.PP.X.|If no pr|
|00001170| 6f 67 72 61 6d 20 6e 61 | 6d 65 20 69 73 20 67 69 |ogram na|me is gi|
|00001180| 76 65 6e 20 6f 6e 20 74 | 68 65 20 63 6f 6d 6d 61 |ven on t|he comma|
|00001190| 6e 64 20 6c 69 6e 65 20 | 5c 66 49 69 6c 65 5c 66 |nd line |\fIile\f|
|000011a0| 50 20 65 78 65 63 75 74 | 65 73 0a 58 5c 66 49 63 |P execut|es.X\fIc|
|000011b0| 73 68 5c 66 70 2e 0a 58 | 0a 58 2e 50 50 0a 58 2e |sh\fp..X|.X.PP.X.|
|000011c0| 53 48 20 44 45 46 41 55 | 4c 54 20 42 49 4e 44 49 |SH DEFAU|LT BINDI|
|000011d0| 4e 47 53 0a 58 2e 50 50 | 0a 58 0a 4e 6f 74 20 65 |NGS.X.PP|.X.Not e|
|000011e0| 76 65 72 79 6f 6e 65 20 | 77 61 6e 74 73 20 74 6f |veryone |wants to|
|000011f0| 20 68 61 76 65 20 74 6f | 20 66 69 67 75 72 65 20 | have to| figure |
|00001200| 6f 75 74 20 79 65 74 20 | 61 6e 6f 74 68 65 72 20 |out yet |another |
|00001210| 69 6e 69 74 69 61 6c 69 | 7a 61 74 69 6f 6e 0a 66 |initiali|zation.f|
|00001220| 69 6c 65 20 66 6f 72 6d | 61 74 20 73 6f 20 5c 66 |ile form|at so \f|
|00001230| 49 69 6c 65 5c 66 50 20 | 70 72 6f 76 69 64 65 73 |Iile\fP |provides|
|00001240| 20 61 20 63 6f 6d 70 6c | 65 74 65 20 73 65 74 20 | a compl|ete set |
|00001250| 6f 66 20 64 65 66 61 75 | 6c 74 20 62 69 6e 64 69 |of defau|lt bindi|
|00001260| 6e 67 73 0a 66 6f 72 20 | 61 6c 6c 20 69 74 73 20 |ngs.for |all its |
|00001270| 6f 70 65 72 61 74 69 6f | 6e 73 2e 0a 58 0a 58 2e |operatio|ns..X.X.|
|00001280| 50 50 0a 58 2e 53 48 20 | 44 65 6c 69 6d 69 74 65 |PP.X.SH |Delimite|
|00001290| 72 73 0a 58 2e 50 50 0a | 58 0a 44 65 6c 69 6d 69 |rs.X.PP.|X.Delimi|
|000012a0| 74 65 72 73 20 61 72 65 | 20 75 73 65 64 20 69 6e |ters are| used in|
|000012b0| 20 5c 66 49 69 6c 65 5c | 66 50 20 74 6f 20 6d 61 | \fIile\|fP to ma|
|000012c0| 72 6b 20 74 68 65 20 62 | 65 67 69 6e 6e 69 6e 67 |rk the b|eginning|
|000012d0| 73 20 61 6e 64 20 65 6e | 64 73 20 6f 66 0a 77 6f |s and en|ds of.wo|
|000012e0| 72 64 73 20 66 6f 72 20 | 74 68 65 20 5c 66 42 66 |rds for |the \fBf|
|000012f0| 6f 72 77 61 72 64 5f 77 | 6f 72 64 5c 66 50 2c 20 |orward_w|ord\fP, |
|00001300| 5c 66 42 62 61 63 6b 77 | 61 72 64 5f 77 6f 72 64 |\fBbackw|ard_word|
|00001310| 5c 66 50 2c 20 61 6e 64 | 0a 58 5c 66 42 64 65 6c |\fP, and|.X\fBdel|
|00001320| 65 74 65 5f 77 6f 72 64 | 5c 66 50 20 61 63 74 69 |ete_word|\fP acti|
|00001330| 6f 6e 73 2e 20 54 68 65 | 20 64 65 66 61 75 6c 74 |ons. The| default|
|00001340| 20 64 65 6c 69 6d 69 74 | 65 72 73 20 61 72 65 20 | delimit|ers are |
|00001350| 27 20 27 20 28 62 6c 61 | 6e 6b 29 2c 20 27 2f 27 |' ' (bla|nk), '/'|
|00001360| 0a 58 28 73 6c 61 73 68 | 29 2c 20 27 2e 27 20 28 |.X(slash|), '.' (|
|00001370| 70 65 72 69 6f 64 29 2c | 20 61 6e 64 20 27 2d 27 |period),| and '-'|
|00001380| 20 28 64 61 73 68 29 2e | 20 54 68 65 73 65 20 77 | (dash).| These w|
|00001390| 65 72 65 20 63 68 6f 73 | 65 6e 20 62 65 63 61 75 |ere chos|en becau|
|000013a0| 73 65 20 74 68 65 0a 61 | 75 74 68 6f 72 20 64 65 |se the.a|uthor de|
|000013b0| 63 69 64 65 64 20 74 68 | 65 79 20 77 65 72 65 20 |cided th|ey were |
|000013c0| 22 6e 61 74 75 72 61 6c | 22 20 73 74 6f 70 70 69 |"natural|" stoppi|
|000013d0| 6e 67 20 63 68 61 72 61 | 63 74 65 72 73 20 69 6e |ng chara|cters in|
|000013e0| 20 61 20 55 4e 49 58 0a | 65 6e 76 69 72 6f 6e 6d | a UNIX.|environm|
|000013f0| 65 6e 74 2e 0a 58 0a 58 | 2e 50 50 0a 58 2e 53 48 |ent..X.X|.PP.X.SH|
|00001400| 20 4b 65 79 73 0a 58 2e | 50 50 0a 58 0a 54 68 65 | Keys.X.|PP.X.The|
|00001410| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 74 61 62 6c 65 | followi|ng table|
|00001420| 20 73 68 6f 77 73 20 74 | 68 65 20 64 65 66 61 75 | shows t|he defau|
|00001430| 6c 74 20 62 69 6e 64 69 | 6e 67 73 20 6f 66 20 6b |lt bindi|ngs of k|
|00001440| 65 79 73 20 61 6e 64 20 | 6b 65 79 0a 73 65 71 75 |eys and |key.sequ|
|00001450| 65 6e 63 65 73 20 70 72 | 6f 76 69 64 65 64 20 62 |ences pr|ovided b|
|00001460| 79 20 5c 66 49 69 6c 65 | 5c 66 50 2e 20 54 68 65 |y \fIile|\fP. The|
|00001470| 73 65 20 61 72 65 20 62 | 61 73 65 64 20 6f 6e 20 |se are b|ased on |
|00001480| 74 68 65 20 65 6d 61 63 | 73 20 6b 65 79 0a 62 69 |the emac|s key.bi|
|00001490| 6e 64 69 6e 67 73 20 66 | 6f 72 20 73 69 6d 69 6c |ndings f|or simil|
|000014a0| 61 72 20 6f 70 65 72 61 | 74 69 6f 6e 73 2e 0a 58 |ar opera|tions..X|
|000014b0| 0a 58 2e 45 58 20 30 0a | 58 0a 58 5e 41 20 20 20 |.X.EX 0.|X.X^A |
|000014c0| 20 20 20 2d 20 73 74 61 | 72 74 5f 6f 66 5f 6c 69 | - sta|rt_of_li|
|000014d0| 6e 65 0a 58 5e 42 20 20 | 20 20 20 20 2d 20 62 61 |ne.X^B | - ba|
|000014e0| 63 6b 77 61 72 64 5f 63 | 68 61 72 0a 58 5e 45 20 |ckward_c|har.X^E |
|000014f0| 20 20 20 20 20 2d 20 65 | 6e 64 5f 6f 66 5f 6c 69 | - e|nd_of_li|
|00001500| 6e 65 0a 58 5e 46 20 20 | 20 20 20 20 2d 20 66 6f |ne.X^F | - fo|
|00001510| 72 77 61 72 64 5f 63 68 | 61 72 0a 58 5e 4b 20 20 |rward_ch|ar.X^K |
|00001520| 20 20 20 20 2d 20 65 72 | 61 73 65 5f 74 6f 5f 65 | - er|ase_to_e|
|00001530| 6e 64 5f 6f 66 5f 6c 69 | 6e 65 0a 58 5e 4c 20 20 |nd_of_li|ne.X^L |
|00001540| 20 20 20 20 2d 20 72 65 | 74 79 70 65 5f 6c 69 6e | - re|type_lin|
|00001550| 65 0a 58 5e 4e 20 20 20 | 20 20 20 2d 20 66 6f 72 |e.X^N | - for|
|00001560| 77 61 72 64 5f 68 69 73 | 74 6f 72 79 0a 58 5e 50 |ward_his|tory.X^P|
|00001570| 20 20 20 20 20 20 2d 20 | 62 61 63 6b 77 61 72 64 | - |backward|
|00001580| 5f 68 69 73 74 6f 72 79 | 0a 58 5e 52 20 20 20 20 |_history|.X^R |
|00001590| 20 20 2d 20 73 65 61 72 | 63 68 5f 62 61 63 6b 77 | - sear|ch_backw|
|000015a0| 61 72 64 5f 68 69 73 74 | 6f 72 79 0a 58 5e 56 20 |ard_hist|ory.X^V |
|000015b0| 20 20 20 20 20 2d 20 71 | 75 6f 74 65 0a 58 5e 54 | - q|uote.X^T|
|000015c0| 20 20 20 20 20 20 2d 20 | 74 72 61 6e 73 70 6f 73 | - |transpos|
|000015d0| 65 5f 63 68 61 72 73 0a | 64 65 6c 20 20 20 20 20 |e_chars.|del |
|000015e0| 2d 20 64 65 6c 65 74 65 | 5f 63 68 61 72 0a 58 5e |- delete|_char.X^|
|000015f0| 4d 20 20 20 20 20 20 2d | 20 61 64 64 5f 74 6f 5f |M -| add_to_|
|00001600| 68 69 73 74 6f 72 79 0a | 58 5e 4a 20 20 20 20 20 |history.|X^J |
|00001610| 20 2d 20 61 64 64 5f 74 | 6f 5f 68 69 73 74 6f 72 | - add_t|o_histor|
|00001620| 79 0a 58 5e 55 20 20 20 | 20 20 20 2d 20 65 72 61 |y.X^U | - era|
|00001630| 73 65 5f 6c 69 6e 65 0a | 58 5e 58 20 20 20 20 20 |se_line.|X^X |
|00001640| 20 2d 20 64 65 6c 65 74 | 65 5f 63 68 61 72 5f 75 | - delet|e_char_u|
|00001650| 6e 64 65 72 0a 58 0a 58 | 5e 43 20 20 20 20 20 20 |nder.X.X|^C |
|00001660| 2d 20 70 61 73 73 0a 58 | 5e 44 20 20 20 20 20 20 |- pass.X|^D |
|00001670| 2d 20 70 61 73 73 0a 58 | 5e 51 20 20 20 20 20 20 |- pass.X|^Q |
|00001680| 2d 20 70 61 73 73 0a 58 | 5e 53 20 20 20 20 20 20 |- pass.X|^S |
|00001690| 2d 20 70 61 73 73 0a 58 | 5e 5a 20 20 20 20 20 20 |- pass.X|^Z |
|000016a0| 2d 20 70 61 73 73 0a 58 | 0a 65 73 63 20 62 20 20 |- pass.X|.esc b |
|000016b0| 20 2d 20 62 61 63 6b 77 | 61 72 64 5f 77 6f 72 64 | - backw|ard_word|
|000016c0| 0a 65 73 63 20 66 20 20 | 20 2d 20 66 6f 72 77 61 |.esc f | - forwa|
|000016d0| 72 64 5f 77 6f 72 64 0a | 65 73 63 20 64 65 6c 20 |rd_word.|esc del |
|000016e0| 2d 20 64 65 6c 65 74 65 | 5f 77 6f 72 64 0a 65 73 |- delete|_word.es|
|000016f0| 63 20 65 73 63 20 2d 20 | 63 6f 6d 70 6c 65 74 65 |c esc - |complete|
|00001700| 5f 66 69 6c 65 0a 65 73 | 63 20 73 20 20 20 2d 20 |_file.es|c s - |
|00001710| 63 6f 6d 70 6c 65 74 65 | 5f 66 69 6c 65 5f 66 75 |complete|_file_fu|
|00001720| 6c 6c 0a 65 73 63 20 70 | 20 20 20 2d 20 71 75 65 |ll.esc p| - que|
|00001730| 72 79 5f 70 61 74 68 0a | 65 73 63 20 64 20 20 20 |ry_path.|esc d |
|00001740| 2d 20 73 68 6f 77 5f 66 | 69 6c 65 73 0a 65 73 63 |- show_f|iles.esc|
|00001750| 20 75 20 20 20 2d 20 75 | 70 70 65 72 5f 77 6f 72 | u - u|pper_wor|
|00001760| 64 0a 65 73 63 20 6c 20 | 20 20 2d 20 6c 6f 77 65 |d.esc l | - lowe|
|00001770| 72 5f 77 6f 72 64 0a 65 | 73 63 20 63 20 20 20 2d |r_word.e|sc c -|
|00001780| 20 63 61 70 69 74 61 6c | 69 7a 65 5f 77 6f 72 64 | capital|ize_word|
|00001790| 0a 58 0a 65 73 63 20 5b | 20 41 20 2d 20 62 61 63 |.X.esc [| A - bac|
|000017a0| 6b 77 61 72 64 5f 68 69 | 73 74 6f 72 79 20 28 75 |kward_hi|story (u|
|000017b0| 70 20 61 72 72 6f 77 29 | 0a 65 73 63 20 5b 20 42 |p arrow)|.esc [ B|
|000017c0| 20 2d 20 66 6f 72 77 61 | 72 64 5f 68 69 73 74 6f | - forwa|rd_histo|
|000017d0| 72 79 20 20 28 64 6f 77 | 6e 20 61 72 72 6f 77 29 |ry (dow|n arrow)|
|000017e0| 0a 65 73 63 20 5b 20 43 | 20 2d 20 66 6f 72 77 61 |.esc [ C| - forwa|
|000017f0| 72 64 5f 63 68 61 72 20 | 20 20 20 20 28 72 69 67 |rd_char | (rig|
|00001800| 68 74 20 61 72 72 6f 77 | 29 0a 65 73 63 20 5b 20 |ht arrow|).esc [ |
|00001810| 44 20 2d 20 62 61 63 6b | 77 61 72 64 5f 63 68 61 |D - back|ward_cha|
|00001820| 72 20 20 20 20 28 6c 65 | 66 74 20 61 72 72 6f 77 |r (le|ft arrow|
|00001830| 29 0a 58 2e 45 45 0a 58 | 0a 58 2e 53 48 20 49 4e |).X.EE.X|.X.SH IN|
|00001840| 49 54 49 41 4c 49 5a 41 | 54 49 4f 4e 20 46 49 4c |ITIALIZA|TION FIL|
|00001850| 45 0a 58 2e 50 50 0a 58 | 0a 54 68 65 20 5c 66 49 |E.X.PP.X|.The \fI|
|00001860| 69 6c 65 5c 66 50 20 69 | 6e 69 74 69 61 6c 69 7a |ile\fP i|nitializ|
|00001870| 61 74 69 6f 6e 20 66 69 | 6c 65 20 68 61 73 20 74 |ation fi|le has t|
|00001880| 77 6f 20 70 61 72 74 73 | 2e 20 54 68 65 20 66 69 |wo parts|. The fi|
|00001890| 72 73 74 20 70 61 72 74 | 20 69 73 0a 61 6c 73 6f |rst part| is.also|
|000018a0| 20 74 68 65 20 66 69 72 | 73 74 20 6c 69 6e 65 20 | the fir|st line |
|000018b0| 6f 66 20 74 68 65 20 66 | 69 6c 65 2e 20 54 68 69 |of the f|ile. Thi|
|000018c0| 73 20 6c 69 6e 65 20 63 | 6f 6e 74 61 69 6e 73 20 |s line c|ontains |
|000018d0| 74 68 65 20 64 65 6c 69 | 6d 69 74 65 72 0a 63 68 |the deli|miter.ch|
|000018e0| 61 72 61 63 74 65 72 73 | 20 74 68 61 74 20 77 69 |aracters| that wi|
|000018f0| 6c 6c 20 62 65 20 75 73 | 65 64 20 62 79 20 74 68 |ll be us|ed by th|
|00001900| 65 20 5c 66 42 66 6f 72 | 77 61 72 64 5f 77 6f 72 |e \fBfor|ward_wor|
|00001910| 64 5c 66 50 2c 0a 58 5c | 66 42 62 61 63 6b 77 61 |d\fP,.X\|fBbackwa|
|00001920| 72 64 5f 77 6f 72 64 5c | 66 50 2c 20 61 6e 64 20 |rd_word\|fP, and |
|00001930| 5c 66 42 64 65 6c 65 74 | 65 5f 77 6f 72 64 5c 66 |\fBdelet|e_word\f|
|00001940| 50 20 61 63 74 69 6f 6e | 73 2e 20 20 45 61 63 68 |P action|s. Each|
|00001950| 20 63 68 61 72 61 63 74 | 65 72 20 6f 6e 0a 74 68 | charact|er on.th|
|00001960| 65 20 6c 69 6e 65 20 62 | 65 63 6f 6d 65 73 20 61 |e line b|ecomes a|
|00001970| 20 64 65 6c 69 6d 69 74 | 65 72 20 63 68 61 72 61 | delimit|er chara|
|00001980| 63 74 65 72 2e 0a 58 0a | 54 68 65 20 73 65 63 6f |cter..X.|The seco|
|00001990| 6e 64 20 70 61 72 74 20 | 6f 66 20 74 68 65 20 66 |nd part |of the f|
|000019a0| 69 6c 65 20 69 73 20 61 | 20 6c 69 73 74 20 6f 66 |ile is a| list of|
|000019b0| 20 74 61 62 6c 65 20 6e | 75 6d 62 65 72 73 2c 20 | table n|umbers, |
|000019c0| 63 68 61 72 61 63 74 65 | 72 73 2c 0a 61 6e 64 20 |characte|rs,.and |
|000019d0| 61 63 74 69 6f 6e 73 20 | 6f 72 20 73 74 72 69 6e |actions |or strin|
|000019e0| 67 73 2e 20 5c 66 49 69 | 6c 65 5c 66 50 20 68 61 |gs. \fIi|le\fP ha|
|000019f0| 73 20 34 20 61 63 74 69 | 6f 6e 20 74 61 62 6c 65 |s 4 acti|on table|
|00001a00| 73 2e 20 45 61 63 68 20 | 61 63 74 69 6f 6e 0a 74 |s. Each |action.t|
|00001a10| 61 62 6c 65 20 63 6f 6e | 74 61 69 6e 73 20 61 6e |able con|tains an|
|00001a20| 20 61 63 74 69 6f 6e 20 | 6f 72 20 73 74 72 69 6e | action |or strin|
|00001a30| 67 20 66 6f 72 20 65 61 | 63 68 20 70 6f 73 73 69 |g for ea|ch possi|
|00001a40| 62 6c 65 20 63 68 61 72 | 61 63 74 65 72 2e 0a 58 |ble char|acter..X|
|00001a50| 5c 66 49 69 6c 65 5c 66 | 50 20 64 65 63 69 64 65 |\fIile\f|P decide|
|00001a60| 73 20 77 68 61 74 20 74 | 6f 20 64 6f 20 77 69 74 |s what t|o do wit|
|00001a70| 68 20 61 20 63 68 61 72 | 61 63 74 65 72 20 62 79 |h a char|acter by|
|00001a80| 20 6c 6f 6f 6b 69 6e 67 | 20 69 74 20 75 70 20 69 | looking| it up i|
|00001a90| 6e 20 74 68 65 0a 74 61 | 62 6c 65 20 61 6e 64 20 |n the.ta|ble and |
|00001aa0| 65 78 65 63 75 74 69 6e | 67 20 74 68 65 20 61 63 |executin|g the ac|
|00001ab0| 74 69 6f 6e 20 61 73 73 | 6f 63 69 61 74 65 64 20 |tion ass|ociated |
|00001ac0| 77 69 74 68 20 74 68 65 | 20 63 68 61 72 61 63 74 |with the| charact|
|00001ad0| 65 72 20 6f 72 20 62 79 | 0a 70 61 73 73 69 6e 67 |er or by|.passing|
|00001ae0| 20 74 68 65 20 73 74 72 | 69 6e 67 20 6f 6e 65 20 | the str|ing one |
|00001af0| 63 68 61 72 61 63 74 65 | 72 20 61 74 20 61 20 74 |characte|r at a t|
|00001b00| 69 6d 65 20 69 6e 74 6f | 20 5c 66 49 69 6c 65 5c |ime into| \fIile\|
|00001b10| 66 50 20 61 73 20 69 66 | 20 69 74 20 68 61 64 0a |fP as if| it had.|
|00001b20| 62 65 65 6e 20 74 79 70 | 65 64 20 62 79 20 74 68 |been typ|ed by th|
|00001b30| 65 20 75 73 65 72 2e 20 | 4e 6f 72 6d 61 6c 6c 79 |e user. |Normally|
|00001b40| 20 6f 6e 6c 79 20 74 61 | 62 6c 65 20 30 20 69 73 | only ta|ble 0 is|
|00001b50| 20 75 73 65 64 2e 20 42 | 75 74 2c 20 74 68 65 0a | used. B|ut, the.|
|00001b60| 58 5c 66 42 65 73 63 61 | 70 65 5c 66 50 20 61 63 |X\fBesca|pe\fP ac|
|00001b70| 74 69 6f 6e 73 20 63 61 | 75 73 65 20 74 68 65 20 |tions ca|use the |
|00001b80| 6e 65 78 74 20 63 68 61 | 72 61 63 74 65 72 20 74 |next cha|racter t|
|00001b90| 6f 20 62 65 20 6c 6f 6f | 6b 65 64 20 75 70 20 69 |o be loo|ked up i|
|00001ba0| 6e 20 61 0a 64 69 66 66 | 65 72 65 6e 74 20 74 61 |n a.diff|erent ta|
|00001bb0| 62 6c 65 2e 20 54 68 65 | 20 5c 66 42 65 73 63 61 |ble. The| \fBesca|
|00001bc0| 70 65 5c 66 50 20 61 63 | 74 69 6f 6e 73 20 6d 61 |pe\fP ac|tions ma|
|00001bd0| 6b 65 20 69 74 20 70 6f | 73 73 69 62 6c 65 20 74 |ke it po|ssible t|
|00001be0| 6f 20 6d 61 70 0a 6d 75 | 6c 74 69 70 6c 65 20 63 |o map.mu|ltiple c|
|00001bf0| 68 61 72 61 63 74 65 72 | 20 73 65 71 75 65 6e 63 |haracter| sequenc|
|00001c00| 65 73 20 74 6f 20 61 63 | 74 69 6f 6e 73 2e 0a 58 |es to ac|tions..X|
|00001c10| 0a 42 79 20 64 65 66 61 | 75 6c 74 2c 20 61 6c 6c |.By defa|ult, all|
|00001c20| 20 65 6e 74 72 69 65 73 | 20 69 6e 20 74 61 62 6c | entries| in tabl|
|00001c30| 65 20 30 20 61 72 65 20 | 62 6f 75 6e 64 20 74 6f |e 0 are |bound to|
|00001c40| 20 74 68 65 20 5c 66 42 | 69 6e 73 65 72 74 5c 66 | the \fB|insert\f|
|00001c50| 50 0a 61 63 74 69 6f 6e | 2c 20 61 6e 64 20 61 6c |P.action|, and al|
|00001c60| 6c 20 65 6e 74 72 69 65 | 73 20 69 6e 20 74 68 65 |l entrie|s in the|
|00001c70| 20 6f 74 68 65 72 20 74 | 61 62 6c 65 73 20 61 72 | other t|ables ar|
|00001c80| 65 20 62 6f 75 6e 64 20 | 74 6f 20 74 68 65 0a 58 |e bound |to the.X|
|00001c90| 5c 66 42 62 65 6c 6c 5c | 66 50 20 61 63 74 69 6f |\fBbell\|fP actio|
|00001ca0| 6e 2e 20 55 73 65 72 20 | 73 70 65 63 69 66 69 65 |n. User |specifie|
|00001cb0| 64 20 62 69 6e 64 69 6e | 67 73 20 6f 76 65 72 72 |d bindin|gs overr|
|00001cc0| 69 64 65 20 74 68 65 73 | 65 20 64 65 66 61 75 6c |ide thes|e defaul|
|00001cd0| 74 73 2e 0a 54 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |ts..The |followin|
|00001ce0| 67 20 65 78 61 6d 70 6c | 65 20 69 73 20 61 6e 20 |g exampl|e is an |
|00001cf0| 69 6e 69 74 69 61 6c 69 | 7a 61 74 69 6f 6e 20 66 |initiali|zation f|
|00001d00| 69 6c 65 20 74 68 61 74 | 20 73 65 74 73 20 75 70 |ile that| sets up|
|00001d10| 20 74 68 65 20 73 61 6d | 65 0a 6b 65 79 20 61 6e | the sam|e.key an|
|00001d20| 64 20 64 65 6c 69 6d 69 | 74 65 72 20 62 69 6e 64 |d delimi|ter bind|
|00001d30| 69 6e 67 73 20 61 73 20 | 74 68 65 20 5c 66 49 69 |ings as |the \fIi|
|00001d40| 6c 65 5c 66 50 20 64 65 | 66 61 75 6c 74 20 62 69 |le\fP de|fault bi|
|00001d50| 6e 64 69 6e 67 73 2e 0a | 58 0a 58 2e 50 50 0a 58 |ndings..|X.X.PP.X|
|00001d60| 2e 53 48 20 45 78 61 6d | 70 6c 65 20 5c 66 49 2e |.SH Exam|ple \fI.|
|00001d70| 69 6c 65 72 63 5c 66 50 | 20 66 69 6c 65 0a 58 2e |ilerc\fP| file.X.|
|00001d80| 45 58 20 30 0a 58 20 2f | 2e 2d 0a 58 0a 58 30 5e |EX 0.X /|.-.X.X0^|
|00001d90| 41 3d 73 74 61 72 74 5f | 6f 66 5f 6c 69 6e 65 0a |A=start_|of_line.|
|00001da0| 58 30 5e 42 3d 62 61 63 | 6b 77 61 72 64 5f 63 68 |X0^B=bac|kward_ch|
|00001db0| 61 72 0a 58 30 5e 45 3d | 65 6e 64 5f 6f 66 5f 6c |ar.X0^E=|end_of_l|
|00001dc0| 69 6e 65 0a 58 30 5e 46 | 3d 66 6f 72 77 61 72 64 |ine.X0^F|=forward|
|00001dd0| 5f 63 68 61 72 0a 58 30 | 5e 4b 3d 65 72 61 73 65 |_char.X0|^K=erase|
|00001de0| 5f 74 6f 5f 65 6e 64 5f | 6f 66 5f 6c 69 6e 65 0a |_to_end_|of_line.|
|00001df0| 58 30 5e 4c 3d 72 65 74 | 79 70 65 5f 6c 69 6e 65 |X0^L=ret|ype_line|
|00001e00| 0a 58 30 5e 4e 3d 66 6f | 72 77 61 72 64 5f 68 69 |.X0^N=fo|rward_hi|
|00001e10| 73 74 6f 72 79 0a 58 30 | 5e 50 3d 62 61 63 6b 77 |story.X0|^P=backw|
|00001e20| 61 72 64 5f 68 69 73 74 | 6f 72 79 0a 58 30 5e 52 |ard_hist|ory.X0^R|
|00001e30| 3d 73 65 61 72 63 68 5f | 62 61 63 6b 77 61 72 64 |=search_|backward|
|00001e40| 5f 68 69 73 74 6f 72 79 | 0a 58 30 5e 56 3d 71 75 |_history|.X0^V=qu|
|00001e50| 6f 74 65 0a 58 30 5e 54 | 3d 74 72 61 6e 73 70 6f |ote.X0^T|=transpo|
|00001e60| 73 65 5f 63 68 61 72 73 | 0a 58 30 5c 5c 31 37 37 |se_chars|.X0\\177|
|00001e70| 3d 64 65 6c 65 74 65 5f | 63 68 61 72 0a 58 30 5e |=delete_|char.X0^|
|00001e80| 5b 3d 65 73 63 61 70 65 | 5f 31 0a 58 30 5e 4d 3d |[=escape|_1.X0^M=|
|00001e90| 61 64 64 5f 74 6f 5f 68 | 69 73 74 6f 72 79 0a 58 |add_to_h|istory.X|
|00001ea0| 30 5e 4a 3d 61 64 64 5f | 74 6f 5f 68 69 73 74 6f |0^J=add_|to_histo|
|00001eb0| 72 79 0a 58 30 5e 55 3d | 65 72 61 73 65 5f 6c 69 |ry.X0^U=|erase_li|
|00001ec0| 6e 65 0a 58 30 5e 58 3d | 64 65 6c 65 74 65 5f 63 |ne.X0^X=|delete_c|
|00001ed0| 68 61 72 5f 75 6e 64 65 | 72 0a 58 0a 58 30 5e 43 |har_unde|r.X.X0^C|
|00001ee0| 3d 70 61 73 73 0a 58 30 | 5e 44 3d 70 61 73 73 0a |=pass.X0|^D=pass.|
|00001ef0| 58 30 5e 51 3d 70 61 73 | 73 0a 58 30 5e 53 3d 70 |X0^Q=pas|s.X0^S=p|
|00001f00| 61 73 73 0a 58 30 5e 5a | 3d 70 61 73 73 0a 58 0a |ass.X0^Z|=pass.X.|
|00001f10| 58 31 62 3d 62 61 63 6b | 77 61 72 64 5f 77 6f 72 |X1b=back|ward_wor|
|00001f20| 64 0a 58 31 66 3d 66 6f | 72 77 61 72 64 5f 77 6f |d.X1f=fo|rward_wo|
|00001f30| 72 64 0a 58 31 5c 5c 31 | 37 37 3d 64 65 6c 65 74 |rd.X1\\1|77=delet|
|00001f40| 65 5f 77 6f 72 64 0a 58 | 31 5b 3d 65 73 63 61 70 |e_word.X|1[=escap|
|00001f50| 65 5f 32 0a 58 31 5e 5b | 3d 63 6f 6d 70 6c 65 74 |e_2.X1^[|=complet|
|00001f60| 65 5f 66 69 6c 65 0a 58 | 31 73 3d 63 6f 6d 70 6c |e_file.X|1s=compl|
|00001f70| 65 74 65 5f 66 69 6c 65 | 5f 66 75 6c 6c 0a 58 31 |ete_file|_full.X1|
|00001f80| 70 3d 71 75 65 72 79 5f | 70 61 74 68 0a 58 31 64 |p=query_|path.X1d|
|00001f90| 3d 73 68 6f 77 5f 66 69 | 6c 65 73 0a 58 31 75 3d |=show_fi|les.X1u=|
|00001fa0| 75 70 70 65 72 5f 77 6f | 72 64 0a 58 31 6c 3d 6c |upper_wo|rd.X1l=l|
|00001fb0| 6f 77 65 72 5f 77 6f 72 | 64 0a 58 31 63 3d 63 61 |ower_wor|d.X1c=ca|
|00001fc0| 70 69 74 61 6c 69 7a 65 | 5f 77 6f 72 64 0a 58 0a |pitalize|_word.X.|
|00001fd0| 58 32 41 3d 62 61 63 6b | 77 61 72 64 5f 68 69 73 |X2A=back|ward_his|
|00001fe0| 74 6f 72 79 0a 58 32 42 | 3d 66 6f 72 77 61 72 64 |tory.X2B|=forward|
|00001ff0| 5f 68 69 73 74 6f 72 79 | 0a 58 32 43 3d 66 6f 72 |_history|.X2C=for|
|00002000| 77 61 72 64 5f 63 68 61 | 72 0a 58 32 44 3d 62 61 |ward_cha|r.X2D=ba|
|00002010| 63 6b 77 61 72 64 5f 63 | 68 61 72 0a 58 2e 45 45 |ckward_c|har.X.EE|
|00002020| 0a 58 0a 58 2e 50 50 0a | 58 0a 54 68 65 20 66 69 |.X.X.PP.|X.The fi|
|00002030| 72 73 74 20 63 68 61 72 | 61 63 74 65 72 20 6f 6e |rst char|acter on|
|00002040| 20 65 61 63 68 20 6b 65 | 79 20 62 69 6e 64 69 6e | each ke|y bindin|
|00002050| 67 20 6c 69 6e 65 20 69 | 73 20 74 68 65 20 69 6e |g line i|s the in|
|00002060| 64 65 78 20 6f 66 20 74 | 68 65 20 74 61 62 6c 65 |dex of t|he table|
|00002070| 0a 74 6f 20 70 6c 61 63 | 65 20 74 68 65 20 6b 65 |.to plac|e the ke|
|00002080| 79 20 62 69 6e 64 69 6e | 67 20 69 6e 2e 20 56 61 |y bindin|g in. Va|
|00002090| 6c 69 64 20 76 61 6c 75 | 65 73 20 66 6f 72 20 74 |lid valu|es for t|
|000020a0| 68 65 20 69 6e 64 65 78 | 20 61 72 65 20 30 2c 20 |he index| are 0, |
|000020b0| 31 2c 20 32 2c 0a 61 6e | 64 20 33 2e 0a 58 0a 58 |1, 2,.an|d 3..X.X|
|000020c0| 2e 50 50 0a 58 0a 54 68 | 65 20 73 65 63 6f 6e 64 |.PP.X.Th|e second|
|000020d0| 20 63 68 61 72 61 63 74 | 65 72 20 6f 6e 20 74 68 | charact|er on th|
|000020e0| 65 20 6c 69 6e 65 20 69 | 73 20 65 69 74 68 65 72 |e line i|s either|
|000020f0| 20 74 68 65 20 63 68 61 | 72 61 63 74 65 72 20 74 | the cha|racter t|
|00002100| 6f 20 62 69 6e 64 20 6f | 72 20 61 6e 0a 69 6e 64 |o bind o|r an.ind|
|00002110| 69 63 61 74 6f 72 20 74 | 68 61 74 20 74 65 6c 6c |icator t|hat tell|
|00002120| 73 20 68 6f 77 20 74 6f | 20 66 69 6e 64 20 6f 75 |s how to| find ou|
|00002130| 74 20 77 68 61 74 20 63 | 68 61 72 61 63 74 65 72 |t what c|haracter|
|00002140| 20 74 6f 20 62 69 6e 64 | 2e 20 49 66 20 74 68 65 | to bind|. If the|
|00002150| 0a 73 65 63 6f 6e 64 20 | 63 68 61 72 61 63 74 65 |.second |characte|
|00002160| 72 20 69 73 20 61 6e 79 | 20 63 68 61 72 61 63 74 |r is any| charact|
|00002170| 65 72 20 62 65 73 69 64 | 65 73 20 27 5e 27 20 6f |er besid|es '^' o|
|00002180| 72 20 27 5c 5c 27 20 74 | 68 65 6e 20 74 68 65 20 |r '\\' t|hen the |
|00002190| 61 63 74 69 6f 6e 0a 69 | 73 20 62 6f 75 6e 64 20 |action.i|s bound |
|000021a0| 74 6f 20 74 68 61 74 20 | 63 68 61 72 61 63 74 65 |to that |characte|
|000021b0| 72 2e 0a 58 0a 58 2e 50 | 50 0a 58 0a 49 66 20 74 |r..X.X.P|P.X.If t|
|000021c0| 68 65 20 73 65 63 6f 6e | 64 20 63 68 61 72 61 63 |he secon|d charac|
|000021d0| 74 65 72 20 6f 6e 20 74 | 68 65 20 6c 69 6e 65 20 |ter on t|he line |
|000021e0| 69 73 20 27 5e 27 20 74 | 68 65 6e 20 74 68 65 20 |is '^' t|hen the |
|000021f0| 6e 65 78 74 20 63 68 61 | 72 61 63 74 65 72 20 69 |next cha|racter i|
|00002200| 73 0a 74 61 6b 65 6e 20 | 61 73 20 74 68 65 20 6e |s.taken |as the n|
|00002210| 61 6d 65 20 6f 66 20 61 | 20 63 6f 6e 74 72 6f 6c |ame of a| control|
|00002220| 20 63 68 61 72 61 63 74 | 65 72 2e 20 53 6f 20 5e | charact|er. So ^|
|00002230| 48 20 69 73 20 62 61 63 | 6b 73 70 61 63 65 20 61 |H is bac|kspace a|
|00002240| 6e 64 20 5e 5b 20 69 73 | 0a 65 73 63 61 70 65 2e |nd ^[ is|.escape.|
|00002250| 0a 58 0a 58 2e 50 50 0a | 58 0a 49 66 20 74 68 65 |.X.X.PP.|X.If the|
|00002260| 20 73 65 63 6f 6e 64 20 | 63 68 61 72 61 63 74 65 | second |characte|
|00002270| 72 20 6f 6e 20 74 68 65 | 20 6c 69 6e 65 20 69 73 |r on the| line is|
|00002280| 20 61 20 27 5c 5c 27 20 | 61 6e 64 20 74 68 65 20 | a '\\' |and the |
|00002290| 6e 65 78 74 20 63 68 61 | 72 61 63 74 65 72 0a 69 |next cha|racter.i|
|000022a0| 73 20 61 20 64 69 67 69 | 74 20 62 65 74 77 65 65 |s a digi|t betwee|
|000022b0| 6e 20 30 20 61 6e 64 20 | 37 20 74 68 65 20 74 68 |n 0 and |7 the th|
|000022c0| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 63 68 61 72 |e follow|ing char|
|000022d0| 61 63 74 65 72 73 20 61 | 72 65 0a 69 6e 74 65 72 |acters a|re.inter|
|000022e0| 70 72 65 74 65 64 20 61 | 73 20 61 6e 20 6f 63 74 |preted a|s an oct|
|000022f0| 61 6c 20 6e 75 6d 62 65 | 72 20 74 68 61 74 20 69 |al numbe|r that i|
|00002300| 6e 64 69 63 61 74 65 73 | 20 77 68 69 63 68 20 63 |ndicates| which c|
|00002310| 68 61 72 61 63 74 65 72 | 20 74 6f 20 62 69 6e 64 |haracter| to bind|
|00002320| 0a 74 68 65 20 61 63 74 | 69 6f 6e 20 74 6f 2e 20 |.the act|ion to. |
|00002330| 49 66 20 74 68 65 20 63 | 68 61 72 61 63 74 65 72 |If the c|haracter|
|00002340| 20 69 6d 6d 65 64 69 61 | 74 65 6c 79 20 61 66 74 | immedia|tely aft|
|00002350| 65 72 20 74 68 65 20 27 | 5c 5c 27 20 69 73 20 6e |er the '|\\' is n|
|00002360| 6f 74 20 61 6e 0a 6f 63 | 74 61 6c 20 64 69 67 69 |ot an.oc|tal digi|
|00002370| 74 20 74 68 65 6e 20 74 | 68 65 20 61 63 74 69 6f |t then t|he actio|
|00002380| 6e 20 69 73 20 62 6f 75 | 6e 64 20 74 6f 20 74 68 |n is bou|nd to th|
|00002390| 61 74 20 63 68 61 72 61 | 63 74 65 72 2e 20 46 6f |at chara|cter. Fo|
|000023a0| 72 20 65 78 61 6d 70 6c | 65 2c 0a 74 6f 20 67 65 |r exampl|e,.to ge|
|000023b0| 74 20 74 68 65 20 27 5e | 27 20 63 68 61 72 61 63 |t the '^|' charac|
|000023c0| 74 65 72 20 79 6f 75 20 | 77 6f 75 6c 64 20 75 73 |ter you |would us|
|000023d0| 65 20 27 5c 5c 5e 27 2e | 0a 58 0a 58 2e 50 50 0a |e '\\^'.|.X.X.PP.|
|000023e0| 58 0a 54 68 65 20 6e 65 | 78 74 20 63 68 61 72 61 |X.The ne|xt chara|
|000023f0| 63 74 65 72 20 6f 6e 20 | 74 68 65 20 6c 69 6e 65 |cter on |the line|
|00002400| 20 69 73 20 61 6c 77 61 | 79 73 20 27 3d 27 2e 20 | is alwa|ys '='. |
|00002410| 46 6f 6c 6c 6f 77 69 6e | 67 20 74 68 65 20 65 71 |Followin|g the eq|
|00002420| 75 61 6c 20 73 69 67 6e | 0a 69 73 20 74 68 65 20 |ual sign|.is the |
|00002430| 6e 61 6d 65 20 6f 66 20 | 61 6e 20 61 63 74 69 6f |name of |an actio|
|00002440| 6e 20 6f 72 20 61 20 73 | 74 72 69 6e 67 2e 20 54 |n or a s|tring. T|
|00002450| 68 65 20 61 63 74 69 6f | 6e 73 20 61 72 65 20 64 |he actio|ns are d|
|00002460| 65 66 69 6e 65 64 20 69 | 6e 20 74 68 65 0a 66 6f |efined i|n the.fo|
|00002470| 6c 6c 6f 77 69 6e 67 20 | 74 61 62 6c 65 2e 0a 58 |llowing |table..X|
|00002480| 0a 58 2e 50 50 0a 58 2e | 53 48 20 41 63 74 69 6f |.X.PP.X.|SH Actio|
|00002490| 6e 73 0a 58 0a 58 2e 49 | 50 20 22 5c 66 42 62 65 |ns.X.X.I|P "\fBbe|
|000024a0| 6c 6c 5c 66 50 22 20 32 | 30 0a 58 0a 53 65 6e 64 |ll\fP" 2|0.X.Send|
|000024b0| 20 61 20 62 65 6c 6c 20 | 28 5e 47 29 20 63 68 61 | a bell |(^G) cha|
|000024c0| 72 61 63 74 65 72 20 74 | 6f 20 74 68 65 20 74 65 |racter t|o the te|
|000024d0| 72 6d 69 6e 61 6c 2e 20 | 20 48 6f 70 65 66 75 6c |rminal. | Hopeful|
|000024e0| 6c 79 20 74 68 65 20 62 | 65 6c 6c 20 77 69 6c 6c |ly the b|ell will|
|000024f0| 0a 72 69 6e 67 2e 20 20 | 54 68 69 73 20 61 63 74 |.ring. |This act|
|00002500| 69 6f 6e 20 69 73 20 61 | 20 6e 69 63 65 20 77 61 |ion is a| nice wa|
|00002510| 79 20 74 6f 20 74 65 6c | 6c 20 74 68 65 20 75 73 |y to tel|l the us|
|00002520| 65 72 20 74 68 61 74 20 | 61 6e 20 69 6e 76 61 6c |er that |an inval|
|00002530| 69 64 0a 73 65 71 75 65 | 6e 63 65 20 6f 66 20 6b |id.seque|nce of k|
|00002540| 65 79 73 20 68 61 73 20 | 62 65 65 6e 20 74 79 70 |eys has |been typ|
|00002550| 65 64 2e 0a 58 0a 58 2e | 49 50 20 22 5c 66 42 70 |ed..X.X.|IP "\fBp|
|00002560| 61 73 73 5c 66 50 22 20 | 32 30 20 0a 58 0a 50 61 |ass\fP" |20 .X.Pa|
|00002570| 73 73 20 74 68 65 20 63 | 68 61 72 61 63 74 65 72 |ss the c|haracter|
|00002580| 20 74 6f 20 74 68 65 20 | 70 72 6f 67 72 61 6d 20 | to the |program |
|00002590| 72 75 6e 6e 69 6e 67 20 | 75 6e 64 65 72 20 5c 66 |running |under \f|
|000025a0| 49 69 6c 65 5c 66 50 2e | 20 44 6f 20 6e 6f 74 20 |Iile\fP.| Do not |
|000025b0| 65 63 68 6f 0a 74 68 65 | 20 63 68 61 72 61 63 74 |echo.the| charact|
|000025c0| 65 72 2c 20 64 6f 20 6e | 6f 74 20 69 6e 73 65 72 |er, do n|ot inser|
|000025d0| 74 20 69 74 20 69 6e 74 | 6f 20 74 68 65 20 65 64 |t it int|o the ed|
|000025e0| 69 74 20 62 75 66 66 65 | 72 2e 20 4a 75 73 74 20 |it buffe|r. Just |
|000025f0| 70 61 73 73 20 69 74 0a | 61 6c 6f 6e 67 2e 20 20 |pass it.|along. |
|00002600| 54 68 69 73 20 69 73 20 | 75 73 65 66 75 6c 20 66 |This is |useful f|
|00002610| 6f 72 20 63 68 61 72 61 | 63 74 65 72 73 20 6c 69 |or chara|cters li|
|00002620| 6b 65 20 5e 43 2c 20 5e | 5a 2c 20 5e 51 2c 20 61 |ke ^C, ^|Z, ^Q, a|
|00002630| 6e 64 20 5e 53 20 74 68 | 61 74 0a 68 61 76 65 20 |nd ^S th|at.have |
|00002640| 73 70 65 63 69 61 6c 20 | 6d 65 61 6e 69 6e 67 20 |special |meaning |
|00002650| 61 6e 64 20 73 68 6f 75 | 6c 64 6e 27 74 20 62 65 |and shou|ldn't be|
|00002660| 20 68 65 6c 64 20 75 70 | 20 69 6e 20 74 68 65 20 | held up| in the |
|00002670| 65 64 69 74 20 62 75 66 | 66 65 72 0a 77 61 69 74 |edit buf|fer.wait|
|00002680| 69 6e 67 20 74 6f 20 62 | 65 20 73 65 6e 74 2e 0a |ing to b|e sent..|
|00002690| 58 0a 58 2e 49 50 20 22 | 5c 66 42 69 6e 73 65 72 |X.X.IP "|\fBinser|
|000026a0| 74 5c 66 50 22 20 32 30 | 20 0a 58 0a 49 6e 73 65 |t\fP" 20| .X.Inse|
|000026b0| 72 74 20 74 68 65 20 63 | 68 61 72 61 63 74 65 72 |rt the c|haracter|
|000026c0| 20 69 6e 74 6f 20 74 68 | 65 20 65 64 69 74 20 62 | into th|e edit b|
|000026d0| 75 66 66 65 72 2e 20 49 | 66 20 74 68 65 72 65 20 |uffer. I|f there |
|000026e0| 61 72 65 20 61 6c 72 65 | 61 64 79 20 32 35 36 0a |are alre|ady 256.|
|000026f0| 63 68 61 72 61 63 74 65 | 72 73 20 69 6e 20 74 68 |characte|rs in th|
|00002700| 65 20 62 75 66 66 65 72 | 20 5c 66 49 69 6c 65 5c |e buffer| \fIile\|
|00002710| 66 50 20 77 69 6c 6c 20 | 62 65 65 70 20 61 6e 64 |fP will |beep and|
|00002720| 20 72 65 66 75 73 65 20 | 74 6f 20 70 75 74 20 74 | refuse |to put t|
|00002730| 68 65 0a 63 68 61 72 61 | 63 74 65 72 20 69 6e 20 |he.chara|cter in |
|00002740| 74 68 65 20 62 75 66 66 | 65 72 2e 0a 58 0a 58 2e |the buff|er..X.X.|
|00002750| 49 50 20 22 5c 66 42 74 | 72 61 6e 73 70 6f 73 65 |IP "\fBt|ranspose|
|00002760| 5f 63 68 61 72 73 5c 66 | 50 22 20 32 30 0a 58 0a |_chars\f|P" 20.X.|
|00002770| 53 77 61 70 20 74 68 65 | 20 63 68 61 72 61 63 74 |Swap the| charact|
|00002780| 65 72 20 75 6e 64 65 72 | 20 74 68 65 20 63 75 72 |er under| the cur|
|00002790| 73 6f 72 20 77 69 74 68 | 20 74 68 65 20 63 68 61 |sor with| the cha|
|000027a0| 72 61 63 74 65 72 20 74 | 6f 20 74 68 65 20 6c 65 |racter t|o the le|
|000027b0| 66 74 20 6f 66 0a 74 68 | 65 20 63 75 72 73 6f 72 |ft of.th|e cursor|
|000027c0| 20 61 6e 64 20 6d 6f 76 | 65 20 74 68 65 20 63 75 | and mov|e the cu|
|000027d0| 72 73 6f 72 20 6f 6e 65 | 20 63 68 61 72 61 63 74 |rsor one| charact|
|000027e0| 65 72 20 74 6f 20 74 68 | 65 20 72 69 67 68 74 2e |er to th|e right.|
|000027f0| 20 54 68 69 73 20 69 73 | 0a 68 61 6e 64 79 20 66 | This is|.handy f|
|00002800| 6f 72 20 63 6f 72 72 65 | 63 74 69 6e 67 20 6c 65 |or corre|cting le|
|00002810| 74 74 65 72 20 74 72 61 | 6e 73 70 6f 73 69 74 69 |tter tra|nspositi|
|00002820| 6f 6e 20 65 72 72 6f 72 | 73 2e 20 20 0a 58 0a 58 |on error|s. .X.X|
|00002830| 2e 49 50 20 22 5c 66 42 | 64 65 6c 65 74 65 5f 63 |.IP "\fB|delete_c|
|00002840| 68 61 72 5c 66 50 22 20 | 32 30 0a 58 0a 58 20 44 |har\fP" |20.X.X D|
|00002850| 65 6c 65 74 65 20 74 68 | 65 20 63 68 61 72 61 63 |elete th|e charac|
|00002860| 74 65 72 20 64 69 72 65 | 63 74 6c 79 20 74 6f 20 |ter dire|ctly to |
|00002870| 74 68 65 20 6c 65 66 74 | 20 6f 66 20 74 68 65 20 |the left| of the |
|00002880| 63 75 72 73 6f 72 20 66 | 72 6f 6d 20 74 68 65 20 |cursor f|rom the |
|00002890| 65 64 69 74 0a 62 75 66 | 66 65 72 2e 0a 58 0a 58 |edit.buf|fer..X.X|
|000028a0| 2e 49 50 20 22 5c 66 42 | 64 65 6c 65 74 65 5f 63 |.IP "\fB|delete_c|
|000028b0| 68 61 72 5f 75 6e 64 65 | 72 5c 66 50 22 20 32 30 |har_unde|r\fP" 20|
|000028c0| 0a 58 20 0a 44 65 6c 65 | 74 65 20 74 68 65 20 63 |.X .Dele|te the c|
|000028d0| 68 61 72 61 63 74 65 72 | 20 75 6e 64 65 72 20 74 |haracter| under t|
|000028e0| 68 65 20 63 75 72 73 6f | 72 20 66 72 6f 6d 20 74 |he curso|r from t|
|000028f0| 68 65 20 65 64 69 74 20 | 62 75 66 66 65 72 2e 0a |he edit |buffer..|
|00002900| 58 0a 58 2e 49 50 20 22 | 5c 66 42 71 75 6f 74 65 |X.X.IP "|\fBquote|
|00002910| 5c 66 50 22 20 32 30 0a | 58 20 0a 54 68 65 20 6e |\fP" 20.|X .The n|
|00002920| 65 78 74 20 63 68 61 72 | 61 63 74 65 72 20 74 6f |ext char|acter to|
|00002930| 20 63 6f 6d 65 20 69 6e | 74 6f 20 5c 66 49 69 6c | come in|to \fIil|
|00002940| 65 5c 66 50 20 77 69 6c | 6c 20 62 65 20 69 6e 73 |e\fP wil|l be ins|
|00002950| 65 72 74 65 64 20 69 6e | 74 6f 20 74 68 65 20 65 |erted in|to the e|
|00002960| 64 69 74 0a 62 75 66 66 | 65 72 2e 20 54 68 69 73 |dit.buff|er. This|
|00002970| 20 61 6c 6c 6f 77 73 20 | 79 6f 75 20 74 6f 20 70 | allows |you to p|
|00002980| 75 74 20 63 68 61 72 61 | 63 74 65 72 73 20 69 6e |ut chara|cters in|
|00002990| 74 6f 20 74 68 65 20 65 | 64 69 74 20 62 75 66 66 |to the e|dit buff|
|000029a0| 65 72 0a 74 68 61 74 20 | 61 72 65 20 62 6f 75 6e |er.that |are boun|
|000029b0| 64 20 74 6f 20 61 6e 20 | 61 63 74 69 6f 6e 20 6f |d to an |action o|
|000029c0| 74 68 65 72 20 74 68 61 | 6e 20 69 6e 73 65 72 74 |ther tha|n insert|
|000029d0| 2e 0a 58 0a 58 2e 49 50 | 20 22 5c 66 42 65 73 63 |..X.X.IP| "\fBesc|
|000029e0| 61 70 65 5f 31 5c 66 50 | 22 20 32 30 0a 58 20 0a |ape_1\fP|" 20.X .|
|000029f0| 4c 6f 6f 6b 20 75 70 20 | 74 68 65 20 6e 65 78 74 |Look up |the next|
|00002a00| 20 63 68 61 72 61 63 74 | 65 72 20 69 6e 20 61 63 | charact|er in ac|
|00002a10| 74 69 6f 6e 20 74 61 62 | 6c 65 20 31 20 69 6e 73 |tion tab|le 1 ins|
|00002a20| 74 65 61 64 20 6f 66 20 | 61 63 74 69 6f 6e 20 74 |tead of |action t|
|00002a30| 61 62 6c 65 20 30 2e 0a | 58 0a 58 2e 49 50 20 22 |able 0..|X.X.IP "|
|00002a40| 5c 66 42 65 73 63 61 70 | 65 5f 32 5c 66 50 22 20 |\fBescap|e_2\fP" |
|00002a50| 32 30 0a 58 20 0a 4c 6f | 6f 6b 20 75 70 20 74 68 |20.X .Lo|ok up th|
|00002a60| 65 20 6e 65 78 74 20 63 | 68 61 72 61 63 74 65 72 |e next c|haracter|
|00002a70| 20 69 6e 20 61 63 74 69 | 6f 6e 20 74 61 62 6c 65 | in acti|on table|
|00002a80| 20 32 20 69 6e 73 74 65 | 61 64 20 6f 66 20 61 63 | 2 inste|ad of ac|
|00002a90| 74 69 6f 6e 20 74 61 62 | 6c 65 20 30 2e 0a 58 0a |tion tab|le 0..X.|
|00002aa0| 58 2e 49 50 20 22 5c 66 | 42 65 73 63 61 70 65 5f |X.IP "\f|Bescape_|
|00002ab0| 33 5c 66 50 22 20 32 30 | 0a 58 20 0a 4c 6f 6f 6b |3\fP" 20|.X .Look|
|00002ac0| 20 75 70 20 74 68 65 20 | 6e 65 78 74 20 63 68 61 | up the |next cha|
|00002ad0| 72 61 63 74 65 72 20 69 | 6e 20 61 63 74 69 6f 6e |racter i|n action|
|00002ae0| 20 74 61 62 6c 65 20 33 | 20 69 6e 73 74 65 61 64 | table 3| instead|
|00002af0| 20 6f 66 20 61 63 74 69 | 6f 6e 20 74 61 62 6c 65 | of acti|on table|
|00002b00| 20 30 2e 0a 58 0a 58 2e | 49 50 20 22 5c 66 42 64 | 0..X.X.|IP "\fBd|
|00002b10| 65 6c 65 74 65 5f 77 6f | 72 64 5c 66 50 22 20 32 |elete_wo|rd\fP" 2|
|00002b20| 30 0a 58 20 0a 44 65 6c | 65 74 65 20 74 68 65 20 |0.X .Del|ete the |
|00002b30| 77 6f 72 64 20 64 69 72 | 65 63 74 6c 79 20 74 6f |word dir|ectly to|
|00002b40| 20 74 68 65 20 6c 65 66 | 74 20 6f 66 20 74 68 65 | the lef|t of the|
|00002b50| 20 63 75 72 73 6f 72 2e | 20 41 20 77 6f 72 64 20 | cursor.| A word |
|00002b60| 69 73 20 61 20 73 65 71 | 75 65 6e 63 65 0a 6f 66 |is a seq|uence.of|
|00002b70| 20 63 68 61 72 61 63 74 | 65 72 73 20 73 75 72 72 | charact|ers surr|
|00002b80| 6f 75 6e 64 65 64 20 62 | 79 20 64 65 6c 69 6d 69 |ounded b|y delimi|
|00002b90| 74 65 72 20 63 68 61 72 | 61 63 74 65 72 73 2e 0a |ter char|acters..|
|00002ba0| 58 0a 58 2e 49 50 20 22 | 5c 66 42 66 6f 72 77 61 |X.X.IP "|\fBforwa|
|00002bb0| 72 64 5f 77 6f 72 64 5c | 66 50 22 20 32 30 0a 58 |rd_word\|fP" 20.X|
|00002bc0| 20 0a 4d 6f 76 65 20 74 | 68 65 20 63 75 72 73 6f | .Move t|he curso|
|00002bd0| 72 20 74 6f 20 74 68 65 | 20 72 69 67 68 74 20 70 |r to the| right p|
|00002be0| 61 73 74 20 74 68 65 20 | 6e 65 78 74 20 77 6f 72 |ast the |next wor|
|00002bf0| 64 2e 20 41 20 77 6f 72 | 64 20 69 73 20 61 20 73 |d. A wor|d is a s|
|00002c00| 65 71 75 65 6e 63 65 20 | 6f 66 0a 63 68 61 72 61 |equence |of.chara|
|00002c10| 63 74 65 72 73 20 73 75 | 72 72 6f 75 6e 64 65 64 |cters su|rrounded|
|00002c20| 20 62 79 20 64 65 6c 69 | 6d 69 74 65 72 20 63 68 | by deli|miter ch|
|00002c30| 61 72 61 63 74 65 72 73 | 2e 0a 58 0a 58 2e 49 50 |aracters|..X.X.IP|
|00002c40| 20 22 5c 66 42 62 61 63 | 6b 77 61 72 64 5f 77 6f | "\fBbac|kward_wo|
|00002c50| 72 64 5c 66 50 22 20 32 | 30 0a 58 20 0a 4d 6f 76 |rd\fP" 2|0.X .Mov|
|00002c60| 65 20 74 68 65 20 63 75 | 72 73 6f 72 20 74 6f 20 |e the cu|rsor to |
|00002c70| 74 68 65 20 6c 65 66 74 | 20 70 61 73 74 20 74 68 |the left| past th|
|00002c80| 65 20 6e 65 78 74 20 77 | 6f 72 64 2e 20 41 20 77 |e next w|ord. A w|
|00002c90| 6f 72 64 20 69 73 20 61 | 20 73 65 71 75 65 6e 63 |ord is a| sequenc|
|00002ca0| 65 20 6f 66 0a 63 68 61 | 72 61 63 74 65 72 73 20 |e of.cha|racters |
|00002cb0| 73 75 72 72 6f 75 6e 64 | 65 64 20 62 79 20 64 65 |surround|ed by de|
|00002cc0| 6c 69 6d 69 74 65 72 20 | 63 68 61 72 61 63 74 65 |limiter |characte|
|00002cd0| 72 73 2e 0a 58 0a 58 2e | 49 50 20 22 5c 66 42 75 |rs..X.X.|IP "\fBu|
|00002ce0| 70 70 65 72 5f 77 6f 72 | 64 5c 66 50 22 20 32 30 |pper_wor|d\fP" 20|
|00002cf0| 0a 58 0a 53 74 61 72 74 | 69 6e 67 20 77 69 74 68 |.X.Start|ing with|
|00002d00| 20 74 68 65 20 63 68 61 | 72 61 63 74 65 72 20 75 | the cha|racter u|
|00002d10| 6e 64 65 72 20 74 68 65 | 20 63 75 72 73 6f 72 2c |nder the| cursor,|
|00002d20| 20 63 6f 6e 76 65 72 74 | 20 74 68 65 20 77 6f 72 | convert| the wor|
|00002d30| 64 20 74 6f 20 74 68 65 | 20 0a 72 69 67 68 74 20 |d to the| .right |
|00002d40| 6f 66 20 74 68 65 20 63 | 75 72 73 6f 72 20 74 6f |of the c|ursor to|
|00002d50| 20 75 70 70 65 72 20 63 | 61 73 65 2e 0a 58 0a 58 | upper c|ase..X.X|
|00002d60| 2e 49 50 20 22 5c 66 42 | 6c 6f 77 65 72 5f 77 6f |.IP "\fB|lower_wo|
|00002d70| 72 64 5c 66 50 22 20 32 | 30 0a 58 0a 53 74 61 72 |rd\fP" 2|0.X.Star|
|00002d80| 74 69 6e 67 20 77 69 74 | 68 20 74 68 65 20 63 68 |ting wit|h the ch|
|00002d90| 61 72 61 63 74 65 72 20 | 75 6e 64 65 72 20 74 68 |aracter |under th|
|00002da0| 65 20 63 75 72 73 6f 72 | 2c 20 63 6f 6e 76 65 72 |e cursor|, conver|
|00002db0| 74 20 74 68 65 20 77 6f | 72 64 20 74 6f 20 74 68 |t the wo|rd to th|
|00002dc0| 65 0a 72 69 67 68 74 20 | 6f 66 20 74 68 65 20 63 |e.right |of the c|
|00002dd0| 75 72 73 6f 72 20 74 6f | 20 6c 6f 77 65 72 20 63 |ursor to| lower c|
|00002de0| 61 73 65 2e 0a 58 0a 58 | 2e 49 50 20 22 5c 66 42 |ase..X.X|.IP "\fB|
|00002df0| 63 61 70 69 74 61 6c 69 | 7a 65 5f 77 6f 72 64 5c |capitali|ze_word\|
|00002e00| 66 50 22 20 32 30 0a 58 | 0a 43 6f 6e 76 65 72 74 |fP" 20.X|.Convert|
|00002e10| 20 74 68 65 20 63 68 61 | 72 61 63 74 65 72 20 75 | the cha|racter u|
|00002e20| 6e 64 65 72 20 74 68 65 | 20 63 75 72 73 6f 72 20 |nder the| cursor |
|00002e30| 74 6f 20 75 70 70 65 72 | 20 63 61 73 65 2e 20 43 |to upper| case. C|
|00002e40| 6f 6e 76 65 72 74 20 74 | 68 65 20 77 6f 72 64 20 |onvert t|he word |
|00002e50| 74 6f 0a 74 68 65 20 72 | 69 67 68 74 20 6f 66 20 |to.the r|ight of |
|00002e60| 74 68 65 20 63 75 72 73 | 6f 72 20 74 6f 20 6c 6f |the curs|or to lo|
|00002e70| 77 65 72 20 63 61 73 65 | 2e 0a 58 0a 58 2e 49 50 |wer case|..X.X.IP|
|00002e80| 20 22 5c 66 42 73 74 61 | 72 74 5f 6f 66 5f 6c 69 | "\fBsta|rt_of_li|
|00002e90| 6e 65 5c 66 50 22 20 32 | 30 0a 58 20 0a 4d 6f 76 |ne\fP" 2|0.X .Mov|
|00002ea0| 65 20 74 68 65 20 63 75 | 72 73 6f 72 20 74 6f 20 |e the cu|rsor to |
|00002eb0| 74 68 65 20 6c 65 66 74 | 20 6d 6f 73 74 20 63 68 |the left| most ch|
|00002ec0| 61 72 61 63 74 65 72 20 | 69 6e 20 74 68 65 20 65 |aracter |in the e|
|00002ed0| 64 69 74 20 62 75 66 66 | 65 72 2e 0a 58 0a 58 2e |dit buff|er..X.X.|
|00002ee0| 49 50 20 22 5c 66 42 62 | 61 63 6b 77 61 72 64 5f |IP "\fBb|ackward_|
|00002ef0| 63 68 61 72 5c 66 50 22 | 20 32 30 0a 58 20 0a 4d |char\fP"| 20.X .M|
|00002f00| 6f 76 65 20 74 68 65 20 | 63 75 72 73 6f 72 20 74 |ove the |cursor t|
|00002f10| 6f 20 74 68 65 20 6c 65 | 66 74 20 6f 6e 65 20 63 |o the le|ft one c|
|00002f20| 68 61 72 61 63 74 65 72 | 2e 0a 58 0a 58 2e 49 50 |haracter|..X.X.IP|
|00002f30| 20 22 5c 66 42 65 6e 64 | 5f 6f 66 5f 6c 69 6e 65 | "\fBend|_of_line|
|00002f40| 5c 66 50 22 20 32 30 0a | 58 20 0a 4d 6f 76 65 20 |\fP" 20.|X .Move |
|00002f50| 74 68 65 20 63 75 72 73 | 6f 72 20 70 61 73 74 20 |the curs|or past |
|00002f60| 74 68 65 20 6c 61 73 74 | 20 63 68 61 72 61 63 74 |the last| charact|
|00002f70| 65 72 20 69 6e 20 74 68 | 65 20 65 64 69 74 20 62 |er in th|e edit b|
|00002f80| 75 66 66 65 72 2e 0a 58 | 0a 58 2e 49 50 20 22 5c |uffer..X|.X.IP "\|
|00002f90| 66 42 66 6f 72 77 61 72 | 64 5f 63 68 61 72 5c 66 |fBforwar|d_char\f|
|00002fa0| 50 22 20 32 30 0a 58 20 | 0a 4d 6f 76 65 20 74 68 |P" 20.X |.Move th|
|00002fb0| 65 20 63 75 72 73 6f 72 | 20 74 6f 20 74 68 65 20 |e cursor| to the |
|00002fc0| 72 69 67 68 74 20 6f 6e | 65 20 63 68 61 72 61 63 |right on|e charac|
|00002fd0| 74 65 72 2e 0a 58 0a 58 | 2e 49 50 20 22 5c 66 42 |ter..X.X|.IP "\fB|
|00002fe0| 61 64 64 5f 74 6f 5f 68 | 69 73 74 6f 72 79 5c 66 |add_to_h|istory\f|
|00002ff0| 50 22 20 32 30 0a 58 20 | 0a 41 64 64 20 74 68 65 |P" 20.X |.Add the|
|00003000| 20 63 6f 6e 74 65 6e 74 | 73 20 6f 66 20 74 68 65 | content|s of the|
|00003010| 20 65 64 69 74 20 62 75 | 66 66 65 72 20 74 6f 20 | edit bu|ffer to |
|00003020| 74 68 65 20 68 69 73 74 | 6f 72 79 20 62 75 66 66 |the hist|ory buff|
|00003030| 65 72 20 61 6e 64 20 70 | 61 73 73 20 74 68 65 20 |er and p|ass the |
|00003040| 6c 69 6e 65 0a 61 6c 6f | 6e 67 20 74 6f 20 74 68 |line.alo|ng to th|
|00003050| 65 20 70 72 6f 67 72 61 | 6d 20 72 75 6e 6e 69 6e |e progra|m runnin|
|00003060| 67 20 75 6e 64 65 72 20 | 5c 66 49 69 6c 65 5c 66 |g under |\fIile\f|
|00003070| 50 2e 0a 58 0a 58 2e 49 | 50 20 22 5c 66 42 65 72 |P..X.X.I|P "\fBer|
|00003080| 61 73 65 5f 6c 69 6e 65 | 5c 66 50 22 20 32 30 0a |ase_line|\fP" 20.|
|00003090| 58 20 0a 43 6c 65 61 72 | 20 74 68 65 20 6c 69 6e |X .Clear| the lin|
|000030a0| 65 2e 20 45 72 61 73 65 | 20 61 6c 6c 20 63 68 61 |e. Erase| all cha|
|000030b0| 72 61 63 74 65 72 73 20 | 6f 6e 20 74 68 65 20 6c |racters |on the l|
|000030c0| 69 6e 65 2e 0a 58 0a 58 | 2e 49 50 20 22 5c 66 42 |ine..X.X|.IP "\fB|
|000030d0| 65 72 61 73 65 5f 74 6f | 5f 65 6e 64 5f 6f 66 5f |erase_to|_end_of_|
|000030e0| 6c 69 6e 65 5c 66 50 22 | 20 32 30 0a 58 20 0a 44 |line\fP"| 20.X .D|
|000030f0| 65 6c 65 74 65 20 74 68 | 65 20 63 68 61 72 61 63 |elete th|e charac|
|00003100| 74 65 72 20 75 6e 64 65 | 72 20 74 68 65 20 63 75 |ter unde|r the cu|
|00003110| 72 73 6f 72 20 61 6e 64 | 20 61 6c 6c 20 63 68 61 |rsor and| all cha|
|00003120| 72 61 63 74 65 72 20 74 | 6f 20 74 68 65 20 6c 65 |racter t|o the le|
|00003130| 66 74 0a 6f 66 20 74 68 | 65 20 63 75 72 73 6f 72 |ft.of th|e cursor|
|00003140| 20 66 72 6f 6d 20 74 68 | 65 20 65 64 69 74 20 62 | from th|e edit b|
|00003150| 75 66 66 65 72 2e 0a 58 | 0a 58 2e 49 50 20 22 5c |uffer..X|.X.IP "\|
|00003160| 66 42 72 65 74 79 70 65 | 5f 6c 69 6e 65 5c 66 50 |fBretype|_line\fP|
|00003170| 22 20 32 30 0a 58 20 0a | 52 65 74 79 70 65 20 74 |" 20.X .|Retype t|
|00003180| 68 65 20 63 6f 6e 74 65 | 6e 74 73 20 6f 66 20 74 |he conte|nts of t|
|00003190| 68 65 20 63 75 72 72 65 | 6e 74 20 65 64 69 74 20 |he curre|nt edit |
|000031a0| 62 75 66 66 65 72 2e 20 | 54 68 69 73 20 69 73 20 |buffer. |This is |
|000031b0| 68 61 6e 64 79 20 77 68 | 65 6e 20 73 79 73 74 65 |handy wh|en syste|
|000031c0| 6d 0a 6d 65 73 73 61 67 | 65 73 20 6f 72 20 6f 74 |m.messag|es or ot|
|000031d0| 68 65 72 20 61 73 79 6e | 63 68 72 6f 6e 6f 75 73 |her asyn|chronous|
|000031e0| 20 6f 75 74 70 75 74 20 | 68 61 73 20 67 61 72 62 | output |has garb|
|000031f0| 6c 65 64 20 74 68 65 20 | 69 6e 70 75 74 20 6c 69 |led the |input li|
|00003200| 6e 65 2e 0a 58 0a 58 2e | 49 50 20 22 5c 66 42 66 |ne..X.X.|IP "\fBf|
|00003210| 6f 72 77 61 72 64 5f 68 | 69 73 74 6f 72 79 5c 66 |orward_h|istory\f|
|00003220| 50 22 20 32 30 0a 58 20 | 0a 44 69 73 70 6c 61 79 |P" 20.X |.Display|
|00003230| 20 74 68 65 20 6e 65 78 | 74 20 65 6e 74 72 79 20 | the nex|t entry |
|00003240| 69 6e 20 74 68 65 20 68 | 69 73 74 6f 72 79 20 62 |in the h|istory b|
|00003250| 75 66 66 65 72 2e 20 49 | 66 20 79 6f 75 20 61 72 |uffer. I|f you ar|
|00003260| 65 20 61 6c 72 65 61 64 | 79 20 61 74 20 74 68 65 |e alread|y at the|
|00003270| 0a 6d 6f 73 74 20 72 65 | 63 65 6e 74 20 65 6e 74 |.most re|cent ent|
|00003280| 72 79 20 64 69 73 70 6c | 61 79 20 61 20 62 6c 61 |ry displ|ay a bla|
|00003290| 6e 6b 20 6c 69 6e 65 2e | 20 49 66 20 79 6f 75 20 |nk line.| If you |
|000032a0| 74 72 79 20 74 6f 20 67 | 6f 20 66 6f 72 77 61 72 |try to g|o forwar|
|000032b0| 64 20 70 61 73 74 0a 74 | 68 65 20 62 6c 61 6e 6b |d past.t|he blank|
|000032c0| 20 6c 69 6e 65 20 74 68 | 69 73 20 63 6f 6d 6d 61 | line th|is comma|
|000032d0| 6e 64 20 77 69 6c 6c 20 | 62 65 65 70 20 61 74 20 |nd will |beep at |
|000032e0| 79 6f 75 2e 0a 58 0a 58 | 2e 49 50 20 22 5c 66 42 |you..X.X|.IP "\fB|
|000032f0| 62 61 63 6b 77 61 72 64 | 5f 68 69 73 74 6f 72 79 |backward|_history|
|00003300| 5c 66 50 22 20 32 30 0a | 58 20 0a 44 69 73 70 6c |\fP" 20.|X .Displ|
|00003310| 61 79 20 74 68 65 20 70 | 72 65 76 69 6f 75 73 20 |ay the p|revious |
|00003320| 65 6e 74 72 79 20 69 6e | 20 74 68 65 20 68 69 73 |entry in| the his|
|00003330| 74 6f 72 79 20 62 75 66 | 66 65 72 2e 20 49 66 20 |tory buf|fer. If |
|00003340| 74 68 65 72 65 20 61 72 | 65 20 6e 6f 20 6f 6c 64 |there ar|e no old|
|00003350| 65 72 0a 65 6e 74 72 69 | 65 73 20 69 6e 20 74 68 |er.entri|es in th|
|00003360| 65 20 62 75 66 66 65 72 | 2c 20 62 65 65 70 2e 0a |e buffer|, beep..|
|00003370| 58 0a 58 2e 49 50 20 22 | 5c 66 42 73 65 61 72 63 |X.X.IP "|\fBsearc|
|00003380| 68 5f 62 61 63 6b 77 61 | 72 64 5f 68 69 73 74 6f |h_backwa|rd_histo|
|00003390| 72 79 5c 66 50 22 20 32 | 30 20 0a 58 0a 53 65 61 |ry\fP" 2|0 .X.Sea|
|000033a0| 72 63 68 20 66 6f 72 20 | 61 20 6c 69 6e 65 20 69 |rch for |a line i|
|000033b0| 6e 20 74 68 65 20 68 69 | 73 74 6f 72 79 20 62 75 |n the hi|story bu|
|000033c0| 66 66 65 72 20 74 68 61 | 74 20 73 74 61 72 74 73 |ffer tha|t starts|
|000033d0| 20 77 69 74 68 20 74 68 | 65 0a 63 68 61 72 61 63 | with th|e.charac|
|000033e0| 74 65 72 73 20 74 6f 20 | 74 68 65 20 6c 65 66 74 |ters to |the left|
|000033f0| 20 6f 66 20 74 68 65 20 | 63 75 72 73 6f 72 2e 20 | of the |cursor. |
|00003400| 20 49 66 20 61 20 6d 61 | 74 63 68 20 69 73 20 66 | If a ma|tch is f|
|00003410| 6f 75 6e 64 20 74 68 65 | 20 6d 61 74 63 68 65 64 |ound the| matched|
|00003420| 0a 6c 69 6e 65 20 69 73 | 20 64 69 73 70 6c 61 79 |.line is| display|
|00003430| 65 64 2e 20 49 66 20 6e | 6f 20 6d 61 74 63 68 20 |ed. If n|o match |
|00003440| 69 73 20 66 6f 75 6e 64 | 20 74 68 69 73 20 63 6f |is found| this co|
|00003450| 6d 6d 61 6e 64 20 77 69 | 6c 6c 20 62 65 65 70 20 |mmand wi|ll beep |
|00003460| 61 74 20 79 6f 75 2e 0a | 58 0a 58 2e 49 50 20 22 |at you..|X.X.IP "|
|00003470| 5c 66 42 63 6f 6d 70 6c | 65 74 65 5f 66 69 6c 65 |\fBcompl|ete_file|
|00003480| 5c 66 50 22 20 32 30 0a | 58 0a 54 61 6b 65 20 74 |\fP" 20.|X.Take t|
|00003490| 68 65 20 77 6f 72 64 20 | 63 75 72 72 65 6e 74 6c |he word |currentl|
|000034a0| 79 20 75 6e 64 65 72 2c | 20 6f 72 20 69 6d 6d 65 |y under,| or imme|
|000034b0| 64 69 61 74 65 6c 79 20 | 74 6f 20 74 68 65 20 6c |diately |to the l|
|000034c0| 65 66 74 20 6f 66 20 74 | 68 65 0a 63 75 72 73 6f |eft of t|he.curso|
|000034d0| 72 20 61 6e 64 20 74 72 | 65 61 74 20 69 74 20 61 |r and tr|eat it a|
|000034e0| 73 20 61 20 70 61 72 74 | 69 61 6c 20 66 69 6c 65 |s a part|ial file|
|000034f0| 20 6e 61 6d 65 20 61 6e | 64 20 70 61 74 68 20 6e | name an|d path n|
|00003500| 61 6d 65 2e 20 49 66 20 | 74 68 65 72 65 20 69 73 |ame. If |there is|
|00003510| 0a 6f 6e 6c 79 20 6f 6e | 65 20 66 69 6c 65 20 69 |.only on|e file i|
|00003520| 6e 20 74 68 65 20 64 69 | 72 65 63 74 6f 72 79 20 |n the di|rectory |
|00003530| 74 68 61 74 20 73 74 61 | 72 74 73 20 77 69 74 68 |that sta|rts with|
|00003540| 20 74 68 65 20 70 61 72 | 74 69 61 6c 20 66 69 6c | the par|tial fil|
|00003550| 65 20 6e 61 6d 65 0a 74 | 68 65 6e 20 66 69 6c 6c |e name.t|hen fill|
|00003560| 20 69 6e 20 74 68 65 20 | 72 65 73 74 20 6f 66 20 | in the |rest of |
|00003570| 74 68 65 20 66 69 6c 65 | 20 6e 61 6d 65 20 69 6e |the file| name in|
|00003580| 20 74 68 65 20 69 6e 70 | 75 74 20 6c 69 6e 65 2e | the inp|ut line.|
|00003590| 20 49 66 20 6d 6f 72 65 | 20 74 68 61 6e 0a 6f 6e | If more| than.on|
|000035a0| 65 20 66 69 6c 65 20 73 | 74 61 72 74 73 20 77 69 |e file s|tarts wi|
|000035b0| 74 68 20 74 68 65 20 70 | 61 72 74 69 61 6c 20 66 |th the p|artial f|
|000035c0| 69 6c 65 20 6e 61 6d 65 | 20 66 69 6c 6c 20 69 6e |ile name| fill in|
|000035d0| 20 74 68 65 20 6c 6f 6e | 67 65 73 74 20 63 6f 6d | the lon|gest com|
|000035e0| 6d 6f 6e 0a 73 74 61 72 | 74 69 6e 67 20 73 74 72 |mon.star|ting str|
|000035f0| 69 6e 67 20 6f 66 20 74 | 68 6f 73 65 20 66 69 6c |ing of t|hose fil|
|00003600| 65 20 6e 61 6d 65 73 2e | 20 20 49 66 20 74 68 65 |e names.| If the|
|00003610| 20 70 61 74 68 20 69 73 | 20 73 70 65 63 69 66 69 | path is| specifi|
|00003620| 65 64 20 61 73 20 22 7e | 2f 22 0a 74 68 65 6e 20 |ed as "~|/".then |
|00003630| 6c 6f 6f 6b 20 69 6e 20 | 74 68 65 20 64 69 72 65 |look in |the dire|
|00003640| 63 74 6f 72 79 20 6e 61 | 6d 65 64 20 62 79 20 24 |ctory na|med by $|
|00003650| 48 4f 4d 45 2e 0a 58 0a | 49 66 20 74 68 65 20 70 |HOME..X.|If the p|
|00003660| 61 74 68 20 69 73 20 73 | 70 65 63 69 66 69 65 64 |ath is s|pecified|
|00003670| 20 61 73 20 22 7e 6e 61 | 6d 65 22 2c 20 77 68 65 | as "~na|me", whe|
|00003680| 72 65 20 6e 61 6d 65 20 | 69 73 20 61 20 75 73 65 |re name |is a use|
|00003690| 72 20 6c 6f 67 69 6e 20 | 6e 61 6d 65 20 6f 72 0a |r login |name or.|
|000036a0| 61 20 70 61 72 74 69 61 | 6c 20 75 73 65 72 20 6c |a partia|l user l|
|000036b0| 6f 67 69 6e 20 6e 61 6d | 65 2c 20 74 68 65 6e 20 |ogin nam|e, then |
|000036c0| 6c 6f 6f 6b 20 69 6e 20 | 74 68 65 20 75 73 65 72 |look in |the user|
|000036d0| 73 20 6c 6f 67 69 6e 20 | 64 69 72 65 63 74 6f 72 |s login |director|
|000036e0| 79 2e 20 49 66 0a 6d 6f | 72 65 20 74 68 61 6e 20 |y. If.mo|re than |
|000036f0| 6f 6e 65 20 6d 61 74 63 | 68 20 69 73 20 66 6f 75 |one matc|h is fou|
|00003700| 6e 64 20 66 6f 72 20 61 | 20 70 61 72 74 69 61 6c |nd for a| partial|
|00003710| 20 75 73 65 72 20 6e 61 | 6d 65 20 74 68 65 6e 20 | user na|me then |
|00003720| 5c 66 49 69 6c 65 5c 66 | 50 0a 77 69 6c 6c 20 62 |\fIile\f|P.will b|
|00003730| 65 65 70 2e 20 57 68 65 | 6e 20 63 6f 6d 70 6c 65 |eep. Whe|n comple|
|00003740| 74 69 6e 67 20 61 20 66 | 69 6c 65 20 6e 61 6d 65 |ting a f|ile name|
|00003750| 2c 20 61 20 70 61 72 74 | 69 61 6c 20 75 73 65 72 |, a part|ial user|
|00003760| 20 6e 61 6d 65 20 77 69 | 6c 6c 20 62 65 0a 63 6f | name wi|ll be.co|
|00003770| 6d 70 6c 65 74 65 64 20 | 61 74 20 74 68 65 20 73 |mpleted |at the s|
|00003780| 61 6d 65 20 74 69 6d 65 | 20 74 68 65 20 66 69 6c |ame time| the fil|
|00003790| 65 20 6e 61 6d 65 20 69 | 73 20 62 65 69 6e 67 20 |e name i|s being |
|000037a0| 63 6f 6d 70 6c 65 74 65 | 64 2e 0a 58 0a 49 66 20 |complete|d..X.If |
|000037b0| 79 6f 75 20 75 73 65 20 | 61 62 62 72 65 76 69 61 |you use |abbrevia|
|000037c0| 74 65 64 20 70 61 74 68 | 20 6e 61 6d 65 73 20 6c |ted path| names l|
|000037d0| 69 6b 65 20 22 2e 2f 66 | 69 6c 65 22 2c 20 22 2e |ike "./f|ile", ".|
|000037e0| 2e 2f 66 69 6c 65 22 2c | 0a 58 22 64 69 72 2f 66 |./file",|.X"dir/f|
|000037f0| 69 6c 65 22 2c 20 6f 72 | 20 22 66 69 6c 65 22 20 |ile", or| "file" |
|00003800| 5c 66 49 69 6c 65 5c 66 | 50 20 75 73 65 73 20 74 |\fIile\f|P uses t|
|00003810| 68 65 20 70 61 74 68 20 | 6e 61 6d 65 20 73 61 76 |he path |name sav|
|00003820| 65 64 20 62 79 20 74 68 | 65 20 6d 6f 73 74 0a 72 |ed by th|e most.r|
|00003830| 65 63 65 6e 74 20 5c 66 | 42 71 75 65 72 79 5f 70 |ecent \f|Bquery_p|
|00003840| 61 74 68 5c 66 50 20 63 | 6f 6d 6d 61 6e 64 20 6f |ath\fP c|ommand o|
|00003850| 72 20 74 68 65 20 76 61 | 6c 75 65 20 6f 66 20 24 |r the va|lue of $|
|00003860| 50 57 44 20 61 74 20 74 | 68 65 20 74 69 6d 65 0a |PWD at t|he time.|
|00003870| 58 5c 66 49 69 6c 65 5c | 66 70 20 77 61 73 20 73 |X\fIile\|fp was s|
|00003880| 74 61 72 74 65 64 2e 0a | 58 0a 58 2e 49 50 20 22 |tarted..|X.X.IP "|
|00003890| 5c 66 42 63 6f 6d 70 6c | 65 74 65 5f 66 69 6c 65 |\fBcompl|ete_file|
|000038a0| 5f 66 75 6c 6c 5c 66 50 | 22 20 32 30 0a 58 0a 4c |_full\fP|" 20.X.L|
|000038b0| 69 6b 65 20 5c 66 42 63 | 6f 6d 70 6c 65 74 65 5f |ike \fBc|omplete_|
|000038c0| 66 69 6c 65 5c 66 50 20 | 62 75 74 20 61 62 62 72 |file\fP |but abbr|
|000038d0| 65 76 69 61 74 69 6f 6e | 73 20 6c 69 6b 65 20 22 |eviation|s like "|
|000038e0| 7e 2f 22 20 61 72 65 20 | 72 65 70 6c 61 63 65 64 |~/" are |replaced|
|000038f0| 20 62 79 0a 74 68 65 20 | 66 75 6c 6c 20 70 61 74 | by.the |full pat|
|00003900| 68 20 74 68 61 74 20 74 | 68 65 79 20 73 74 61 6e |h that t|hey stan|
|00003910| 64 20 66 6f 72 2e 20 54 | 68 69 73 20 69 73 20 68 |d for. T|his is h|
|00003920| 61 6e 64 79 20 77 68 65 | 6e 20 79 6f 75 20 77 61 |andy whe|n you wa|
|00003930| 6e 74 20 74 6f 20 75 73 | 65 0a 61 62 62 72 65 76 |nt to us|e.abbrev|
|00003940| 69 61 74 65 64 20 70 61 | 74 68 20 6e 61 6d 65 73 |iated pa|th names|
|00003950| 20 62 75 74 20 74 68 65 | 20 70 72 6f 67 72 61 6d | but the| program|
|00003960| 20 79 6f 75 20 61 72 65 | 20 74 61 6c 6b 69 6e 67 | you are| talking|
|00003970| 20 74 6f 20 64 6f 65 73 | 6e 27 74 0a 75 6e 64 65 | to does|n't.unde|
|00003980| 72 73 74 61 6e 64 20 74 | 68 65 20 61 62 62 72 65 |rstand t|he abbre|
|00003990| 76 69 61 74 69 6f 6e 73 | 2e 0a 58 0a 52 65 61 64 |viations|..X.Read|
|000039a0| 20 74 68 65 20 64 69 73 | 63 75 73 73 69 6f 6e 20 | the dis|cussion |
|000039b0| 6f 66 20 66 69 6c 65 20 | 6e 61 6d 65 20 63 6f 6d |of file |name com|
|000039c0| 70 6c 65 74 69 6f 6e 20 | 75 6e 64 65 72 20 5c 66 |pletion |under \f|
|000039d0| 42 63 6f 6d 70 6c 65 74 | 65 5f 66 69 6c 65 5c 66 |Bcomplet|e_file\f|
|000039e0| 50 0a 66 6f 72 20 6d 6f | 72 65 20 69 6e 66 6f 72 |P.for mo|re infor|
|000039f0| 6d 61 74 69 6f 6e 2e 0a | 58 0a 58 2e 49 50 20 22 |mation..|X.X.IP "|
|00003a00| 5c 66 42 71 75 65 72 79 | 5f 70 61 74 68 5c 66 50 |\fBquery|_path\fP|
|00003a10| 22 20 32 30 0a 58 0a 58 | 5c 66 49 69 6c 65 5c 66 |" 20.X.X|\fIile\f|
|00003a20| 50 20 69 73 6e 27 74 20 | 74 68 65 20 73 68 65 6c |P isn't |the shel|
|00003a30| 6c 20 61 6e 64 20 64 6f | 65 73 6e 27 74 20 6b 6e |l and do|esn't kn|
|00003a40| 6f 77 20 77 68 61 74 20 | 74 68 65 20 63 75 72 72 |ow what |the curr|
|00003a50| 65 6e 74 20 77 6f 72 6b | 69 6e 67 0a 64 69 72 65 |ent work|ing.dire|
|00003a60| 63 74 6f 72 79 20 69 73 | 2e 20 42 75 74 2c 20 5c |ctory is|. But, \|
|00003a70| 66 49 69 6c 65 5c 66 50 | 20 74 72 69 65 73 20 74 |fIile\fP| tries t|
|00003a80| 6f 20 64 6f 20 66 69 6c | 65 20 6e 61 6d 65 20 63 |o do fil|e name c|
|00003a90| 6f 6d 70 6c 65 74 69 6f | 6e 20 61 73 20 69 66 20 |ompletio|n as if |
|00003aa0| 69 74 0a 64 69 64 2e 20 | 54 6f 20 64 6f 20 74 68 |it.did. |To do th|
|00003ab0| 69 73 20 74 61 73 6b 20 | 5c 66 49 69 6c 65 5c 66 |is task |\fIile\f|
|00003ac0| 50 20 6b 65 65 70 73 20 | 61 72 6f 75 6e 64 20 74 |P keeps |around t|
|00003ad0| 68 65 20 70 61 74 68 20 | 74 6f 20 74 68 65 20 63 |he path |to the c|
|00003ae0| 75 72 72 65 6e 74 0a 77 | 6f 72 6b 69 6e 67 20 64 |urrent.w|orking d|
|00003af0| 69 72 65 63 74 6f 72 79 | 2e 20 57 68 65 6e 20 5c |irectory|. When \|
|00003b00| 66 49 69 6c 65 5c 66 50 | 20 69 73 20 73 74 61 72 |fIile\fP| is star|
|00003b10| 74 65 64 20 75 70 20 74 | 68 69 73 20 70 61 74 68 |ted up t|his path|
|00003b20| 20 69 73 0a 69 6e 69 74 | 69 61 6c 69 7a 65 64 20 | is.init|ialized |
|00003b30| 66 72 6f 6d 20 24 50 57 | 44 2e 20 54 68 65 20 5c |from $PW|D. The \|
|00003b40| 66 42 71 75 65 72 79 5f | 70 61 74 68 5c 66 50 20 |fBquery_|path\fP |
|00003b50| 63 6f 6d 6d 61 6e 64 20 | 69 73 20 70 72 6f 76 69 |command |is provi|
|00003b60| 64 65 64 20 74 6f 0a 61 | 6c 6c 6f 77 20 75 73 65 |ded to.a|llow use|
|00003b70| 72 73 20 74 6f 20 75 70 | 64 61 74 65 20 74 68 69 |rs to up|date thi|
|00003b80| 73 20 70 61 74 68 20 61 | 74 20 61 6e 79 20 74 69 |s path a|t any ti|
|00003b90| 6d 65 2e 0a 58 0a 57 68 | 65 6e 20 5c 66 42 71 75 |me..X.Wh|en \fBqu|
|00003ba0| 65 72 79 5f 70 61 74 68 | 5c 66 50 20 69 73 20 69 |ery_path|\fP is i|
|00003bb0| 6e 76 6f 6b 65 64 20 5c | 66 49 69 6c 65 5c 66 50 |nvoked \|fIile\fP|
|00003bc0| 20 6d 61 6b 65 73 20 74 | 68 65 20 62 6c 61 74 61 | makes t|he blata|
|00003bd0| 6e 74 0a 61 73 73 75 6d | 70 74 69 6f 6e 20 74 68 |nt.assum|ption th|
|00003be0| 61 74 20 74 68 65 20 70 | 72 6f 67 72 61 6d 20 72 |at the p|rogram r|
|00003bf0| 75 6e 6e 69 6e 67 20 75 | 6e 64 65 72 20 5c 66 49 |unning u|nder \fI|
|00003c00| 69 6c 65 5c 66 50 20 69 | 73 20 61 20 73 68 65 6c |ile\fP i|s a shel|
|00003c10| 6c 20 61 6e 64 0a 73 65 | 6e 64 73 20 74 68 65 20 |l and.se|nds the |
|00003c20| 73 68 65 6c 6c 20 63 6f | 6d 6d 61 6e 64 20 22 70 |shell co|mmand "p|
|00003c30| 77 64 22 20 74 6f 20 74 | 68 61 74 20 70 72 6f 67 |wd" to t|hat prog|
|00003c40| 72 61 6d 2e 20 57 68 61 | 74 65 76 65 72 20 63 6f |ram. Wha|tever co|
|00003c50| 6d 65 73 20 62 61 63 6b | 0a 66 72 6f 6d 20 74 68 |mes back|.from th|
|00003c60| 65 20 70 72 6f 67 72 61 | 6d 20 69 73 20 61 73 73 |e progra|m is ass|
|00003c70| 75 6d 65 64 20 74 6f 20 | 74 68 65 20 70 61 74 68 |umed to |the path|
|00003c80| 20 74 6f 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 | to the |current |
|00003c90| 77 6f 72 6b 69 6e 67 0a | 64 69 72 65 63 74 6f 72 |working.|director|
|00003ca0| 79 2e 20 54 68 65 20 6e | 65 78 74 20 72 65 73 70 |y. The n|ext resp|
|00003cb0| 6f 6e 73 65 20 66 72 6f | 6d 20 74 68 65 20 70 72 |onse fro|m the pr|
|00003cc0| 6f 67 72 61 6d 20 69 73 | 20 61 73 73 75 6d 65 64 |ogram is| assumed|
|00003cd0| 20 74 6f 20 62 65 20 61 | 20 6e 65 77 0a 70 72 6f | to be a| new.pro|
|00003ce0| 6d 70 74 20 66 72 6f 6d | 20 74 68 65 20 73 68 65 |mpt from| the she|
|00003cf0| 6c 6c 20 61 6e 64 20 69 | 73 20 69 67 6e 6f 72 65 |ll and i|s ignore|
|00003d00| 64 2e 0a 58 0a 58 2e 49 | 50 20 22 5c 66 42 73 68 |d..X.X.I|P "\fBsh|
|00003d10| 6f 77 5f 66 69 6c 65 73 | 5c 66 50 22 20 32 30 0a |ow_files|\fP" 20.|
|00003d20| 58 20 0a 54 61 6b 65 20 | 74 68 65 20 77 6f 72 64 |X .Take |the word|
|00003d30| 20 63 75 72 72 65 6e 74 | 6c 79 20 75 6e 64 65 72 | current|ly under|
|00003d40| 2c 20 6f 72 20 69 6d 6d | 65 64 69 61 74 65 6c 79 |, or imm|ediately|
|00003d50| 20 74 6f 20 74 68 65 20 | 6c 65 66 74 20 6f 66 2c | to the |left of,|
|00003d60| 20 74 68 65 20 63 75 72 | 73 6f 72 20 61 6e 64 20 | the cur|sor and |
|00003d70| 0a 74 72 65 61 74 20 69 | 74 20 61 73 20 61 20 70 |.treat i|t as a p|
|00003d80| 61 72 74 69 61 6c 20 66 | 69 6c 65 20 6e 61 6d 65 |artial f|ile name|
|00003d90| 20 61 6e 64 20 70 61 74 | 68 20 6e 61 6d 65 2e 20 | and pat|h name. |
|00003da0| 4c 69 73 74 20 61 6c 6c | 20 74 68 65 20 66 69 6c |List all| the fil|
|00003db0| 65 73 20 74 68 61 74 20 | 73 74 61 72 74 0a 77 69 |es that |start.wi|
|00003dc0| 74 68 20 74 68 65 20 70 | 61 72 74 69 61 6c 20 66 |th the p|artial f|
|00003dd0| 69 6c 65 20 6e 61 6d 65 | 20 69 6e 20 74 68 65 20 |ile name| in the |
|00003de0| 64 69 72 65 63 74 6f 72 | 79 20 73 70 65 63 69 66 |director|y specif|
|00003df0| 69 65 64 20 62 79 20 74 | 68 65 20 70 61 74 68 20 |ied by t|he path |
|00003e00| 6e 61 6d 65 2e 0a 58 0a | 52 65 61 64 20 74 68 65 |name..X.|Read the|
|00003e10| 20 64 69 73 63 75 73 73 | 69 6f 6e 20 6f 66 20 66 | discuss|ion of f|
|00003e20| 69 6c 65 20 6e 61 6d 65 | 20 63 6f 6d 70 6c 65 74 |ile name| complet|
|00003e30| 69 6f 6e 20 75 6e 64 65 | 72 20 5c 66 42 63 6f 6d |ion unde|r \fBcom|
|00003e40| 70 6c 65 74 65 5f 66 69 | 6c 65 5c 66 50 0a 66 6f |plete_fi|le\fP.fo|
|00003e50| 72 20 6d 6f 72 65 20 69 | 6e 66 6f 72 6d 61 74 69 |r more i|nformati|
|00003e60| 6f 6e 2e 0a 58 0a 58 2e | 50 50 0a 58 2e 53 48 20 |on..X.X.|PP.X.SH |
|00003e70| 53 74 72 69 6e 67 73 0a | 58 0a 49 6e 20 61 64 64 |Strings.|X.In add|
|00003e80| 69 74 69 6f 6e 20 74 6f | 20 62 65 69 6e 67 20 61 |ition to| being a|
|00003e90| 62 6c 65 20 74 6f 20 62 | 69 6e 64 20 61 20 63 68 |ble to b|ind a ch|
|00003ea0| 61 72 61 63 74 65 72 20 | 73 65 71 75 65 6e 63 65 |aracter |sequence|
|00003eb0| 20 74 6f 20 61 6e 20 61 | 63 74 69 6f 6e 20 5c 66 | to an a|ction \f|
|00003ec0| 49 69 6c 65 5c 66 50 0a | 61 6c 6c 6f 77 73 20 63 |Iile\fP.|allows c|
|00003ed0| 68 61 72 61 63 74 65 72 | 73 20 73 65 71 75 65 6e |haracter|s sequen|
|00003ee0| 63 65 73 20 74 6f 20 62 | 65 20 62 6f 75 6e 64 20 |ces to b|e bound |
|00003ef0| 74 6f 20 73 74 72 69 6e | 67 73 20 6f 66 20 63 68 |to strin|gs of ch|
|00003f00| 61 72 61 63 74 65 72 73 | 2e 20 57 68 65 6e 20 61 |aracters|. When a|
|00003f10| 20 73 74 72 69 6e 67 0a | 69 73 20 69 6e 76 6f 6b | string.|is invok|
|00003f20| 65 64 20 74 68 65 20 63 | 68 61 72 61 63 74 65 72 |ed the c|haracter|
|00003f30| 73 20 69 6e 20 74 68 65 | 20 73 74 72 69 6e 67 20 |s in the| string |
|00003f40| 61 72 65 20 74 72 65 61 | 74 65 64 20 61 73 20 69 |are trea|ted as i|
|00003f50| 66 20 74 68 65 79 20 77 | 65 72 65 20 74 79 70 65 |f they w|ere type|
|00003f60| 64 0a 62 79 20 74 68 65 | 20 75 73 65 72 2e 20 46 |d.by the| user. F|
|00003f70| 6f 72 20 65 78 61 6d 70 | 6c 65 2c 20 69 66 20 74 |or examp|le, if t|
|00003f80| 68 65 20 6c 69 6e 65 3a | 0a 58 2e 45 58 20 30 0a |he line:|.X.EX 0.|
|00003f90| 58 30 5e 47 3d 72 69 6e | 67 5e 4d 61 5e 4d 62 65 |X0^G=rin|g^Ma^Mbe|
|00003fa0| 6c 6c 5e 4d 0a 58 2e 45 | 45 0a 77 61 73 20 69 6e |ll^M.X.E|E.was in|
|00003fb0| 20 79 6f 75 72 20 5c 66 | 49 2e 69 6c 65 72 63 5c | your \f|I.ilerc\|
|00003fc0| 66 50 20 66 69 6c 65 2c | 20 74 79 70 69 6e 67 20 |fP file,| typing |
|00003fd0| 63 6f 6e 74 72 6f 6c 20 | 47 20 77 6f 75 6c 64 20 |control |G would |
|00003fe0| 63 61 75 73 65 20 74 68 | 72 65 65 0a 6c 69 6e 65 |cause th|ree.line|
|00003ff0| 73 20 74 6f 20 62 65 20 | 74 79 70 65 64 20 61 73 |s to be |typed as|
|00004000| 20 69 66 20 74 68 65 20 | 75 73 65 72 20 74 79 70 | if the |user typ|
|00004010| 65 64 20 74 68 65 6d 2e | 20 55 73 69 6e 67 20 74 |ed them.| Using t|
|00004020| 68 65 20 64 65 66 61 75 | 6c 74 20 62 69 6e 64 69 |he defau|lt bindi|
|00004030| 6e 67 73 2c 0a 75 6e 6c | 65 73 73 20 74 68 65 72 |ngs,.unl|ess ther|
|00004040| 65 20 69 73 20 61 20 5e | 4a 20 6f 72 20 5e 4d 20 |e is a ^|J or ^M |
|00004050| 69 6e 20 74 68 65 20 73 | 74 72 69 6e 67 20 74 68 |in the s|tring th|
|00004060| 65 20 73 74 72 69 6e 67 | 20 77 69 6c 6c 20 62 65 |e string| will be|
|00004070| 20 69 6e 73 65 72 74 65 | 64 0a 69 6e 20 74 68 65 | inserte|d.in the|
|00004080| 20 63 75 72 72 65 6e 74 | 20 6c 69 6e 65 20 62 75 | current| line bu|
|00004090| 74 20 6e 6f 74 20 73 65 | 6e 74 20 61 6c 6f 6e 67 |t not se|nt along|
|000040a0| 20 75 6e 74 69 6c 20 74 | 68 65 20 74 68 65 20 75 | until t|he the u|
|000040b0| 73 65 72 20 61 63 74 75 | 61 6c 6c 79 0a 70 72 65 |ser actu|ally.pre|
|000040c0| 73 73 65 73 20 72 65 74 | 75 72 6e 2e 0a 58 0a 58 |sses ret|urn..X.X|
|000040d0| 2e 50 50 0a 58 2e 53 48 | 20 45 72 72 6f 72 20 4d |.PP.X.SH| Error M|
|000040e0| 65 73 73 61 67 65 73 0a | 58 2e 50 50 0a 58 0a 57 |essages.|X.PP.X.W|
|000040f0| 68 65 6e 20 5c 66 49 69 | 6c 65 5c 66 50 20 65 6e |hen \fIi|le\fP en|
|00004100| 63 6f 75 6e 74 65 72 73 | 20 65 72 72 6f 72 73 20 |counters| errors |
|00004110| 69 74 20 70 72 69 6e 74 | 73 20 61 20 6d 65 73 73 |it print|s a mess|
|00004120| 61 67 65 20 61 6e 64 20 | 74 65 72 6d 69 6e 61 74 |age and |terminat|
|00004130| 65 73 2e 0a 58 5c 66 49 | 69 6c 65 5c 66 50 20 63 |es..X\fI|ile\fP c|
|00004140| 61 6e 20 70 72 69 6e 74 | 20 73 65 76 65 72 61 6c |an print| several|
|00004150| 20 73 74 61 6e 64 61 72 | 64 20 65 72 72 6f 72 20 | standar|d error |
|00004160| 6d 65 73 73 61 67 65 2e | 20 49 74 20 63 61 6e 20 |message.| It can |
|00004170| 61 6c 73 6f 20 70 72 69 | 6e 74 0a 61 20 66 65 77 |also pri|nt.a few|
|00004180| 20 6d 65 73 73 61 67 65 | 73 20 74 68 61 74 20 61 | message|s that a|
|00004190| 72 65 20 73 70 65 63 69 | 66 69 63 20 74 6f 20 5c |re speci|fic to \|
|000041a0| 66 49 69 6c 65 5c 66 50 | 2e 0a 58 0a 58 2e 49 50 |fIile\fP|..X.X.IP|
|000041b0| 20 22 5c 66 42 69 6c 65 | 3a 20 75 6e 61 62 6c 65 | "\fBile|: unable|
|000041c0| 20 74 6f 20 61 6c 6c 6f | 63 61 74 65 20 70 74 79 | to allo|cate pty|
|000041d0| 2f 74 74 79 20 70 61 69 | 72 5c 66 50 22 20 32 30 |/tty pai|r\fP" 20|
|000041e0| 0a 58 0a 54 68 65 72 65 | 20 61 72 65 20 6e 6f 20 |.X.There| are no |
|000041f0| 66 72 65 65 20 70 74 79 | 20 64 65 76 69 63 65 73 |free pty| devices|
|00004200| 20 69 6e 20 74 68 65 20 | 73 79 73 74 65 6d 2e 20 | in the |system. |
|00004210| 59 6f 75 20 63 61 6e 20 | 65 69 74 68 65 72 20 74 |You can |either t|
|00004220| 72 79 20 61 67 61 69 6e | 20 6c 61 74 65 72 2c 0a |ry again| later,.|
|00004230| 61 6e 64 20 68 6f 70 65 | 20 73 6f 6d 65 6f 6e 65 |and hope| someone|
|00004240| 20 68 61 73 20 66 72 65 | 65 64 20 61 20 70 74 79 | has fre|ed a pty|
|00004250| 20 66 6f 72 20 79 6f 75 | 20 74 6f 20 75 73 65 2c | for you| to use,|
|00004260| 20 6f 72 20 79 6f 75 20 | 63 61 6e 20 67 72 61 62 | or you |can grab|
|00004270| 20 79 6f 75 72 0a 73 79 | 73 74 65 6d 20 6d 61 6e | your.sy|stem man|
|00004280| 61 67 65 72 20 61 6e 64 | 20 74 72 79 20 74 6f 20 |ager and| try to |
|00004290| 67 65 74 20 6d 6f 72 65 | 20 70 74 79 20 64 65 76 |get more| pty dev|
|000042a0| 69 63 65 73 20 63 6f 6e | 66 69 67 75 72 65 64 2e |ices con|figured.|
|000042b0| 0a 58 0a 58 2e 49 50 20 | 22 5c 66 42 69 6c 65 3a |.X.X.IP |"\fBile:|
|000042c0| 20 27 3d 27 20 6d 69 73 | 73 69 6e 67 20 6f 6e 20 | '=' mis|sing on |
|000042d0| 6c 69 6e 65 20 23 5c 66 | 50 22 20 32 30 0a 58 0a |line #\f|P" 20.X.|
|000042e0| 49 6e 20 61 20 63 68 61 | 72 61 63 74 65 72 20 62 |In a cha|racter b|
|000042f0| 69 6e 64 69 6e 67 20 6c | 69 6e 65 20 79 6f 75 20 |inding l|ine you |
|00004300| 6c 65 66 74 20 6f 75 74 | 20 74 68 65 20 27 3d 27 |left out| the '='|
|00004310| 20 63 68 61 72 61 63 74 | 65 72 2e 20 4f 72 2c 20 | charact|er. Or, |
|00004320| 79 6f 75 20 64 69 64 20 | 0a 73 6f 6d 65 74 68 69 |you did |.somethi|
|00004330| 6e 67 20 74 68 61 74 20 | 63 6f 6e 66 75 73 65 64 |ng that |confused|
|00004340| 20 74 68 65 20 69 6e 69 | 74 69 61 6c 69 7a 61 74 | the ini|tializat|
|00004350| 69 6f 6e 20 66 69 6c 65 | 20 72 65 61 64 65 72 20 |ion file| reader |
|00004360| 69 6e 74 6f 20 74 68 69 | 6e 6b 69 6e 67 20 74 68 |into thi|nking th|
|00004370| 65 72 65 0a 73 68 6f 75 | 6c 64 20 62 65 20 61 6e |ere.shou|ld be an|
|00004380| 20 27 3d 27 20 77 68 65 | 72 65 20 79 6f 75 20 64 | '=' whe|re you d|
|00004390| 69 64 6e 27 74 20 74 68 | 69 6e 6b 20 74 68 65 72 |idn't th|ink ther|
|000043a0| 65 20 73 68 6f 75 6c 64 | 20 62 65 20 6f 6e 65 2e |e should| be one.|
|000043b0| 0a 58 0a 58 2e 49 50 20 | 22 5c 66 42 69 6c 65 3a |.X.X.IP |"\fBile:|
|000043c0| 20 65 72 72 6f 72 20 69 | 6e 20 69 6e 69 74 69 61 | error i|n initia|
|000043d0| 6c 69 7a 61 74 69 6f 6e | 20 66 69 6c 65 20 6f 6e |lization| file on|
|000043e0| 20 6c 69 6e 65 20 23 5c | 66 50 22 20 32 30 0a 58 | line #\|fP" 20.X|
|000043f0| 0a 54 68 69 73 20 6d 65 | 61 6e 73 20 74 68 61 74 |.This me|ans that|
|00004400| 20 74 68 65 20 66 69 72 | 73 74 20 63 68 61 72 61 | the fir|st chara|
|00004410| 63 74 65 72 20 6f 66 20 | 61 20 63 68 61 72 61 63 |cter of |a charac|
|00004420| 74 65 72 20 62 69 6e 64 | 69 6e 67 20 6c 69 6e 65 |ter bind|ing line|
|00004430| 20 77 61 73 6e 27 74 0a | 61 20 6e 65 77 6c 69 6e | wasn't.|a newlin|
|00004440| 65 20 6f 72 20 61 20 27 | 30 27 2c 20 27 31 27 2c |e or a '|0', '1',|
|00004450| 20 27 32 27 2c 20 6f 72 | 20 27 33 27 2e 20 49 74 | '2', or| '3'. It|
|00004460| 20 63 6f 75 6c 64 20 61 | 6c 73 6f 20 6d 65 61 6e | could a|lso mean|
|00004470| 20 74 68 61 74 20 74 68 | 65 20 0a 69 6e 69 74 69 | that th|e .initi|
|00004480| 61 6c 69 7a 61 74 69 6f | 6e 20 66 69 6c 65 20 72 |alizatio|n file r|
|00004490| 65 61 64 65 72 20 69 73 | 20 63 6f 6e 66 75 73 65 |eader is| confuse|
|000044a0| 64 2e 0a 58 0a 58 2e 49 | 50 20 22 5c 66 42 69 6c |d..X.X.I|P "\fBil|
|000044b0| 65 3a 20 63 61 6e 27 74 | 20 66 69 6e 64 20 74 65 |e: can't| find te|
|000044c0| 72 6d 69 6e 61 6c 5c 66 | 50 22 20 32 30 0a 58 0a |rminal\f|P" 20.X.|
|000044d0| 58 5c 66 49 69 6c 65 5c | 66 50 20 63 6f 75 6c 64 |X\fIile\|fP could|
|000044e0| 20 6e 6f 74 20 66 69 6e | 64 20 61 20 74 65 72 6d | not fin|d a term|
|000044f0| 63 61 70 20 65 6e 74 72 | 79 20 66 6f 72 20 74 68 |cap entr|y for th|
|00004500| 65 20 74 65 72 6d 69 6e | 61 6c 20 6e 61 6d 65 64 |e termin|al named|
|00004510| 20 62 79 20 74 68 65 20 | 54 45 52 4d 0a 65 6e 76 | by the |TERM.env|
|00004520| 69 72 6f 6e 6d 65 6e 74 | 20 76 61 72 69 61 62 6c |ironment| variabl|
|00004530| 65 2e 20 53 69 6e 63 65 | 20 69 74 20 63 61 6e 27 |e. Since| it can'|
|00004540| 74 20 66 69 6e 64 20 69 | 74 20 5c 66 49 69 6c 65 |t find i|t \fIile|
|00004550| 5c 66 50 20 63 61 6e 27 | 74 20 66 69 67 75 72 65 |\fP can'|t figure|
|00004560| 20 6f 75 74 0a 68 6f 77 | 20 74 6f 20 75 73 65 20 | out.how| to use |
|00004570| 69 74 2e 0a 58 0a 58 2e | 49 50 20 22 5c 66 42 69 |it..X.X.|IP "\fBi|
|00004580| 6c 65 3a 20 63 61 6e 27 | 74 20 72 75 6e 20 6f 6e |le: can'|t run on|
|00004590| 20 74 65 72 6d 69 6e 61 | 6c 5c 66 50 22 20 32 30 | termina|l\fP" 20|
|000045a0| 0a 58 0a 54 68 65 20 74 | 65 72 6d 69 6e 61 6c 20 |.X.The t|erminal |
|000045b0| 6e 61 6d 65 64 20 69 6e | 20 79 6f 75 72 20 54 45 |named in| your TE|
|000045c0| 52 4d 20 65 6e 76 69 72 | 6f 6e 6d 65 6e 74 20 76 |RM envir|onment v|
|000045d0| 61 72 69 61 62 6c 65 20 | 64 6f 65 73 6e 27 74 20 |ariable |doesn't |
|000045e0| 73 75 70 70 6f 72 74 0a | 74 68 65 20 63 61 70 61 |support.|the capa|
|000045f0| 62 69 6c 69 74 69 65 73 | 20 5c 66 49 69 6c 65 5c |bilities| \fIile\|
|00004600| 66 50 20 6e 65 65 64 73 | 20 74 6f 20 72 75 6e 2e |fP needs| to run.|
|00004610| 20 53 6f 20 5c 66 49 69 | 6c 65 5c 66 50 20 64 6f | So \fIi|le\fP do|
|00004620| 65 73 6e 27 74 20 65 76 | 65 6e 20 74 72 79 2e 0a |esn't ev|en try..|
|00004630| 58 0a 58 2e 50 50 0a 58 | 2e 53 48 20 42 55 47 53 |X.X.PP.X|.SH BUGS|
|00004640| 0a 58 2e 50 50 0a 58 5c | 66 49 69 6c 65 5c 66 50 |.X.PP.X\|fIile\fP|
|00004650| 20 63 68 61 6e 67 65 73 | 20 74 68 65 20 69 6e 70 | changes| the inp|
|00004660| 75 74 20 6d 6f 64 65 20 | 6f 6e 20 74 68 65 20 63 |ut mode |on the c|
|00004670| 6f 6e 74 72 6f 6c 6c 69 | 6e 67 20 74 65 72 6d 69 |ontrolli|ng termi|
|00004680| 6e 61 6c 20 74 6f 20 52 | 41 57 2e 20 54 68 69 73 |nal to R|AW. This|
|00004690| 0a 63 6f 6e 66 75 73 65 | 73 20 78 74 65 72 6d 2e |.confuse|s xterm.|
|000046a0| 20 49 74 20 69 73 20 61 | 20 67 6f 6f 64 20 69 64 | It is a| good id|
|000046b0| 65 61 20 74 6f 20 69 6e | 63 6c 75 64 65 20 74 68 |ea to in|clude th|
|000046c0| 65 20 6c 69 6e 65 3a 0a | 58 2e 45 58 20 30 0a 73 |e line:.|X.EX 0.s|
|000046d0| 74 74 79 20 63 6f 6f 6b | 65 64 20 2d 6e 6c 20 65 |tty cook|ed -nl e|
|000046e0| 63 68 6f 20 74 61 62 73 | 20 63 72 74 20 64 65 63 |cho tabs| crt dec|
|000046f0| 63 74 6c 71 20 2d 6c 69 | 74 6f 75 74 0a 58 2e 45 |ctlq -li|tout.X.E|
|00004700| 45 0a 69 6e 20 79 6f 75 | 72 20 2e 63 73 68 72 63 |E.in you|r .cshrc|
|00004710| 20 66 69 6c 65 20 77 68 | 65 6e 20 75 73 69 6e 67 | file wh|en using|
|00004720| 20 78 74 65 72 6d 2e 20 | 4f 74 68 65 72 77 69 73 | xterm. |Otherwis|
|00004730| 65 20 79 6f 75 72 20 6e | 65 77 20 78 74 65 72 6d |e your n|ew xterm|
|00004740| 20 77 69 6e 64 6f 77 73 | 0a 63 6f 6d 65 20 75 70 | windows|.come up|
|00004750| 20 69 6e 20 61 6e 20 75 | 6e 75 73 61 62 6c 65 20 | in an u|nusable |
|00004760| 73 74 61 74 65 2e 0a 58 | 2e 50 50 0a 58 5c 66 49 |state..X|.PP.X\fI|
|00004770| 69 6c 65 5c 66 50 20 72 | 65 71 75 69 72 65 73 20 |ile\fP r|equires |
|00004780| 61 20 74 65 72 6d 69 6e | 61 6c 20 74 68 61 74 20 |a termin|al that |
|00004790| 73 75 70 70 6f 72 74 73 | 20 74 68 65 20 74 65 72 |supports| the ter|
|000047a0| 6d 63 61 70 20 6c 65 2c | 20 63 65 2c 20 62 6c 2c |mcap le,| ce, bl,|
|000047b0| 20 0a 6e 6c 2c 20 61 6e | 64 20 63 72 20 63 61 70 | .nl, an|d cr cap|
|000047c0| 61 62 69 6c 69 74 69 65 | 73 2e 20 49 66 20 79 6f |abilitie|s. If yo|
|000047d0| 75 72 20 74 65 72 6d 69 | 6e 61 6c 20 64 6f 65 73 |ur termi|nal does|
|000047e0| 6e 27 74 20 70 72 6f 76 | 69 64 65 20 74 68 65 73 |n't prov|ide thes|
|000047f0| 65 2c 0a 58 5c 66 49 69 | 6c 65 5c 66 50 20 77 69 |e,.X\fIi|le\fP wi|
|00004800| 6c 6c 20 72 65 66 75 73 | 65 20 74 6f 20 72 75 6e |ll refus|e to run|
|00004810| 20 6f 6e 20 79 6f 75 72 | 20 74 65 72 6d 69 6e 61 | on your| termina|
|00004820| 6c 2e 0a 58 2e 50 50 0a | 41 20 6d 69 73 73 70 65 |l..X.PP.|A misspe|
|00004830| 6c 6c 65 64 20 61 63 74 | 69 6f 6e 20 6e 61 6d 65 |lled act|ion name|
|00004840| 20 69 6e 20 61 6e 20 5c | 66 49 69 6c 65 72 63 5c | in an \|fIilerc\|
|00004850| 66 50 20 77 69 6c 6c 20 | 62 65 20 74 72 65 61 74 |fP will |be treat|
|00004860| 65 64 20 61 73 20 61 20 | 73 74 72 69 6e 67 2e 0a |ed as a |string..|
|00004870| 54 68 69 73 20 6d 65 61 | 6e 73 20 74 68 61 74 20 |This mea|ns that |
|00004880| 74 79 70 69 6e 67 20 74 | 68 65 20 73 65 71 75 65 |typing t|he seque|
|00004890| 6e 63 65 20 6f 66 20 63 | 68 61 72 61 63 74 65 72 |nce of c|haracter|
|000048a0| 73 20 74 68 61 74 20 73 | 68 6f 75 6c 64 0a 69 6e |s that s|hould.in|
|000048b0| 76 6f 6b 65 20 74 68 65 | 20 61 63 74 69 6f 6e 20 |voke the| action |
|000048c0| 77 69 6c 6c 20 61 63 74 | 75 61 6c 6c 79 20 63 61 |will act|ually ca|
|000048d0| 75 73 65 20 74 68 65 20 | 6d 69 73 73 70 65 6c 6c |use the |misspell|
|000048e0| 65 64 20 6e 61 6d 65 20 | 74 6f 20 62 65 20 69 6e |ed name |to be in|
|000048f0| 73 65 72 74 65 64 0a 69 | 6e 20 74 68 65 20 69 6e |serted.i|n the in|
|00004900| 70 75 74 20 6c 69 6e 65 | 2e 20 0a 58 2e 50 50 0a |put line|. .X.PP.|
|00004910| 58 2e 53 48 20 46 49 4c | 45 53 0a 58 2e 50 50 0a |X.SH FIL|ES.X.PP.|
|00004920| 58 20 24 48 4f 4d 45 2f | 2e 69 6c 65 72 63 0a 58 |X $HOME/|.ilerc.X|
|00004930| 20 2e 2f 2e 69 6c 65 72 | 63 0a 58 2e 50 50 20 0a | ./.iler|c.X.PP .|
|00004940| 58 2e 53 48 20 53 45 45 | 20 41 4c 53 4f 0a 58 2e |X.SH SEE| ALSO.X.|
|00004950| 50 50 0a 73 74 74 79 28 | 31 29 2c 20 78 74 65 72 |PP.stty(|1), xter|
|00004960| 6d 28 31 29 2c 20 63 73 | 68 28 31 29 2c 20 74 65 |m(1), cs|h(1), te|
|00004970| 72 6d 63 61 70 28 35 29 | 0a 58 0a 58 2e 53 48 20 |rmcap(5)|.X.X.SH |
|00004980| 43 4f 50 59 52 49 47 48 | 54 0a 58 2e 63 65 20 34 |COPYRIGH|T.X.ce 4|
|00004990| 0a 43 4f 50 59 52 49 47 | 48 54 20 31 39 38 38 0a |.COPYRIG|HT 1988.|
|000049a0| 58 45 76 61 6e 73 20 26 | 20 53 75 74 68 65 72 6c |XEvans &| Sutherl|
|000049b0| 61 6e 64 20 43 6f 6d 70 | 75 74 65 72 20 43 6f 72 |and Comp|uter Cor|
|000049c0| 70 6f 72 61 74 69 6f 6e | 0a 53 61 6c 74 20 4c 61 |poration|.Salt La|
|000049d0| 6b 65 20 43 69 74 79 2c | 20 55 74 61 68 0a 41 6c |ke City,| Utah.Al|
|000049e0| 6c 20 52 69 67 68 74 73 | 20 52 65 73 65 72 76 65 |l Rights| Reserve|
|000049f0| 64 2e 0a 58 2e 4c 50 0a | 54 48 45 20 49 4e 46 4f |d..X.LP.|THE INFO|
|00004a00| 52 4d 41 54 49 4f 4e 20 | 49 4e 20 54 48 49 53 20 |RMATION |IN THIS |
|00004a10| 53 4f 46 54 57 41 52 45 | 20 49 53 20 53 55 42 4a |SOFTWARE| IS SUBJ|
|00004a20| 45 43 54 20 54 4f 20 43 | 48 41 4e 47 45 20 57 49 |ECT TO C|HANGE WI|
|00004a30| 54 48 4f 55 54 20 4e 4f | 54 49 43 45 20 41 4e 44 |THOUT NO|TICE AND|
|00004a40| 0a 53 48 4f 55 4c 44 20 | 4e 4f 54 20 42 45 20 43 |.SHOULD |NOT BE C|
|00004a50| 4f 4e 53 54 52 55 45 44 | 20 41 53 20 41 20 43 4f |ONSTRUED| AS A CO|
|00004a60| 4d 4d 49 54 4d 45 4e 54 | 20 42 59 20 45 56 41 4e |MMITMENT| BY EVAN|
|00004a70| 53 20 26 20 53 55 54 48 | 45 52 4c 41 4e 44 2e 0a |S & SUTH|ERLAND..|
|00004a80| 58 45 56 41 4e 53 20 26 | 20 53 55 54 48 45 52 4c |XEVANS &| SUTHERL|
|00004a90| 41 4e 44 20 20 4d 41 4b | 45 53 20 4e 4f 20 52 45 |AND MAK|ES NO RE|
|00004aa0| 50 52 45 53 45 4e 54 41 | 54 49 4f 4e 53 20 41 42 |PRESENTA|TIONS AB|
|00004ab0| 4f 55 54 20 54 48 45 20 | 53 55 49 54 41 42 49 4c |OUT THE |SUITABIL|
|00004ac0| 49 54 59 0a 4f 46 20 54 | 48 49 53 20 53 4f 46 54 |ITY.OF T|HIS SOFT|
|00004ad0| 57 41 52 45 20 46 4f 52 | 0a 41 4e 59 20 50 55 52 |WARE FOR|.ANY PUR|
|00004ae0| 50 4f 53 45 2e 20 20 49 | 54 20 49 53 20 53 55 50 |POSE. I|T IS SUP|
|00004af0| 50 4c 49 45 44 20 22 41 | 53 20 49 53 22 20 57 49 |PLIED "A|S IS" WI|
|00004b00| 54 48 4f 55 54 20 45 58 | 50 52 45 53 53 20 4f 52 |THOUT EX|PRESS OR|
|00004b10| 20 49 4d 50 4c 49 45 44 | 20 57 41 52 52 41 4e 54 | IMPLIED| WARRANT|
|00004b20| 59 2e 0a 58 2e 4c 50 0a | 49 46 20 54 48 45 20 53 |Y..X.LP.|IF THE S|
|00004b30| 4f 46 54 57 41 52 45 20 | 49 53 20 4d 4f 44 49 46 |OFTWARE |IS MODIF|
|00004b40| 49 45 44 20 49 4e 20 41 | 20 4d 41 4e 4e 45 52 20 |IED IN A| MANNER |
|00004b50| 43 52 45 41 54 49 4e 47 | 20 44 45 52 49 56 41 54 |CREATING| DERIVAT|
|00004b60| 49 56 45 20 43 4f 50 59 | 52 49 47 48 54 20 52 49 |IVE COPY|RIGHT RI|
|00004b70| 47 48 54 53 2c 0a 41 50 | 50 52 4f 50 52 49 41 54 |GHTS,.AP|PROPRIAT|
|00004b80| 45 20 4c 45 47 45 4e 44 | 53 20 4d 41 59 20 42 45 |E LEGEND|S MAY BE|
|00004b90| 20 50 4c 41 43 45 44 20 | 4f 4e 20 54 48 45 20 44 | PLACED |ON THE D|
|00004ba0| 45 52 49 56 41 54 49 56 | 45 20 57 4f 52 4b 20 49 |ERIVATIV|E WORK I|
|00004bb0| 4e 20 41 44 44 49 54 49 | 4f 4e 20 54 4f 20 54 48 |N ADDITI|ON TO TH|
|00004bc0| 41 54 0a 53 45 54 20 46 | 4f 52 54 48 20 41 42 4f |AT.SET F|ORTH ABO|
|00004bd0| 56 45 2e 0a 58 2e 4c 50 | 0a 50 65 72 6d 69 73 73 |VE..X.LP|.Permiss|
|00004be0| 69 6f 6e 20 74 6f 20 75 | 73 65 2c 20 63 6f 70 79 |ion to u|se, copy|
|00004bf0| 2c 20 6d 6f 64 69 66 79 | 2c 20 61 6e 64 20 64 69 |, modify|, and di|
|00004c00| 73 74 72 69 62 75 74 65 | 20 74 68 69 73 20 73 6f |stribute| this so|
|00004c10| 66 74 77 61 72 65 20 61 | 6e 64 20 69 74 73 0a 64 |ftware a|nd its.d|
|00004c20| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 20 66 6f 72 |ocumenta|tion for|
|00004c30| 20 61 6e 79 20 70 75 72 | 70 6f 73 65 20 61 6e 64 | any pur|pose and|
|00004c40| 20 77 69 74 68 6f 75 74 | 20 66 65 65 20 69 73 20 | without| fee is |
|00004c50| 68 65 72 65 62 79 20 67 | 72 61 6e 74 65 64 2c 20 |hereby g|ranted, |
|00004c60| 70 72 6f 76 69 64 65 64 | 0a 74 68 61 74 20 74 68 |provided|.that th|
|00004c70| 65 20 61 62 6f 76 65 20 | 63 6f 70 79 72 69 67 68 |e above |copyrigh|
|00004c80| 74 20 6e 6f 74 69 63 65 | 20 61 70 70 65 61 72 20 |t notice| appear |
|00004c90| 69 6e 20 61 6c 6c 20 63 | 6f 70 69 65 73 20 61 6e |in all c|opies an|
|00004ca0| 64 20 74 68 61 74 20 62 | 6f 74 68 20 74 68 65 0a |d that b|oth the.|
|00004cb0| 63 6f 70 79 72 69 67 68 | 74 20 6e 6f 74 69 63 65 |copyrigh|t notice|
|00004cc0| 20 61 6e 64 20 74 68 69 | 73 20 70 65 72 6d 69 73 | and thi|s permis|
|00004cd0| 73 69 6f 6e 20 6e 6f 74 | 69 63 65 20 61 70 70 65 |sion not|ice appe|
|00004ce0| 61 72 20 69 6e 20 73 75 | 70 70 6f 72 74 69 6e 67 |ar in su|pporting|
|00004cf0| 20 64 6f 63 75 6d 65 6e | 74 61 74 69 6f 6e 2c 0a | documen|tation,.|
|00004d00| 61 6e 64 20 74 68 61 74 | 20 74 68 65 20 6e 61 6d |and that| the nam|
|00004d10| 65 20 6f 66 20 45 76 61 | 6e 73 20 26 20 53 75 74 |e of Eva|ns & Sut|
|00004d20| 68 65 72 6c 61 6e 64 20 | 6e 6f 74 20 62 65 20 75 |herland |not be u|
|00004d30| 73 65 64 20 69 6e 20 61 | 64 76 65 72 74 69 73 69 |sed in a|dvertisi|
|00004d40| 6e 67 0a 6f 72 20 70 75 | 62 6c 69 63 69 74 79 20 |ng.or pu|blicity |
|00004d50| 70 65 72 74 61 69 6e 69 | 6e 67 20 74 6f 20 64 69 |pertaini|ng to di|
|00004d60| 73 74 72 69 62 75 74 69 | 6f 6e 20 6f 66 20 74 68 |stributi|on of th|
|00004d70| 65 20 73 6f 66 74 77 61 | 72 65 20 77 69 74 68 6f |e softwa|re witho|
|00004d80| 75 74 20 73 70 65 63 69 | 66 69 63 2c 20 0a 77 72 |ut speci|fic, .wr|
|00004d90| 69 74 74 65 6e 20 70 72 | 69 6f 72 20 70 65 72 6d |itten pr|ior perm|
|00004da0| 69 73 73 69 6f 6e 2e 0a | 58 2e 53 48 20 41 55 54 |ission..|X.SH AUT|
|00004db0| 48 4f 52 0a 52 6f 62 65 | 72 74 20 43 2e 20 50 65 |HOR.Robe|rt C. Pe|
|00004dc0| 6e 64 6c 65 74 6f 6e 20 | 3c 62 6f 62 70 40 68 61 |ndleton |<bobp@ha|
|00004dd0| 6c 2e 63 6f 6d 3e 0a 58 | 2e 4c 50 0a 58 0a 45 4e |l.com>.X|.LP.X.EN|
|00004de0| 44 5f 4f 46 5f 46 49 4c | 45 0a 69 66 20 74 65 73 |D_OF_FIL|E.if tes|
|00004df0| 74 20 31 36 34 34 31 20 | 2d 6e 65 20 60 77 63 20 |t 16441 |-ne `wc |
|00004e00| 2d 63 20 3c 27 69 6c 65 | 2e 31 27 60 3b 20 74 68 |-c <'ile|.1'`; th|
|00004e10| 65 6e 0a 20 20 20 20 65 | 63 68 6f 20 73 68 61 72 |en. e|cho shar|
|00004e20| 3a 20 5c 22 27 69 6c 65 | 2e 31 27 5c 22 20 75 6e |: \"'ile|.1'\" un|
|00004e30| 70 61 63 6b 65 64 20 77 | 69 74 68 20 77 72 6f 6e |packed w|ith wron|
|00004e40| 67 20 73 69 7a 65 21 0a | 66 69 0a 23 20 65 6e 64 |g size!.|fi.# end|
|00004e50| 20 6f 66 20 27 69 6c 65 | 2e 31 27 0a 66 69 0a 69 | of 'ile|.1'.fi.i|
|00004e60| 66 20 74 65 73 74 20 2d | 66 20 27 69 6c 65 2e 63 |f test -|f 'ile.c|
|00004e70| 27 20 2d 61 20 22 24 7b | 31 7d 22 20 21 3d 20 22 |' -a "${|1}" != "|
|00004e80| 2d 63 22 20 3b 20 74 68 | 65 6e 20 0a 20 20 65 63 |-c" ; th|en . ec|
|00004e90| 68 6f 20 73 68 61 72 3a | 20 57 69 6c 6c 20 6e 6f |ho shar:| Will no|
|00004ea0| 74 20 63 6c 6f 62 62 65 | 72 20 65 78 69 73 74 69 |t clobbe|r existi|
|00004eb0| 6e 67 20 66 69 6c 65 20 | 5c 22 27 69 6c 65 2e 63 |ng file |\"'ile.c|
|00004ec0| 27 5c 22 0a 65 6c 73 65 | 0a 65 63 68 6f 20 73 68 |'\".else|.echo sh|
|00004ed0| 61 72 3a 20 45 78 74 72 | 61 63 74 69 6e 67 20 5c |ar: Extr|acting \|
|00004ee0| 22 27 69 6c 65 2e 63 27 | 5c 22 20 5c 28 36 30 33 |"'ile.c'|\" \(603|
|00004ef0| 36 37 20 63 68 61 72 61 | 63 74 65 72 73 5c 29 0a |67 chara|cters\).|
|00004f00| 73 65 64 20 22 73 2f 5e | 58 2f 2f 22 20 3e 27 69 |sed "s/^|X//" >'i|
|00004f10| 6c 65 2e 63 27 20 3c 3c | 27 45 4e 44 5f 4f 46 5f |le.c' <<|'END_OF_|
|00004f20| 46 49 4c 45 27 0a 58 2f | 2a 0a 58 20 20 20 20 20 |FILE'.X/|*.X |
|00004f30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004f40| 20 20 20 20 20 43 4f 50 | 59 52 49 47 48 54 20 31 | COP|YRIGHT 1|
|00004f50| 39 38 38 0a 58 20 20 20 | 20 20 20 20 20 20 20 20 |988.X | |
|00004f60| 20 20 20 45 76 61 6e 73 | 20 26 20 53 75 74 68 65 | Evans| & Suthe|
|00004f70| 72 6c 61 6e 64 20 43 6f | 6d 70 75 74 65 72 20 43 |rland Co|mputer C|
|00004f80| 6f 72 70 6f 72 61 74 69 | 6f 6e 0a 58 20 20 20 20 |orporati|on.X |
|00004f90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004fa0| 20 20 20 20 53 61 6c 74 | 20 4c 61 6b 65 20 43 69 | Salt| Lake Ci|
|00004fb0| 74 79 2c 20 55 74 61 68 | 0a 58 20 20 20 20 20 20 |ty, Utah|.X |
|00004fc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004fd0| 20 20 41 6c 6c 20 52 69 | 67 68 74 73 20 52 65 73 | All Ri|ghts Res|
|00004fe0| 65 72 76 65 64 2e 0a 58 | 0a 58 20 20 20 20 20 54 |erved..X|.X T|
|00004ff0| 48 45 20 49 4e 46 4f 52 | 4d 41 54 49 4f 4e 20 20 |HE INFOR|MATION |
|00005000| 49 4e 20 20 54 48 49 53 | 20 20 53 4f 46 54 57 41 |IN THIS| SOFTWA|
|00005010| 52 45 20 20 49 53 20 20 | 53 55 42 4a 45 43 54 20 |RE IS |SUBJECT |
|00005020| 20 54 4f 20 20 43 48 41 | 4e 47 45 0a 58 20 20 20 | TO CHA|NGE.X |
|00005030| 20 20 57 49 54 48 4f 55 | 54 20 20 4e 4f 54 49 43 | WITHOU|T NOTIC|
|00005040| 45 20 20 41 4e 44 20 53 | 48 4f 55 4c 44 20 4e 4f |E AND S|HOULD NO|
|00005050| 54 20 42 45 20 43 4f 4e | 53 54 52 55 45 44 20 41 |T BE CON|STRUED A|
|00005060| 53 20 41 20 43 4f 4d 4d | 49 54 4d 45 4e 54 0a 58 |S A COMM|ITMENT.X|
|00005070| 20 20 20 20 20 42 59 20 | 20 45 56 41 4e 53 20 20 | BY | EVANS |
|00005080| 26 20 20 53 55 54 48 45 | 52 4c 41 4e 44 2e 20 20 |& SUTHE|RLAND. |
|00005090| 20 45 56 41 4e 53 20 20 | 26 20 20 53 55 54 48 45 | EVANS |& SUTHE|
|000050a0| 52 4c 41 4e 44 20 20 20 | 4d 41 4b 45 53 20 20 4e |RLAND |MAKES N|
|000050b0| 4f 0a 58 20 20 20 20 20 | 52 45 50 52 45 53 45 4e |O.X |REPRESEN|
|000050c0| 54 41 54 49 4f 4e 53 20 | 20 41 42 4f 55 54 20 20 |TATIONS | ABOUT |
|000050d0| 54 48 45 20 53 55 49 54 | 41 42 49 4c 49 54 59 20 |THE SUIT|ABILITY |
|000050e0| 4f 46 20 54 48 49 53 20 | 53 4f 46 54 57 41 52 45 |OF THIS |SOFTWARE|
|000050f0| 20 46 4f 52 0a 58 20 20 | 20 20 20 41 4e 59 20 50 | FOR.X | ANY P|
|00005100| 55 52 50 4f 53 45 2e 20 | 20 49 54 20 49 53 20 53 |URPOSE. | IT IS S|
|00005110| 55 50 50 4c 49 45 44 20 | 20 22 41 53 20 20 49 53 |UPPLIED | "AS IS|
|00005120| 22 20 20 57 49 54 48 4f | 55 54 20 20 45 58 50 52 |" WITHO|UT EXPR|
|00005130| 45 53 53 20 20 4f 52 0a | 58 20 20 20 20 20 49 4d |ESS OR.|X IM|
|00005140| 50 4c 49 45 44 20 57 41 | 52 52 41 4e 54 59 2e 0a |PLIED WA|RRANTY..|
|00005150| 58 0a 58 20 20 20 20 20 | 49 46 20 54 48 45 20 53 |X.X |IF THE S|
|00005160| 4f 46 54 57 41 52 45 20 | 49 53 20 4d 4f 44 49 46 |OFTWARE |IS MODIF|
|00005170| 49 45 44 20 49 4e 20 41 | 20 4d 41 4e 4e 45 52 20 |IED IN A| MANNER |
|00005180| 43 52 45 41 54 49 4e 47 | 20 20 44 45 52 49 56 41 |CREATING| DERIVA|
|00005190| 54 49 56 45 0a 58 20 20 | 20 20 20 43 4f 50 59 52 |TIVE.X | COPYR|
|000051a0| 49 47 48 54 20 20 52 49 | 47 48 54 53 2c 20 20 41 |IGHT RI|GHTS, A|
|000051b0| 50 50 52 4f 50 52 49 41 | 54 45 20 4c 45 47 45 4e |PPROPRIA|TE LEGEN|
|000051c0| 44 53 20 4d 41 59 20 42 | 45 20 50 4c 41 43 45 44 |DS MAY B|E PLACED|
|000051d0| 20 4f 4e 20 54 48 45 0a | 58 20 20 20 20 20 44 45 | ON THE.|X DE|
|000051e0| 52 49 56 41 54 49 56 45 | 20 57 4f 52 4b 20 49 4e |RIVATIVE| WORK IN|
|000051f0| 20 41 44 44 49 54 49 4f | 4e 20 54 4f 20 54 48 41 | ADDITIO|N TO THA|
|00005200| 54 20 53 45 54 20 46 4f | 52 54 48 20 41 42 4f 56 |T SET FO|RTH ABOV|
|00005210| 45 2e 0a 58 0a 58 20 20 | 20 20 20 50 65 72 6d 69 |E..X.X | Permi|
|00005220| 73 73 69 6f 6e 20 20 74 | 6f 20 20 75 73 65 2c 20 |ssion t|o use, |
|00005230| 20 63 6f 70 79 2c 20 20 | 6d 6f 64 69 66 79 2c 20 | copy, |modify, |
|00005240| 20 61 6e 64 20 20 64 69 | 73 74 72 69 62 75 74 65 | and di|stribute|
|00005250| 20 20 20 74 68 69 73 0a | 58 20 20 20 20 20 73 6f | this.|X so|
|00005260| 66 74 77 61 72 65 20 20 | 61 6e 64 20 20 69 74 73 |ftware |and its|
|00005270| 20 64 6f 63 75 6d 65 6e | 74 61 74 69 6f 6e 20 66 | documen|tation f|
|00005280| 6f 72 20 61 6e 79 20 70 | 75 72 70 6f 73 65 20 61 |or any p|urpose a|
|00005290| 6e 64 20 77 69 74 68 6f | 75 74 0a 58 20 20 20 20 |nd witho|ut.X |
|000052a0| 20 66 65 65 20 69 73 20 | 68 65 72 65 62 79 20 67 | fee is |hereby g|
|000052b0| 72 61 6e 74 65 64 2c 20 | 70 72 6f 76 69 64 65 64 |ranted, |provided|
|000052c0| 20 20 74 68 61 74 20 20 | 74 68 65 20 20 61 62 6f | that |the abo|
|000052d0| 76 65 20 20 63 6f 70 79 | 72 69 67 68 74 0a 58 20 |ve copy|right.X |
|000052e0| 20 20 20 20 6e 6f 74 69 | 63 65 20 20 61 70 70 65 | noti|ce appe|
|000052f0| 61 72 20 20 69 6e 20 20 | 61 6c 6c 20 20 63 6f 70 |ar in |all cop|
|00005300| 69 65 73 20 20 61 6e 64 | 20 74 68 61 74 20 62 6f |ies and| that bo|
|00005310| 74 68 20 74 68 65 20 63 | 6f 70 79 72 69 67 68 74 |th the c|opyright|
|00005320| 0a 58 20 20 20 20 20 6e | 6f 74 69 63 65 20 61 6e |.X n|otice an|
|00005330| 64 20 74 68 69 73 20 70 | 65 72 6d 69 73 73 69 6f |d this p|ermissio|
|00005340| 6e 20 6e 6f 74 69 63 65 | 20 61 70 70 65 61 72 20 |n notice| appear |
|00005350| 69 6e 20 73 75 70 70 6f | 72 74 69 6e 67 20 64 6f |in suppo|rting do|
|00005360| 63 75 2d 0a 58 20 20 20 | 20 20 6d 65 6e 74 61 74 |cu-.X | mentat|
|00005370| 69 6f 6e 2c 20 20 61 6e | 64 20 20 74 68 61 74 20 |ion, an|d that |
|00005380| 20 74 68 65 20 6e 61 6d | 65 20 6f 66 20 45 76 61 | the nam|e of Eva|
|00005390| 6e 73 20 26 20 53 75 74 | 68 65 72 6c 61 6e 64 20 |ns & Sut|herland |
|000053a0| 6e 6f 74 20 62 65 0a 58 | 20 20 20 20 20 75 73 65 |not be.X| use|
|000053b0| 64 20 69 6e 20 61 64 76 | 65 72 74 69 73 69 6e 67 |d in adv|ertising|
|000053c0| 20 6f 72 20 70 75 62 6c | 69 63 69 74 79 20 70 65 | or publ|icity pe|
|000053d0| 72 74 61 69 6e 69 6e 67 | 20 74 6f 20 20 64 69 73 |rtaining| to dis|
|000053e0| 74 72 69 62 75 74 69 6f | 6e 0a 58 20 20 20 20 20 |tributio|n.X |
|000053f0| 6f 66 20 74 68 65 20 73 | 6f 66 74 77 61 72 65 20 |of the s|oftware |
|00005400| 77 69 74 68 6f 75 74 20 | 73 70 65 63 69 66 69 63 |without |specific|
|00005410| 2c 20 77 72 69 74 74 65 | 6e 20 70 72 69 6f 72 20 |, writte|n prior |
|00005420| 70 65 72 6d 69 73 73 69 | 6f 6e 2e 0a 58 0a 57 72 |permissi|on..X.Wr|
|00005430| 69 74 74 65 6e 20 62 79 | 3a 0a 58 0a 58 20 20 20 |itten by|:.X.X |
|00005440| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005450| 20 20 20 20 20 52 6f 62 | 65 72 74 20 43 2e 20 50 | Rob|ert C. P|
|00005460| 65 6e 64 6c 65 74 6f 6e | 20 3c 62 6f 62 70 40 68 |endleton| <bobp@h|
|00005470| 61 6c 2e 63 6f 6d 3e 0a | 58 0a 47 72 61 74 65 66 |al.com>.|X.Gratef|
|00005480| 75 6c 20 61 63 6b 6e 6f | 77 6c 65 64 67 65 6d 65 |ul ackno|wledgeme|
|00005490| 6e 74 20 69 73 20 6d 61 | 64 65 20 6f 66 20 63 6f |nt is ma|de of co|
|000054a0| 64 65 20 61 6e 64 20 69 | 64 65 61 73 20 63 6f 6e |de and i|deas con|
|000054b0| 74 72 69 62 75 74 65 64 | 20 62 79 0a 58 0a 58 20 |tributed| by.X.X |
|000054c0| 09 49 61 6e 20 44 6f 6e | 61 6c 64 73 6f 6e 2c 0a |.Ian Don|aldson,.|
|000054d0| 58 20 09 44 65 70 61 72 | 74 6d 65 6e 74 20 6f 66 |X .Depar|tment of|
|000054e0| 20 43 6f 6d 6d 75 6e 69 | 63 61 74 69 6f 6e 73 20 | Communi|cations |
|000054f0| 26 20 45 6c 65 63 74 72 | 6f 6e 69 63 20 45 6e 67 |& Electr|onic Eng|
|00005500| 69 6e 65 65 72 69 6e 67 | 2c 0a 58 20 09 52 6f 79 |ineering|,.X .Roy|
|00005510| 61 6c 20 4d 65 6c 62 6f | 75 72 6e 65 20 49 6e 73 |al Melbo|urne Ins|
|00005520| 74 69 74 75 74 65 20 6f | 66 20 54 65 63 68 6e 6f |titute o|f Techno|
|00005530| 6c 6f 67 79 2c 0a 58 20 | 09 4d 65 6c 62 6f 75 72 |logy,.X |.Melbour|
|00005540| 6e 65 2c 20 41 75 73 74 | 72 61 6c 69 61 2e 0a 58 |ne, Aust|ralia..X|
|00005550| 0a 58 24 48 65 61 64 65 | 72 3a 20 69 6c 65 2e 63 |.X$Heade|r: ile.c|
|00005560| 2c 76 20 32 2e 33 20 38 | 38 2f 31 31 2f 31 31 20 |,v 2.3 8|8/11/11 |
|00005570| 31 30 3a 33 31 3a 35 36 | 20 62 70 65 6e 64 6c 65 |10:31:56| bpendle|
|00005580| 74 20 45 78 70 20 24 0a | 58 2a 2f 0a 58 0a 58 2f |t Exp $.|X*/.X.X/|
|00005590| 2a 0a 69 6c 65 20 69 73 | 20 63 6f 6d 70 69 6c 65 |*.ile is| compile|
|000055a0| 64 20 75 73 69 6e 67 3a | 0a 58 0a 63 63 20 69 6c |d using:|.X.cc il|
|000055b0| 65 2e 63 20 2d 6f 20 69 | 6c 65 20 2d 6c 74 65 72 |e.c -o i|le -lter|
|000055c0| 6d 63 61 70 0a 58 2a 2f | 0a 58 0a 58 23 69 6e 63 |mcap.X*/|.X.X#inc|
|000055d0| 6c 75 64 65 20 3c 73 74 | 64 69 6f 2e 68 3e 0a 58 |lude <st|dio.h>.X|
|000055e0| 23 69 6e 63 6c 75 64 65 | 20 3c 66 63 6e 74 6c 2e |#include| <fcntl.|
|000055f0| 68 3e 0a 58 23 69 6e 63 | 6c 75 64 65 20 3c 73 67 |h>.X#inc|lude <sg|
|00005600| 74 74 79 2e 68 3e 0a 58 | 23 69 6e 63 6c 75 64 65 |tty.h>.X|#include|
|00005610| 20 3c 73 69 67 6e 61 6c | 2e 68 3e 0a 58 23 69 6e | <signal|.h>.X#in|
|00005620| 63 6c 75 64 65 20 3c 73 | 74 72 69 6e 67 2e 68 3e |clude <s|tring.h>|
|00005630| 0a 58 23 69 6e 63 6c 75 | 64 65 20 3c 73 74 72 69 |.X#inclu|de <stri|
|00005640| 6e 67 73 2e 68 3e 0a 58 | 23 69 6e 63 6c 75 64 65 |ngs.h>.X|#include|
|00005650| 20 3c 70 77 64 2e 68 3e | 0a 58 23 69 6e 63 6c 75 | <pwd.h>|.X#inclu|
|00005660| 64 65 20 3c 75 74 6d 70 | 2e 68 3e 0a 58 23 69 6e |de <utmp|.h>.X#in|
|00005670| 63 6c 75 64 65 20 3c 65 | 72 72 6e 6f 2e 68 3e 0a |clude <e|rrno.h>.|
|00005680| 58 23 69 6e 63 6c 75 64 | 65 20 3c 73 79 73 2f 69 |X#includ|e <sys/i|
|00005690| 6f 63 74 6c 2e 68 3e 0a | 58 23 69 6e 63 6c 75 64 |octl.h>.|X#includ|
|000056a0| 65 20 3c 73 79 73 2f 74 | 79 70 65 73 2e 68 3e 0a |e <sys/t|ypes.h>.|
|000056b0| 58 23 69 6e 63 6c 75 64 | 65 20 3c 73 79 73 2f 64 |X#includ|e <sys/d|
|000056c0| 69 72 2e 68 3e 0a 58 23 | 69 6e 63 6c 75 64 65 20 |ir.h>.X#|include |
|000056d0| 3c 73 79 73 2f 66 69 6c | 65 2e 68 3e 0a 58 23 69 |<sys/fil|e.h>.X#i|
|000056e0| 6e 63 6c 75 64 65 20 3c | 73 79 73 2f 74 69 6d 65 |nclude <|sys/time|
|000056f0| 2e 68 3e 0a 58 0a 58 2f | 2a 2d 2d 2d 2d 2d 2d 2d |.h>.X.X/|*-------|
|00005700| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005710| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005720| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005730| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2a 2f 0a 58 2f |--------|---*/.X/|
|00005740| 2a 0a 44 65 66 69 6e 69 | 74 69 6f 6e 73 20 6f 66 |*.Defini|tions of|
|00005750| 20 73 79 73 74 65 6d 20 | 73 74 75 66 66 2e 0a 58 | system |stuff..X|
|00005760| 2a 2f 0a 58 0a 65 78 74 | 65 72 6e 20 69 6e 74 20 |*/.X.ext|ern int |
|00005770| 65 72 72 6e 6f 3b 0a 58 | 0a 6c 6f 6e 67 20 6c 73 |errno;.X|.long ls|
|00005780| 65 65 6b 28 29 3b 0a 63 | 68 61 72 20 2a 6d 61 6c |eek();.c|har *mal|
|00005790| 6c 6f 63 28 29 3b 0a 63 | 68 61 72 20 2a 72 65 61 |loc();.c|har *rea|
|000057a0| 6c 6c 6f 63 28 29 3b 0a | 74 69 6d 65 5f 74 20 74 |lloc();.|time_t t|
|000057b0| 69 6d 65 28 29 3b 0a 58 | 0a 58 2f 2a 2d 2d 2d 2d |ime();.X|.X/*----|
|000057c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000057d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000057e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000057f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2a 2f |--------|------*/|
|00005800| 0a 58 0a 58 23 64 65 66 | 69 6e 65 20 46 41 4c 53 |.X.X#def|ine FALS|
|00005810| 45 20 30 0a 58 23 64 65 | 66 69 6e 65 20 54 52 55 |E 0.X#de|fine TRU|
|00005820| 45 20 20 31 0a 58 0a 58 | 23 64 65 66 69 6e 65 20 |E 1.X.X|#define |
|00005830| 52 45 41 44 20 20 30 0a | 58 23 64 65 66 69 6e 65 |READ 0.|X#define|
|00005840| 20 57 52 49 54 45 20 31 | 0a 58 23 64 65 66 69 6e | WRITE 1|.X#defin|
|00005850| 65 20 45 52 52 4f 52 20 | 32 0a 58 0a 58 23 64 65 |e ERROR |2.X.X#de|
|00005860| 66 69 6e 65 20 42 55 46 | 46 45 52 5f 53 49 5a 45 |fine BUF|FER_SIZE|
|00005870| 20 32 35 35 0a 58 0a 58 | 23 64 65 66 69 6e 65 20 | 255.X.X|#define |
|00005880| 48 49 53 54 4f 52 59 5f | 53 49 5a 45 20 31 30 31 |HISTORY_|SIZE 101|
|00005890| 0a 58 0a 58 23 64 65 66 | 69 6e 65 20 55 53 45 52 |.X.X#def|ine USER|
|000058a0| 5f 4e 41 4d 45 5f 53 49 | 5a 45 20 38 0a 58 0a 58 |_NAME_SI|ZE 8.X.X|
|000058b0| 23 64 65 66 69 6e 65 20 | 45 4f 4c 20 28 2d 32 29 |#define |EOL (-2)|
|000058c0| 0a 58 2f 2a 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.X/*----|--------|
|000058d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000058e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000058f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005900| 2d 2d 2d 2d 2d 2d 2a 2f | 0a 58 0a 58 2f 2a 20 73 |------*/|.X.X/* s|
|00005910| 70 65 63 69 61 6c 20 63 | 68 61 72 61 63 74 65 72 |pecial c|haracter|
|00005920| 73 20 75 73 65 64 20 62 | 79 20 69 6c 65 20 2a 2f |s used b|y ile */|
|00005930| 0a 58 0a 58 23 64 65 66 | 69 6e 65 20 64 65 6c 20 |.X.X#def|ine del |
|00005940| 27 5c 31 37 37 27 0a 58 | 0a 58 23 64 65 66 69 6e |'\177'.X|.X#defin|
|00005950| 65 20 43 41 20 27 5c 31 | 27 0a 58 23 64 65 66 69 |e CA '\1|'.X#defi|
|00005960| 6e 65 20 43 42 20 27 5c | 32 27 0a 58 23 64 65 66 |ne CB '\|2'.X#def|
|00005970| 69 6e 65 20 43 43 20 27 | 5c 33 27 0a 58 23 64 65 |ine CC '|\3'.X#de|
|00005980| 66 69 6e 65 20 43 44 20 | 27 5c 34 27 0a 58 23 64 |fine CD |'\4'.X#d|
|00005990| 65 66 69 6e 65 20 43 45 | 20 27 5c 35 27 0a 58 23 |efine CE| '\5'.X#|
|000059a0| 64 65 66 69 6e 65 20 43 | 46 20 27 5c 36 27 0a 58 |define C|F '\6'.X|
|000059b0| 23 64 65 66 69 6e 65 20 | 62 65 6c 20 27 5c 37 27 |#define |bel '\7'|
|000059c0| 0a 58 23 64 65 66 69 6e | 65 20 62 73 20 27 5c 31 |.X#defin|e bs '\1|
|000059d0| 30 27 0a 58 23 64 65 66 | 69 6e 65 20 43 49 20 27 |0'.X#def|ine CI '|
|000059e0| 5c 31 31 27 0a 58 23 64 | 65 66 69 6e 65 20 6e 6c |\11'.X#d|efine nl|
|000059f0| 20 27 5c 31 32 27 0a 58 | 23 64 65 66 69 6e 65 20 | '\12'.X|#define |
|00005a00| 43 4b 20 27 5c 31 33 27 | 0a 58 23 64 65 66 69 6e |CK '\13'|.X#defin|
|00005a10| 65 20 43 4c 20 27 5c 31 | 34 27 0a 58 23 64 65 66 |e CL '\1|4'.X#def|
|00005a20| 69 6e 65 20 63 72 20 27 | 5c 31 35 27 0a 58 23 64 |ine cr '|\15'.X#d|
|00005a30| 65 66 69 6e 65 20 43 4e | 20 27 5c 31 36 27 0a 58 |efine CN| '\16'.X|
|00005a40| 23 64 65 66 69 6e 65 20 | 43 4f 20 27 5c 31 37 27 |#define |CO '\17'|
|00005a50| 0a 58 23 64 65 66 69 6e | 65 20 43 50 20 27 5c 32 |.X#defin|e CP '\2|
|00005a60| 30 27 0a 58 23 64 65 66 | 69 6e 65 20 43 51 20 27 |0'.X#def|ine CQ '|
|00005a70| 5c 32 31 27 0a 58 23 64 | 65 66 69 6e 65 20 43 52 |\21'.X#d|efine CR|
|00005a80| 20 27 5c 32 32 27 0a 58 | 23 64 65 66 69 6e 65 20 | '\22'.X|#define |
|00005a90| 43 53 20 27 5c 32 33 27 | 0a 58 23 64 65 66 69 6e |CS '\23'|.X#defin|
|00005aa0| 65 20 43 54 20 27 5c 32 | 34 27 0a 58 23 64 65 66 |e CT '\2|4'.X#def|
|00005ab0| 69 6e 65 20 43 55 20 27 | 5c 32 35 27 0a 58 23 64 |ine CU '|\25'.X#d|
|00005ac0| 65 66 69 6e 65 20 43 56 | 20 27 5c 32 36 27 0a 58 |efine CV| '\26'.X|
|00005ad0| 23 64 65 66 69 6e 65 20 | 43 57 20 27 5c 32 37 27 |#define |CW '\27'|
|00005ae0| 0a 58 23 64 65 66 69 6e | 65 20 43 58 20 27 5c 33 |.X#defin|e CX '\3|
|00005af0| 30 27 0a 58 23 64 65 66 | 69 6e 65 20 43 59 20 27 |0'.X#def|ine CY '|
|00005b00| 5c 33 31 27 0a 58 23 64 | 65 66 69 6e 65 20 43 5a |\31'.X#d|efine CZ|
|00005b10| 20 27 5c 33 32 27 0a 58 | 0a 58 23 64 65 66 69 6e | '\32'.X|.X#defin|
|00005b20| 65 20 65 73 63 20 27 5c | 33 33 27 0a 58 0a 58 2f |e esc '\|33'.X.X/|
|00005b30| 2a 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |*-------|--------|
|00005b40| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005b50| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005b60| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005b70| 2d 2d 2d 2a 2f 0a 58 2f | 2a 20 61 72 65 61 73 20 |---*/.X/|* areas |
|00005b80| 61 6e 64 20 76 61 72 61 | 69 62 6c 65 73 20 75 73 |and vara|ibles us|
|00005b90| 65 64 20 74 6f 20 67 65 | 74 20 74 65 72 6d 63 61 |ed to ge|t termca|
|00005ba0| 70 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 2a 2f |p inform|ation */|
|00005bb0| 0a 58 0a 63 68 61 72 20 | 2a 67 65 74 65 6e 76 28 |.X.char |*getenv(|
|00005bc0| 29 3b 0a 58 0a 63 68 61 | 72 20 2a 74 67 65 74 6e |);.X.cha|r *tgetn|
|00005bd0| 75 6d 28 29 3b 0a 63 68 | 61 72 20 2a 74 67 65 74 |um();.ch|ar *tget|
|00005be0| 66 6c 61 67 28 29 3b 0a | 63 68 61 72 20 2a 74 67 |flag();.|char *tg|
|00005bf0| 65 74 73 74 72 28 29 3b | 0a 58 0a 63 68 61 72 20 |etstr();|.X.char |
|00005c00| 74 65 72 6d 63 61 70 5f | 65 6e 74 72 79 5b 31 30 |termcap_|entry[10|
|00005c10| 32 34 5d 3b 09 2f 2a 20 | 74 65 72 6d 63 61 70 20 |24];./* |termcap |
|00005c20| 65 6e 74 72 79 20 66 6f | 72 20 74 68 65 20 75 73 |entry fo|r the us|
|00005c30| 65 72 73 20 74 65 72 6d | 69 6e 61 6c 20 2a 2f 0a |ers term|inal */.|
|00005c40| 63 68 61 72 20 74 65 72 | 6d 5f 73 65 71 73 5b 31 |char ter|m_seqs[1|
|00005c50| 30 32 34 5d 3b 09 09 2f | 2a 20 61 72 65 61 20 74 |024];../|* area t|
|00005c60| 6f 20 73 74 6f 72 65 20 | 63 6f 6e 74 72 6f 6c 20 |o store |control |
|00005c70| 73 65 71 75 65 6e 63 65 | 73 20 69 6e 20 2a 2f 0a |sequence|s in */.|
|00005c80| 63 68 61 72 20 2a 77 68 | 65 72 65 20 3d 20 74 65 |char *wh|ere = te|
|00005c90| 72 6d 5f 73 65 71 73 3b | 0a 58 0a 63 68 61 72 20 |rm_seqs;|.X.char |
|00005ca0| 2a 63 6c 65 3b 09 09 09 | 2f 2a 20 6d 6f 76 65 20 |*cle;...|/* move |
|00005cb0| 63 75 72 73 6f 72 20 6c | 65 66 74 20 6f 6e 65 20 |cursor l|eft one |
|00005cc0| 73 70 61 63 65 20 2a 2f | 0a 58 0a 63 68 61 72 20 |space */|.X.char |
|00005cd0| 2a 63 63 65 3b 09 09 09 | 2f 2a 20 63 6c 65 61 72 |*cce;...|/* clear|
|00005ce0| 20 74 6f 20 65 6e 64 20 | 6f 66 20 6c 69 6e 65 20 | to end |of line |
|00005cf0| 2a 2f 0a 58 0a 63 68 61 | 72 20 2a 63 62 6c 3b 09 |*/.X.cha|r *cbl;.|
|00005d00| 09 09 2f 2a 20 61 75 64 | 69 62 6c 65 20 62 65 6c |../* aud|ible bel|
|00005d10| 6c 20 2a 2f 0a 58 0a 63 | 68 61 72 20 2a 63 6e 6c |l */.X.c|har *cnl|
|00005d20| 3b 09 09 09 2f 2a 20 6e | 65 77 20 6c 69 6e 65 20 |;.../* n|ew line |
|00005d30| 63 68 61 72 61 63 74 65 | 72 20 2a 2f 0a 58 0a 63 |characte|r */.X.c|
|00005d40| 68 61 72 20 2a 63 63 72 | 3b 09 09 09 2f 2a 20 63 |har *ccr|;.../* c|
|00005d50| 61 72 72 69 61 67 65 20 | 72 65 74 75 72 6e 20 2a |arriage |return *|
|00005d60| 2f 0a 58 0a 58 2f 2a 2d | 2d 2d 2d 2d 2d 2d 2d 2d |/.X.X/*-|--------|
|00005d70| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005d80| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005d90| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005da0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2a 2f 0a 58 2f 2a 0a |--------|-*/.X/*.|
|00005db0| 54 68 65 20 76 61 6c 75 | 65 20 6f 66 20 48 4f 4d |The valu|e of HOM|
|00005dc0| 45 0a 58 2a 2f 0a 58 0a | 63 68 61 72 20 2a 68 6f |E.X*/.X.|char *ho|
|00005dd0| 6d 65 64 69 72 20 3d 20 | 4e 55 4c 4c 3b 0a 58 0a |medir = |NULL;.X.|
|00005de0| 58 2f 2a 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |X/*-----|--------|
|00005df0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005e00| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005e10| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005e20| 2d 2d 2d 2d 2d 2a 2f 0a | 58 2f 2a 0a 54 68 65 20 |-----*/.|X/*.The |
|00005e30| 63 75 72 72 65 6e 74 20 | 77 6f 72 6b 69 6e 67 20 |current |working |
|00005e40| 64 69 72 65 63 74 6f 72 | 79 20 61 73 20 73 65 74 |director|y as set|
|00005e50| 20 62 79 20 71 75 65 72 | 79 5f 70 61 74 68 2e 0a | by quer|y_path..|
|00005e60| 69 6e 69 74 69 61 6c 69 | 7a 65 64 20 74 6f 20 50 |initiali|zed to P|
|00005e70| 57 44 0a 58 2a 2f 0a 58 | 0a 63 68 61 72 20 63 75 |WD.X*/.X|.char cu|
|00005e80| 72 72 65 6e 74 64 69 72 | 5b 4d 41 58 4e 41 4d 4c |rrentdir|[MAXNAML|
|00005e90| 45 4e 20 2b 20 31 5d 20 | 3d 20 22 22 3b 0a 58 0a |EN + 1] |= "";.X.|
|00005ea0| 58 2f 2a 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |X/*-----|--------|
|00005eb0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005ec0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005ed0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005ee0| 2d 2d 2d 2d 2d 2a 2f 0a | 58 0a 58 2f 2a 20 74 74 |-----*/.|X.X/* tt|
|00005ef0| 79 20 73 74 61 74 75 73 | 20 66 6c 61 67 73 20 2a |y status| flags *|
|00005f00| 2f 0a 58 2f 2a 0a 58 20 | 20 54 68 65 20 6f 72 69 |/.X/*.X | The ori|
|00005f10| 67 69 6e 61 6c 20 74 74 | 79 20 73 74 61 74 75 73 |ginal tt|y status|
|00005f20| 20 66 6c 61 67 73 20 61 | 72 65 20 73 74 6f 72 65 | flags a|re store|
|00005f30| 64 20 73 6f 20 74 68 61 | 74 20 74 68 65 79 20 63 |d so tha|t they c|
|00005f40| 61 6e 20 62 65 0a 58 20 | 20 72 65 73 74 6f 72 65 |an be.X | restore|
|00005f50| 64 20 77 68 65 6e 20 69 | 6c 65 20 65 78 69 74 73 |d when i|le exits|
|00005f60| 2e 0a 58 2a 2f 0a 58 0a | 73 74 72 75 63 74 20 73 |..X*/.X.|struct s|
|00005f70| 67 74 74 79 62 20 74 74 | 79 5f 73 67 74 74 79 62 |gttyb tt|y_sgttyb|
|00005f80| 3b 0a 73 74 72 75 63 74 | 20 74 63 68 61 72 73 20 |;.struct| tchars |
|00005f90| 74 74 79 5f 74 63 68 61 | 72 73 3b 0a 73 74 72 75 |tty_tcha|rs;.stru|
|00005fa0| 63 74 20 6c 74 63 68 61 | 72 73 20 74 74 79 5f 6c |ct ltcha|rs tty_l|
|00005fb0| 74 63 68 61 72 73 3b 0a | 73 74 72 75 63 74 20 77 |tchars;.|struct w|
|00005fc0| 69 6e 73 69 7a 65 20 74 | 74 79 5f 77 69 6e 73 69 |insize t|ty_winsi|
|00005fd0| 7a 65 3b 0a 69 6e 74 20 | 77 69 6e 64 6f 77 63 68 |ze;.int |windowch|
|00005fe0| 61 6e 67 65 64 3b 0a 69 | 6e 74 20 74 74 79 5f 6c |anged;.i|nt tty_l|
|00005ff0| 64 69 73 63 3b 0a 69 6e | 74 20 74 74 79 5f 6d 6f |disc;.in|t tty_mo|
|00006000| 64 65 3b 0a 58 0a 58 2f | 2a 2d 2d 2d 2d 2d 2d 2d |de;.X.X/|*-------|
|00006010| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00006020| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00006030| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00006040| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2a 2f 0a 58 0a |--------|---*/.X.|
|00006050| 58 2f 2a 20 66 69 6c 65 | 20 64 65 73 63 72 69 70 |X/* file| descrip|
|00006060| 74 6f 72 73 20 66 6f 72 | 20 74 74 79 20 61 6e 64 |tors for| tty and|
|00006070| 20 70 74 79 20 2a 2f 0a | 58 0a 69 6e 74 20 6d 61 | pty */.|X.int ma|
|00006080| 73 74 65 72 5f 70 74 79 | 3b 0a 69 6e 74 20 73 6c |ster_pty|;.int sl|
|00006090| 61 76 65 5f 74 74 79 3b | 0a 58 0a 58 2f 2a 20 74 |ave_tty;|.X.X/* t|
|000060a0| 68 65 20 6e 61 6d 65 73 | 20 6f 66 20 74 68 65 20 |he names| of the |
|000060b0| 74 74 79 20 61 6e 64 20 | 70 74 79 20 6f 70 65 6e |tty and |pty open|
|000060c0| 65 64 20 62 79 20 67 65 | 74 70 74 79 20 2a 2f 0a |ed by ge|tpty */.|
|000060d0| 58 0a 63 68 61 72 20 74 | 74 79 64 65 76 5b 5d 20 |X.char t|tydev[] |
|000060e0| 3d 20 22 2f 64 65 76 2f | 74 74 79 78 78 22 3b 0a |= "/dev/|ttyxx";.|
|000060f0| 63 68 61 72 20 70 74 79 | 64 65 76 5b 5d 20 3d 20 |char pty|dev[] = |
|00006100| 22 2f 64 65 76 2f 70 74 | 79 78 78 22 3b 0a 58 0a |"/dev/pt|yxx";.X.|
|00006110| 58 2f 2a 20 70 61 74 68 | 20 61 6e 64 20 6e 61 6d |X/* path| and nam|
|00006120| 65 20 6f 66 20 74 68 65 | 20 6c 6f 63 6b 20 66 69 |e of the| lock fi|
|00006130| 6c 65 20 2a 2f 0a 58 0a | 63 68 61 72 20 6c 6f 63 |le */.X.|char loc|
|00006140| 6b 5b 5d 20 3d 20 22 2f | 74 6d 70 2f 69 6c 65 2e |k[] = "/|tmp/ile.|
|00006150| 6c 6f 63 6b 22 3b 0a 58 | 0a 58 2f 2a 2d 2d 2d 2d |lock";.X|.X/*----|
|00006160| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00006170| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00006180| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00006190| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2a 2f |--------|------*/|
|000061a0| 0a 58 2f 2a 0a 58 20 20 | 67 65 74 70 74 79 20 6f |.X/*.X |getpty o|
|000061b0| 70 65 6e 73 20 61 20 70 | 74 79 2c 20 73 74 6f 72 |pens a p|ty, stor|
|000061c0| 69 6e 67 20 66 69 6c 65 | 20 64 65 73 63 72 69 70 |ing file| descrip|
|000061d0| 74 6f 72 73 20 69 6e 20 | 70 74 79 20 61 6e 64 20 |tors in |pty and |
|000061e0| 74 74 79 2e 0a 58 20 20 | 49 74 20 74 72 79 73 20 |tty..X |It trys |
|000061f0| 70 61 69 72 73 20 69 6e | 20 6f 72 64 65 72 20 75 |pairs in| order u|
|00006200| 6e 74 69 6c 20 69 74 20 | 66 69 6e 64 73 20 61 20 |ntil it |finds a |
|00006210| 70 61 69 72 20 74 68 61 | 74 20 69 73 20 6e 6f 74 |pair tha|t is not|
|00006220| 20 69 6e 20 75 73 65 2e | 0a 58 2a 2f 0a 58 0a 67 | in use.|.X*/.X.g|
|00006230| 65 74 70 74 79 28 70 74 | 79 2c 20 74 74 79 29 0a |etpty(pt|y, tty).|
|00006240| 58 20 20 20 20 69 6e 74 | 20 2a 70 74 79 3b 0a 58 |X int| *pty;.X|
|00006250| 20 20 20 20 69 6e 74 20 | 2a 74 74 79 3b 0a 58 0a | int |*tty;.X.|
|00006260| 58 7b 0a 58 20 20 20 20 | 69 6e 74 20 64 65 76 69 |X{.X |int devi|
|00006270| 6e 64 65 78 3b 0a 58 20 | 20 20 20 69 6e 74 20 6c |ndex;.X | int l|
|00006280| 65 74 74 65 72 3b 0a 58 | 0a 58 20 20 20 20 73 74 |etter;.X|.X st|
|00006290| 61 74 69 63 20 63 68 61 | 72 20 70 74 79 63 68 61 |atic cha|r ptycha|
|000062a0| 72 31 5b 5d 20 3d 20 22 | 70 71 72 73 74 75 76 77 |r1[] = "|pqrstuvw|
|000062b0| 78 79 7a 22 3b 0a 58 20 | 20 20 20 73 74 61 74 69 |xyz";.X | stati|
|000062c0| 63 20 63 68 61 72 20 70 | 74 79 63 68 61 72 32 5b |c char p|tychar2[|
|000062d0| 5d 20 3d 20 22 30 31 32 | 33 34 35 36 37 38 39 61 |] = "012|3456789a|
|000062e0| 62 63 64 65 66 22 3b 0a | 58 0a 58 20 20 20 20 6c |bcdef";.|X.X l|
|000062f0| 65 74 74 65 72 20 3d 20 | 30 3b 0a 58 20 20 20 20 |etter = |0;.X |
|00006300| 77 68 69 6c 65 20 28 6c | 65 74 74 65 72 20 3c 20 |while (l|etter < |
|00006310| 31 31 29 0a 58 20 20 20 | 20 7b 0a 58 09 74 74 79 |11).X | {.X.tty|
|00006320| 64 65 76 5b 73 74 72 6c | 65 6e 28 74 74 79 64 65 |dev[strl|en(ttyde|
|00006330| 76 29 20 2d 20 32 5d 20 | 3d 20 70 74 79 63 68 61 |v) - 2] |= ptycha|
|00006340| 72 31 5b 6c 65 74 74 65 | 72 5d 3b 0a 58 09 70 74 |r1[lette|r];.X.pt|
|00006350| 79 64 65 76 5b 73 74 72 | 6c 65 6e 28 70 74 79 64 |ydev[str|len(ptyd|
|00006360| 65 76 29 20 2d 20 32 5d | 20 3d 20 70 74 79 63 68 |ev) - 2]| = ptych|
|00006370| 61 72 31 5b 6c 65 74 74 | 65 72 5d 3b 0a 58 09 6c |ar1[lett|er];.X.l|
|00006380| 65 74 74 65 72 2b 2b 3b | 0a 58 0a 58 09 64 65 76 |etter++;|.X.X.dev|
|00006390| 69 6e 64 65 78 20 3d 20 | 30 3b 0a 58 09 77 68 69 |index = |0;.X.whi|
|000063a0| 6c 65 20 28 64 65 76 69 | 6e 64 65 78 20 3c 20 31 |le (devi|ndex < 1|
|000063b0| 36 29 0a 58 09 7b 0a 58 | 09 20 20 20 20 74 74 79 |6).X.{.X|. tty|
|000063c0| 64 65 76 5b 73 74 72 6c | 65 6e 28 74 74 79 64 65 |dev[strl|en(ttyde|
|000063d0| 76 29 20 2d 20 31 5d 20 | 3d 20 70 74 79 63 68 61 |v) - 1] |= ptycha|
|000063e0| 72 32 5b 64 65 76 69 6e | 64 65 78 5d 3b 0a 58 09 |r2[devin|dex];.X.|
|000063f0| 20 20 20 20 70 74 79 64 | 65 76 5b 73 74 72 6c 65 | ptyd|ev[strle|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.