home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.006 / xemacs-1 / lib / xemacs-19.13 / lisp / eterm / term.elc < prev    next >
Emacs Compiled Lisp  |  1995-08-29  |  60.8 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
1% dexvert Combustion 2 Particle Library (other/combustion2ParticleLibrary) ext Unsupported
100% file Emacs/XEmacs v19 byte-compiled Lisp data default
99% file data default
55% TrID Emacs/XEmacs byte-compiled Lisp (generic) default
44% TrID Summation Document Image Information Load File default (weak)
100% xdgMime text/x-emacs-lisp default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 63 74 68 6f 6d 70 40 |piled by| cthomp@|
|00000020| 77 69 6c 6c 6f 77 2e 63 | 73 2e 75 69 75 63 2e 65 |willow.c|s.uiuc.e|
|00000030| 64 75 20 6f 6e 20 54 75 | 65 20 41 75 67 20 32 39 |du on Tu|e Aug 29|
|00000040| 20 31 34 3a 30 30 3a 33 | 30 20 31 39 39 35 0a 3b | 14:00:3|0 1995.;|
|00000050| 3b 3b 20 66 72 6f 6d 20 | 66 69 6c 65 20 2f 78 65 |;; from |file /xe|
|00000060| 6d 61 63 73 2f 78 65 6d | 61 63 73 2d 31 39 2e 31 |macs/xem|acs-19.1|
|00000070| 33 2d 72 65 6c 65 61 73 | 65 2f 65 64 69 74 6f 72 |3-releas|e/editor|
|00000080| 2f 6c 69 73 70 2f 65 74 | 65 72 6d 2f 74 65 72 6d |/lisp/et|erm/term|
|00000090| 2e 65 6c 0a 3b 3b 3b 20 | 65 6d 61 63 73 20 76 65 |.el.;;; |emacs ve|
|000000a0| 72 73 69 6f 6e 20 31 39 | 2e 31 33 20 58 45 6d 61 |rsion 19|.13 XEma|
|000000b0| 63 73 20 4c 75 63 69 64 | 2e 0a 3b 3b 3b 20 62 79 |cs Lucid|..;;; by|
|000000c0| 74 65 63 6f 6d 70 20 76 | 65 72 73 69 6f 6e 20 32 |tecomp v|ersion 2|
|000000d0| 2e 32 35 3b 20 31 2d 53 | 65 70 2d 39 34 2e 0a 3b |.25; 1-S|ep-94..;|
|000000e0| 3b 3b 20 6f 70 74 69 6d | 69 7a 61 74 69 6f 6e 20 |;; optim|ization |
|000000f0| 69 73 20 6f 6e 2e 0a 3b | 3b 3b 20 74 68 69 73 20 |is on..;|;; this |
|00000100| 66 69 6c 65 20 75 73 65 | 73 20 6f 70 63 6f 64 65 |file use|s opcode|
|00000110| 73 20 77 68 69 63 68 20 | 64 6f 20 6e 6f 74 20 65 |s which |do not e|
|00000120| 78 69 73 74 20 69 6e 20 | 45 6d 61 63 73 20 31 38 |xist in |Emacs 18|
|00000130| 2e 0a 0a 28 69 66 20 28 | 61 6e 64 20 28 62 6f 75 |...(if (|and (bou|
|00000140| 6e 64 70 20 27 65 6d 61 | 63 73 2d 76 65 72 73 69 |ndp 'ema|cs-versi|
|00000150| 6f 6e 29 0a 09 20 28 6f | 72 20 28 61 6e 64 20 28 |on).. (o|r (and (|
|00000160| 62 6f 75 6e 64 70 20 27 | 65 70 6f 63 68 3a 3a 76 |boundp '|epoch::v|
|00000170| 65 72 73 69 6f 6e 29 20 | 65 70 6f 63 68 3a 3a 76 |ersion) |epoch::v|
|00000180| 65 72 73 69 6f 6e 29 0a | 09 20 20 20 20 20 28 73 |ersion).|. (s|
|00000190| 74 72 69 6e 67 2d 6c 65 | 73 73 70 20 65 6d 61 63 |tring-le|ssp emac|
|000001a0| 73 2d 76 65 72 73 69 6f | 6e 20 22 31 39 22 29 29 |s-versio|n "19"))|
|000001b0| 29 0a 20 20 20 20 28 65 | 72 72 6f 72 20 22 54 68 |). (e|rror "Th|
|000001c0| 69 73 20 66 69 6c 65 20 | 77 61 73 20 63 6f 6d 70 |is file |was comp|
|000001d0| 69 6c 65 64 20 66 6f 72 | 20 45 6d 61 63 73 20 31 |iled for| Emacs 1|
|000001e0| 39 2e 22 29 29 0a 0a 28 | 62 79 74 65 2d 63 6f 64 |9."))..(|byte-cod|
|000001f0| 65 20 22 c0 11 c2 c3 21 | 88 c2 c4 21 87 22 20 5b |e "....!|...!." [|
|00000200| 22 30 2e 39 35 22 20 74 | 65 72 6d 2d 70 72 6f 74 |"0.95" t|erm-prot|
|00000210| 6f 63 6f 6c 2d 76 65 72 | 73 69 6f 6e 20 72 65 71 |ocol-ver|sion req|
|00000220| 75 69 72 65 20 72 69 6e | 67 20 65 68 65 6c 70 5d |uire rin|g ehelp]|
|00000230| 20 32 29 0a 28 64 65 66 | 76 61 72 20 74 65 72 6d | 2).(def|var term|
|00000240| 2d 69 6e 70 75 74 2d 72 | 69 6e 67 2d 73 69 7a 65 |-input-r|ing-size|
|00000250| 20 33 32 20 22 5c 0a 53 | 69 7a 65 20 6f 66 20 69 | 32 "\.S|ize of i|
|00000260| 6e 70 75 74 20 68 69 73 | 74 6f 72 79 20 72 69 6e |nput his|tory rin|
|00000270| 67 2e 22 29 0a 28 62 79 | 74 65 2d 63 6f 64 65 20 |g.").(by|te-code |
|00000280| 22 c0 c1 21 ac 82 c2 11 | c0 c3 21 ac 82 c4 13 c0 |"..!....|..!.....|
|00000290| c5 21 ac 82 c4 15 c0 c6 | 21 ac 83 c4 16 06 c0 c7 |.!......|!.......|
|000002a0| 21 ac 83 c2 16 07 c0 c8 | 21 ac 83 c4 16 08 c0 c9 |!.......|!.......|
|000002b0| 21 ac 83 c2 16 09 c0 ca | 21 ac 83 cb 16 5c 6e c0 |!.......|!....\n.|
|000002c0| cc 21 ac 83 c4 16 0c c0 | cd 21 ac 83 c2 16 0d c0 |.!......|.!......|
|000002d0| ce 21 ac 83 c2 16 0e c0 | cf 21 ac 83 c2 16 0f c0 |.!......|.!......|
|000002e0| d0 21 ac 83 c2 16 10 c0 | d1 21 ac 83 c2 16 11 c0 |.!......|.!......|
|000002f0| d2 21 ac 83 c2 16 12 c2 | 87 22 20 5b 62 6f 75 6e |.!......|." [boun|
|00000300| 64 70 20 74 65 72 6d 2d | 73 61 76 65 64 2d 68 6f |dp term-|saved-ho|
|00000310| 6d 65 2d 6d 61 72 6b 65 | 72 20 6e 69 6c 20 74 65 |me-marke|r nil te|
|00000320| 72 6d 2d 73 74 61 72 74 | 2d 6c 69 6e 65 2d 63 6f |rm-start|-line-co|
|00000330| 6c 75 6d 6e 20 30 20 74 | 65 72 6d 2d 63 75 72 72 |lumn 0 t|erm-curr|
|00000340| 65 6e 74 2d 63 6f 6c 75 | 6d 6e 20 74 65 72 6d 2d |ent-colu|mn term-|
|00000350| 63 75 72 72 65 6e 74 2d | 72 6f 77 20 74 65 72 6d |current-|row term|
|00000360| 2d 69 6e 73 65 72 74 2d | 6d 6f 64 65 20 74 65 72 |-insert-|mode ter|
|00000370| 6d 2d 74 65 72 6d 69 6e | 61 6c 2d 73 74 61 74 65 |m-termin|al-state|
|00000380| 20 74 65 72 6d 2d 6b 69 | 6c 6c 2d 65 63 68 6f 2d | term-ki|ll-echo-|
|00000390| 6c 69 73 74 20 74 65 72 | 6d 2d 63 75 72 72 65 6e |list ter|m-curren|
|000003a0| 74 2d 66 61 63 65 20 64 | 65 66 61 75 6c 74 20 74 |t-face d|efault t|
|000003b0| 65 72 6d 2d 73 63 72 6f | 6c 6c 2d 73 74 61 72 74 |erm-scro|ll-start|
|000003c0| 20 74 65 72 6d 2d 70 61 | 67 65 72 2d 63 6f 75 6e | term-pa|ger-coun|
|000003d0| 74 20 74 65 72 6d 2d 73 | 61 76 65 64 2d 63 75 72 |t term-s|aved-cur|
|000003e0| 73 6f 72 20 74 65 72 6d | 2d 6c 6f 67 2d 62 75 66 |sor term|-log-buf|
|000003f0| 66 65 72 20 74 65 72 6d | 2d 73 63 72 6f 6c 6c 2d |fer term|-scroll-|
|00000400| 77 69 74 68 2d 64 65 6c | 65 74 65 20 74 65 72 6d |with-del|ete term|
|00000410| 2d 6f 6c 64 2d 6d 6f 64 | 65 2d 6d 61 70 20 74 65 |-old-mod|e-map te|
|00000420| 72 6d 2d 70 61 67 65 72 | 2d 6f 6c 64 2d 6c 6f 63 |rm-pager|-old-loc|
|00000430| 61 6c 2d 6d 61 70 5d 20 | 32 29 0a 28 64 65 66 76 |al-map] |2).(defv|
|00000440| 61 72 20 65 78 70 6c 69 | 63 69 74 2d 73 68 65 6c |ar expli|cit-shel|
|00000450| 6c 2d 66 69 6c 65 2d 6e | 61 6d 65 20 6e 69 6c 20 |l-file-n|ame nil |
|00000460| 22 5c 0a 2a 49 66 20 6e | 6f 6e 2d 6e 69 6c 2c 20 |"\.*If n|on-nil, |
|00000470| 69 73 20 66 69 6c 65 20 | 6e 61 6d 65 20 74 6f 20 |is file |name to |
|00000480| 75 73 65 20 66 6f 72 20 | 65 78 70 6c 69 63 69 74 |use for |explicit|
|00000490| 6c 79 20 72 65 71 75 65 | 73 74 65 64 20 69 6e 66 |ly reque|sted inf|
|000004a0| 65 72 69 6f 72 20 73 68 | 65 6c 6c 2e 22 29 0a 28 |erior sh|ell.").(|
|000004b0| 64 65 66 76 61 72 20 74 | 65 72 6d 2d 70 72 6f 6d |defvar t|erm-prom|
|000004c0| 70 74 2d 72 65 67 65 78 | 70 20 22 5e 22 20 22 5c |pt-regex|p "^" "\|
|000004d0| 0a 52 65 67 65 78 70 20 | 74 6f 20 72 65 63 6f 67 |.Regexp |to recog|
|000004e0| 6e 69 73 65 20 70 72 6f | 6d 70 74 73 20 69 6e 20 |nise pro|mpts in |
|000004f0| 74 68 65 20 69 6e 66 65 | 72 69 6f 72 20 70 72 6f |the infe|rior pro|
|00000500| 63 65 73 73 2e 0a 44 65 | 66 61 75 6c 74 73 20 74 |cess..De|faults t|
|00000510| 6f 20 5c 22 5e 5c 22 2c | 20 74 68 65 20 6e 75 6c |o \"^\",| the nul|
|00000520| 6c 20 73 74 72 69 6e 67 | 20 61 74 20 42 4f 4c 2e |l string| at BOL.|
|00000530| 0a 0a 47 6f 6f 64 20 63 | 68 6f 69 63 65 73 3a 0a |..Good c|hoices:.|
|00000540| 20 20 43 61 6e 6f 6e 69 | 63 61 6c 20 4c 69 73 70 | Canoni|cal Lisp|
|00000550| 3a 20 5c 22 5e 5b 5e 3e | 20 5c 5c 6e 5d 2a 3e 2b |: \"^[^>| \\n]*>+|
|00000560| 3a 3f 20 2a 5c 22 20 28 | 4c 75 63 69 64 2c 20 66 |:? *\" (|Lucid, f|
|00000570| 72 61 6e 7a 2c 20 6b 63 | 6c 2c 20 54 2c 20 63 73 |ranz, kc|l, T, cs|
|00000580| 63 68 65 6d 65 2c 20 6f | 61 6b 6c 69 73 70 29 0a |cheme, o|aklisp).|
|00000590| 20 20 4c 75 63 69 64 20 | 43 6f 6d 6d 6f 6e 20 4c | Lucid |Common L|
|000005a0| 69 73 70 3a 20 5c 22 5e | 5c 5c 5c 5c 28 3e 5c 5c |isp: \"^|\\\\(>\\|
|000005b0| 5c 5c 7c 5c 5c 5c 5c 28 | 2d 3e 5c 5c 5c 5c 29 2b |\\|\\\\(|->\\\\)+|
|000005c0| 5c 5c 5c 5c 29 20 2a 5c | 22 0a 20 20 66 72 61 6e |\\\\) *\|". fran|
|000005d0| 7a 3a 20 5c 22 5e 5c 5c | 5c 5c 28 2d 3e 5c 5c 5c |z: \"^\\|\\(->\\\|
|000005e0| 5c 7c 3c 5b 30 2d 39 5d | 2a 3e 3a 5c 5c 5c 5c 29 |\|<[0-9]|*>:\\\\)|
|000005f0| 20 2a 5c 22 0a 20 20 6b | 63 6c 3a 20 5c 22 5e 3e | *\". k|cl: \"^>|
|00000600| 2b 20 2a 5c 22 0a 20 20 | 73 68 65 6c 6c 3a 20 5c |+ *\". |shell: \|
|00000610| 22 5e 5b 5e 23 24 25 3e | 5c 5c 6e 5d 2a 5b 23 24 |"^[^#$%>|\\n]*[#$|
|00000620| 25 3e 5d 20 2a 5c 22 0a | 20 20 54 3a 20 5c 22 5e |%>] *\".| T: \"^|
|00000630| 3e 2b 20 2a 5c 22 0a 0a | 54 68 69 73 20 69 73 20 |>+ *\"..|This is |
|00000640| 61 20 67 6f 6f 64 20 74 | 68 69 6e 67 20 74 6f 20 |a good t|hing to |
|00000650| 73 65 74 20 69 6e 20 6d | 6f 64 65 20 68 6f 6f 6b |set in m|ode hook|
|00000660| 73 2e 22 29 0a 28 64 65 | 66 76 61 72 20 74 65 72 |s.").(de|fvar ter|
|00000670| 6d 2d 64 65 6c 69 6d 69 | 74 65 72 2d 61 72 67 75 |m-delimi|ter-argu|
|00000680| 6d 65 6e 74 2d 6c 69 73 | 74 20 6e 69 6c 20 22 5c |ment-lis|t nil "\|
|00000690| 0a 4c 69 73 74 20 6f 66 | 20 63 68 61 72 61 63 74 |.List of| charact|
|000006a0| 65 72 73 20 74 6f 20 72 | 65 63 6f 67 6e 69 73 65 |ers to r|ecognise|
|000006b0| 20 61 73 20 73 65 70 61 | 72 61 74 65 20 61 72 67 | as sepa|rate arg|
|000006c0| 75 6d 65 6e 74 73 20 69 | 6e 20 69 6e 70 75 74 2e |uments i|n input.|
|000006d0| 0a 53 74 72 69 6e 67 73 | 20 63 6f 6d 70 72 69 73 |.Strings| compris|
|000006e0| 69 6e 67 20 61 20 63 68 | 61 72 61 63 74 65 72 20 |ing a ch|aracter |
|000006f0| 69 6e 20 74 68 69 73 20 | 6c 69 73 74 20 77 69 6c |in this |list wil|
|00000700| 6c 20 73 65 70 61 72 61 | 74 65 20 74 68 65 20 61 |l separa|te the a|
|00000710| 72 67 75 6d 65 6e 74 73 | 0a 73 75 72 72 6f 75 6e |rguments|.surroun|
|00000720| 64 69 6e 67 20 74 68 65 | 6d 2c 20 61 6e 64 20 61 |ding the|m, and a|
|00000730| 6c 73 6f 20 62 65 20 72 | 65 67 61 72 64 65 64 20 |lso be r|egarded |
|00000740| 61 73 20 61 72 67 75 6d | 65 6e 74 73 20 69 6e 20 |as argum|ents in |
|00000750| 74 68 65 69 72 20 6f 77 | 6e 20 72 69 67 68 74 20 |their ow|n right |
|00000760| 28 75 6e 6c 69 6b 65 0a | 77 68 69 74 65 73 70 61 |(unlike.|whitespa|
|00000770| 63 65 29 2e 20 20 53 65 | 65 20 60 74 65 72 6d 2d |ce). Se|e `term-|
|00000780| 61 72 67 75 6d 65 6e 74 | 73 27 2e 0a 44 65 66 61 |argument|s'..Defa|
|00000790| 75 6c 74 73 20 74 6f 20 | 74 68 65 20 65 6d 70 74 |ults to |the empt|
|000007a0| 79 20 6c 69 73 74 2e 0a | 0a 46 6f 72 20 73 68 65 |y list..|.For she|
|000007b0| 6c 6c 73 2c 20 61 20 67 | 6f 6f 64 20 76 61 6c 75 |lls, a g|ood valu|
|000007c0| 65 20 69 73 20 28 3f 5c | 5c 7c 20 3f 26 20 3f 3c |e is (?\|\| ?& ?<|
|000007d0| 20 3f 3e 20 3f 5c 5c 28 | 20 3f 5c 5c 29 20 3f 3b | ?> ?\\(| ?\\) ?;|
|000007e0| 29 2e 0a 0a 54 68 69 73 | 20 69 73 20 61 20 67 6f |)...This| is a go|
|000007f0| 6f 64 20 74 68 69 6e 67 | 20 74 6f 20 73 65 74 20 |od thing| to set |
|00000800| 69 6e 20 6d 6f 64 65 20 | 68 6f 6f 6b 73 2e 22 29 |in mode |hooks.")|
|00000810| 0a 28 64 65 66 76 61 72 | 20 74 65 72 6d 2d 69 6e |.(defvar| term-in|
|00000820| 70 75 74 2d 61 75 74 6f | 65 78 70 61 6e 64 20 6e |put-auto|expand n|
|00000830| 69 6c 20 22 5c 0a 2a 49 | 66 20 6e 6f 6e 2d 6e 69 |il "\.*I|f non-ni|
|00000840| 6c 2c 20 65 78 70 61 6e | 64 20 69 6e 70 75 74 20 |l, expan|d input |
|00000850| 63 6f 6d 6d 61 6e 64 20 | 68 69 73 74 6f 72 79 20 |command |history |
|00000860| 72 65 66 65 72 65 6e 63 | 65 73 20 6f 6e 20 63 6f |referenc|es on co|
|00000870| 6d 70 6c 65 74 69 6f 6e | 2e 0a 54 68 69 73 20 6d |mpletion|..This m|
|00000880| 69 72 72 6f 72 73 20 74 | 68 65 20 6f 70 74 69 6f |irrors t|he optio|
|00000890| 6e 61 6c 20 62 65 68 61 | 76 69 6f 72 20 6f 66 20 |nal beha|vior of |
|000008a0| 74 63 73 68 20 28 69 74 | 73 20 61 75 74 6f 65 78 |tcsh (it|s autoex|
|000008b0| 70 61 6e 64 20 61 6e 64 | 20 68 69 73 74 6c 69 74 |pand and| histlit|
|000008c0| 29 2e 0a 0a 49 66 20 74 | 68 65 20 76 61 6c 75 65 |)...If t|he value|
|000008d0| 20 69 73 20 60 69 6e 70 | 75 74 27 2c 20 74 68 65 | is `inp|ut', the|
|000008e0| 6e 20 74 68 65 20 65 78 | 70 61 6e 73 69 6f 6e 20 |n the ex|pansion |
|000008f0| 69 73 20 73 65 65 6e 20 | 6f 6e 20 69 6e 70 75 74 |is seen |on input|
|00000900| 2e 0a 49 66 20 74 68 65 | 20 76 61 6c 75 65 20 69 |..If the| value i|
|00000910| 73 20 60 68 69 73 74 6f | 72 79 27 2c 20 74 68 65 |s `histo|ry', the|
|00000920| 6e 20 74 68 65 20 65 78 | 70 61 6e 73 69 6f 6e 20 |n the ex|pansion |
|00000930| 69 73 20 6f 6e 6c 79 20 | 77 68 65 6e 20 69 6e 73 |is only |when ins|
|00000940| 65 72 74 69 6e 67 0a 69 | 6e 74 6f 20 74 68 65 20 |erting.i|nto the |
|00000950| 62 75 66 66 65 72 27 73 | 20 69 6e 70 75 74 20 72 |buffer's| input r|
|00000960| 69 6e 67 2e 20 20 53 65 | 65 20 61 6c 73 6f 20 60 |ing. Se|e also `|
|00000970| 74 65 72 6d 2d 6d 61 67 | 69 63 2d 73 70 61 63 65 |term-mag|ic-space|
|00000980| 27 20 61 6e 64 0a 60 74 | 65 72 6d 2d 64 79 6e 61 |' and.`t|erm-dyna|
|00000990| 6d 69 63 2d 63 6f 6d 70 | 6c 65 74 65 27 2e 0a 0a |mic-comp|lete'...|
|000009a0| 54 68 69 73 20 76 61 72 | 69 61 62 6c 65 20 69 73 |This var|iable is|
|000009b0| 20 62 75 66 66 65 72 2d | 6c 6f 63 61 6c 2e 22 29 | buffer-|local.")|
|000009c0| 0a 28 64 65 66 76 61 72 | 20 74 65 72 6d 2d 69 6e |.(defvar| term-in|
|000009d0| 70 75 74 2d 69 67 6e 6f | 72 65 64 75 70 73 20 6e |put-igno|redups n|
|000009e0| 69 6c 20 22 5c 0a 2a 49 | 66 20 6e 6f 6e 2d 6e 69 |il "\.*I|f non-ni|
|000009f0| 6c 2c 20 64 6f 6e 27 74 | 20 61 64 64 20 69 6e 70 |l, don't| add inp|
|00000a00| 75 74 20 6d 61 74 63 68 | 69 6e 67 20 74 68 65 20 |ut match|ing the |
|00000a10| 6c 61 73 74 20 6f 6e 20 | 74 68 65 20 69 6e 70 75 |last on |the inpu|
|00000a20| 74 20 72 69 6e 67 2e 0a | 54 68 69 73 20 6d 69 72 |t ring..|This mir|
|00000a30| 72 6f 72 73 20 74 68 65 | 20 6f 70 74 69 6f 6e 61 |rors the| optiona|
|00000a40| 6c 20 62 65 68 61 76 69 | 6f 72 20 6f 66 20 62 61 |l behavi|or of ba|
|00000a50| 73 68 2e 0a 0a 54 68 69 | 73 20 76 61 72 69 61 62 |sh...Thi|s variab|
|00000a60| 6c 65 20 69 73 20 62 75 | 66 66 65 72 2d 6c 6f 63 |le is bu|ffer-loc|
|00000a70| 61 6c 2e 22 29 0a 28 64 | 65 66 76 61 72 20 74 65 |al.").(d|efvar te|
|00000a80| 72 6d 2d 69 6e 70 75 74 | 2d 72 69 6e 67 2d 66 69 |rm-input|-ring-fi|
|00000a90| 6c 65 2d 6e 61 6d 65 20 | 6e 69 6c 20 22 5c 0a 2a |le-name |nil "\.*|
|00000aa0| 49 66 20 6e 6f 6e 2d 6e | 69 6c 2c 20 6e 61 6d 65 |If non-n|il, name|
|00000ab0| 20 6f 66 20 74 68 65 20 | 66 69 6c 65 20 74 6f 20 | of the |file to |
|00000ac0| 72 65 61 64 2f 77 72 69 | 74 65 20 69 6e 70 75 74 |read/wri|te input|
|00000ad0| 20 68 69 73 74 6f 72 79 | 2e 0a 53 65 65 20 61 6c | history|..See al|
|00000ae0| 73 6f 20 60 74 65 72 6d | 2d 72 65 61 64 2d 69 6e |so `term|-read-in|
|00000af0| 70 75 74 2d 72 69 6e 67 | 27 20 61 6e 64 20 60 74 |put-ring|' and `t|
|00000b00| 65 72 6d 2d 77 72 69 74 | 65 2d 69 6e 70 75 74 2d |erm-writ|e-input-|
|00000b10| 72 69 6e 67 27 2e 0a 0a | 54 68 69 73 20 76 61 72 |ring'...|This var|
|00000b20| 69 61 62 6c 65 20 69 73 | 20 62 75 66 66 65 72 2d |iable is| buffer-|
|00000b30| 6c 6f 63 61 6c 2c 20 61 | 6e 64 20 69 73 20 61 20 |local, a|nd is a |
|00000b40| 67 6f 6f 64 20 74 68 69 | 6e 67 20 74 6f 20 73 65 |good thi|ng to se|
|00000b50| 74 20 69 6e 20 6d 6f 64 | 65 20 68 6f 6f 6b 73 2e |t in mod|e hooks.|
|00000b60| 22 29 0a 28 64 65 66 76 | 61 72 20 74 65 72 6d 2d |").(defv|ar term-|
|00000b70| 73 63 72 6f 6c 6c 2d 74 | 6f 2d 62 6f 74 74 6f 6d |scroll-t|o-bottom|
|00000b80| 2d 6f 6e 2d 6f 75 74 70 | 75 74 20 6e 69 6c 20 22 |-on-outp|ut nil "|
|00000b90| 5c 0a 2a 43 6f 6e 74 72 | 6f 6c 73 20 77 68 65 74 |\.*Contr|ols whet|
|00000ba0| 68 65 72 20 69 6e 74 65 | 72 70 72 65 74 65 72 20 |her inte|rpreter |
|00000bb0| 6f 75 74 70 75 74 20 63 | 61 75 73 65 73 20 77 69 |output c|auses wi|
|00000bc0| 6e 64 6f 77 20 74 6f 20 | 73 63 72 6f 6c 6c 2e 0a |ndow to |scroll..|
|00000bd0| 49 66 20 6e 69 6c 2c 20 | 74 68 65 6e 20 64 6f 20 |If nil, |then do |
|00000be0| 6e 6f 74 20 73 63 72 6f | 6c 6c 2e 20 20 49 66 20 |not scro|ll. If |
|00000bf0| 74 20 6f 72 20 60 61 6c | 6c 27 2c 20 73 63 72 6f |t or `al|l', scro|
|00000c00| 6c 6c 20 61 6c 6c 20 77 | 69 6e 64 6f 77 73 20 73 |ll all w|indows s|
|00000c10| 68 6f 77 69 6e 67 20 62 | 75 66 66 65 72 2e 0a 49 |howing b|uffer..I|
|00000c20| 66 20 60 74 68 69 73 27 | 2c 20 73 63 72 6f 6c 6c |f `this'|, scroll|
|00000c30| 20 6f 6e 6c 79 20 74 68 | 65 20 73 65 6c 65 63 74 | only th|e select|
|00000c40| 65 64 20 77 69 6e 64 6f | 77 2e 0a 49 66 20 60 6f |ed windo|w..If `o|
|00000c50| 74 68 65 72 73 27 2c 20 | 73 63 72 6f 6c 6c 20 6f |thers', |scroll o|
|00000c60| 6e 6c 79 20 74 68 6f 73 | 65 20 74 68 61 74 20 61 |nly thos|e that a|
|00000c70| 72 65 20 6e 6f 74 20 74 | 68 65 20 73 65 6c 65 63 |re not t|he selec|
|00000c80| 74 65 64 20 77 69 6e 64 | 6f 77 2e 0a 0a 54 68 65 |ted wind|ow...The|
|00000c90| 20 64 65 66 61 75 6c 74 | 20 69 73 20 6e 69 6c 2e | default| is nil.|
|00000ca0| 0a 0a 53 65 65 20 76 61 | 72 69 61 62 6c 65 20 60 |..See va|riable `|
|00000cb0| 74 65 72 6d 2d 73 63 72 | 6f 6c 6c 2d 73 68 6f 77 |term-scr|oll-show|
|00000cc0| 2d 6d 61 78 69 6d 75 6d | 2d 6f 75 74 70 75 74 27 |-maximum|-output'|
|00000cd0| 2e 0a 54 68 69 73 20 76 | 61 72 69 61 62 6c 65 20 |..This v|ariable |
|00000ce0| 69 73 20 62 75 66 66 65 | 72 2d 6c 6f 63 61 6c 2e |is buffe|r-local.|
|00000cf0| 22 29 0a 28 64 65 66 76 | 61 72 20 74 65 72 6d 2d |").(defv|ar term-|
|00000d00| 73 63 72 6f 6c 6c 2d 73 | 68 6f 77 2d 6d 61 78 69 |scroll-s|how-maxi|
|00000d10| 6d 75 6d 2d 6f 75 74 70 | 75 74 20 6e 69 6c 20 22 |mum-outp|ut nil "|
|00000d20| 5c 0a 2a 43 6f 6e 74 72 | 6f 6c 73 20 68 6f 77 20 |\.*Contr|ols how |
|00000d30| 69 6e 74 65 72 70 72 65 | 74 65 72 20 6f 75 74 70 |interpre|ter outp|
|00000d40| 75 74 20 63 61 75 73 65 | 73 20 77 69 6e 64 6f 77 |ut cause|s window|
|00000d50| 20 74 6f 20 73 63 72 6f | 6c 6c 2e 0a 49 66 20 6e | to scro|ll..If n|
|00000d60| 6f 6e 2d 6e 69 6c 2c 20 | 74 68 65 6e 20 73 68 6f |on-nil, |then sho|
|00000d70| 77 20 74 68 65 20 6d 61 | 78 69 6d 75 6d 20 6f 75 |w the ma|ximum ou|
|00000d80| 74 70 75 74 20 77 68 65 | 6e 20 74 68 65 20 77 69 |tput whe|n the wi|
|00000d90| 6e 64 6f 77 20 69 73 20 | 73 63 72 6f 6c 6c 65 64 |ndow is |scrolled|
|00000da0| 2e 0a 0a 53 65 65 20 76 | 61 72 69 61 62 6c 65 20 |...See v|ariable |
|00000db0| 60 74 65 72 6d 2d 73 63 | 72 6f 6c 6c 2d 74 6f 2d |`term-sc|roll-to-|
|00000dc0| 62 6f 74 74 6f 6d 2d 6f | 6e 2d 6f 75 74 70 75 74 |bottom-o|n-output|
|00000dd0| 27 2e 0a 54 68 69 73 20 | 76 61 72 69 61 62 6c 65 |'..This |variable|
|00000de0| 20 69 73 20 62 75 66 66 | 65 72 2d 6c 6f 63 61 6c | is buff|er-local|
|00000df0| 2e 22 29 0a 28 62 79 74 | 65 2d 63 6f 64 65 20 22 |.").(byt|e-code "|
|00000e00| c0 c1 21 ac 82 c2 11 c2 | 87 22 20 5b 62 6f 75 6e |..!.....|." [boun|
|00000e10| 64 70 20 74 65 72 6d 2d | 70 65 6e 64 69 6e 67 2d |dp term-|pending-|
|00000e20| 66 72 61 6d 65 20 6e 69 | 6c 5d 20 32 29 0a 28 64 |frame ni|l] 2).(d|
|00000e30| 65 66 76 61 72 20 74 65 | 72 6d 2d 67 65 74 2d 6f |efvar te|rm-get-o|
|00000e40| 6c 64 2d 69 6e 70 75 74 | 20 27 74 65 72 6d 2d 67 |ld-input| 'term-g|
|00000e50| 65 74 2d 6f 6c 64 2d 69 | 6e 70 75 74 2d 64 65 66 |et-old-i|nput-def|
|00000e60| 61 75 6c 74 20 22 5c 0a | 46 75 6e 63 74 69 6f 6e |ault "\.|Function|
|00000e70| 20 74 68 61 74 20 73 75 | 62 6d 69 74 73 20 6f 6c | that su|bmits ol|
|00000e80| 64 20 74 65 78 74 20 69 | 6e 20 74 65 72 6d 20 6d |d text i|n term m|
|00000e90| 6f 64 65 2e 0a 54 68 69 | 73 20 66 75 6e 63 74 69 |ode..Thi|s functi|
|00000ea0| 6f 6e 20 69 73 20 63 61 | 6c 6c 65 64 20 77 68 65 |on is ca|lled whe|
|00000eb0| 6e 20 72 65 74 75 72 6e | 20 69 73 20 74 79 70 65 |n return| is type|
|00000ec0| 64 20 77 68 69 6c 65 20 | 74 68 65 20 70 6f 69 6e |d while |the poin|
|00000ed0| 74 20 69 73 20 69 6e 20 | 6f 6c 64 20 74 65 78 74 |t is in |old text|
|00000ee0| 2e 0a 49 74 20 72 65 74 | 75 72 6e 73 20 74 68 65 |..It ret|urns the|
|00000ef0| 20 74 65 78 74 20 74 6f | 20 62 65 20 73 75 62 6d | text to| be subm|
|00000f00| 69 74 74 65 64 20 61 73 | 20 70 72 6f 63 65 73 73 |itted as| process|
|00000f10| 20 69 6e 70 75 74 2e 20 | 20 54 68 65 20 64 65 66 | input. | The def|
|00000f20| 61 75 6c 74 20 69 73 0a | 74 65 72 6d 2d 67 65 74 |ault is.|term-get|
|00000f30| 2d 6f 6c 64 2d 69 6e 70 | 75 74 2d 64 65 66 61 75 |-old-inp|ut-defau|
|00000f40| 6c 74 2c 20 77 68 69 63 | 68 20 67 72 61 62 73 20 |lt, whic|h grabs |
|00000f50| 74 68 65 20 63 75 72 72 | 65 6e 74 20 6c 69 6e 65 |the curr|ent line|
|00000f60| 2c 20 61 6e 64 20 73 74 | 72 69 70 73 20 6f 66 66 |, and st|rips off|
|00000f70| 0a 6c 65 61 64 69 6e 67 | 20 74 65 78 74 20 6d 61 |.leading| text ma|
|00000f80| 74 63 68 69 6e 67 20 74 | 65 72 6d 2d 70 72 6f 6d |tching t|erm-prom|
|00000f90| 70 74 2d 72 65 67 65 78 | 70 22 29 0a 28 64 65 66 |pt-regex|p").(def|
|00000fa0| 76 61 72 20 74 65 72 6d | 2d 64 79 6e 61 6d 69 63 |var term|-dynamic|
|00000fb0| 2d 63 6f 6d 70 6c 65 74 | 65 2d 66 75 6e 63 74 69 |-complet|e-functi|
|00000fc0| 6f 6e 73 20 27 28 74 65 | 72 6d 2d 72 65 70 6c 61 |ons '(te|rm-repla|
|00000fd0| 63 65 2d 62 79 2d 65 78 | 70 61 6e 64 65 64 2d 68 |ce-by-ex|panded-h|
|00000fe0| 69 73 74 6f 72 79 20 74 | 65 72 6d 2d 64 79 6e 61 |istory t|erm-dyna|
|00000ff0| 6d 69 63 2d 63 6f 6d 70 | 6c 65 74 65 2d 66 69 6c |mic-comp|lete-fil|
|00001000| 65 6e 61 6d 65 29 20 22 | 5c 0a 4c 69 73 74 20 6f |ename) "|\.List o|
|00001010| 66 20 66 75 6e 63 74 69 | 6f 6e 73 20 63 61 6c 6c |f functi|ons call|
|00001020| 65 64 20 74 6f 20 70 65 | 72 66 6f 72 6d 20 63 6f |ed to pe|rform co|
|00001030| 6d 70 6c 65 74 69 6f 6e | 2e 0a 46 75 6e 63 74 69 |mpletion|..Functi|
|00001040| 6f 6e 73 20 73 68 6f 75 | 6c 64 20 72 65 74 75 72 |ons shou|ld retur|
|00001050| 6e 20 6e 6f 6e 2d 6e 69 | 6c 20 69 66 20 63 6f 6d |n non-ni|l if com|
|00001060| 70 6c 65 74 69 6f 6e 20 | 77 61 73 20 70 65 72 66 |pletion |was perf|
|00001070| 6f 72 6d 65 64 2e 0a 53 | 65 65 20 61 6c 73 6f 20 |ormed..S|ee also |
|00001080| 60 74 65 72 6d 2d 64 79 | 6e 61 6d 69 63 2d 63 6f |`term-dy|namic-co|
|00001090| 6d 70 6c 65 74 65 27 2e | 0a 0a 54 68 69 73 20 69 |mplete'.|..This i|
|000010a0| 73 20 61 20 67 6f 6f 64 | 20 74 68 69 6e 67 20 74 |s a good| thing t|
|000010b0| 6f 20 73 65 74 20 69 6e | 20 6d 6f 64 65 20 68 6f |o set in| mode ho|
|000010c0| 6f 6b 73 2e 22 29 0a 28 | 64 65 66 76 61 72 20 74 |oks.").(|defvar t|
|000010d0| 65 72 6d 2d 69 6e 70 75 | 74 2d 66 69 6c 74 65 72 |erm-inpu|t-filter|
|000010e0| 20 23 5b 28 73 74 72 29 | 20 22 c0 c1 5c 6e 5c 22 | #[(str)| "..\n\"|
|000010f0| 3f 87 22 20 5b 73 74 72 | 69 6e 67 2d 6d 61 74 63 |?." [str|ing-matc|
|00001100| 68 20 22 5c 5c 60 5c 5c | 73 20 2a 5c 5c 27 22 20 |h "\\`\\|s *\\'" |
|00001110| 73 74 72 5d 20 33 5d 20 | 22 5c 0a 50 72 65 64 69 |str] 3] |"\.Predi|
|00001120| 63 61 74 65 20 66 6f 72 | 20 66 69 6c 74 65 72 69 |cate for| filteri|
|00001130| 6e 67 20 61 64 64 69 74 | 69 6f 6e 73 20 74 6f 20 |ng addit|ions to |
|00001140| 69 6e 70 75 74 20 68 69 | 73 74 6f 72 79 2e 0a 4f |input hi|story..O|
|00001150| 6e 6c 79 20 69 6e 70 75 | 74 73 20 61 6e 73 77 65 |nly inpu|ts answe|
|00001160| 72 69 6e 67 20 74 72 75 | 65 20 74 6f 20 74 68 69 |ring tru|e to thi|
|00001170| 73 20 66 75 6e 63 74 69 | 6f 6e 20 61 72 65 20 73 |s functi|on are s|
|00001180| 61 76 65 64 20 6f 6e 20 | 74 68 65 20 69 6e 70 75 |aved on |the inpu|
|00001190| 74 0a 68 69 73 74 6f 72 | 79 20 6c 69 73 74 2e 20 |t.histor|y list. |
|000011a0| 44 65 66 61 75 6c 74 20 | 69 73 20 74 6f 20 73 61 |Default |is to sa|
|000011b0| 76 65 20 61 6e 79 74 68 | 69 6e 67 20 74 68 61 74 |ve anyth|ing that|
|000011c0| 20 69 73 6e 27 74 20 61 | 6c 6c 20 77 68 69 74 65 | isn't a|ll white|
|000011d0| 73 70 61 63 65 22 29 0a | 28 64 65 66 76 61 72 20 |space").|(defvar |
|000011e0| 74 65 72 6d 2d 69 6e 70 | 75 74 2d 66 69 6c 74 65 |term-inp|ut-filte|
|000011f0| 72 2d 66 75 6e 63 74 69 | 6f 6e 73 20 6e 69 6c 20 |r-functi|ons nil |
|00001200| 22 5c 0a 46 75 6e 63 74 | 69 6f 6e 73 20 74 6f 20 |"\.Funct|ions to |
|00001210| 63 61 6c 6c 20 62 65 66 | 6f 72 65 20 69 6e 70 75 |call bef|ore inpu|
|00001220| 74 20 69 73 20 73 65 6e | 74 20 74 6f 20 74 68 65 |t is sen|t to the|
|00001230| 20 70 72 6f 63 65 73 73 | 2e 0a 54 68 65 73 65 20 | process|..These |
|00001240| 66 75 6e 63 74 69 6f 6e | 73 20 67 65 74 20 6f 6e |function|s get on|
|00001250| 65 20 61 72 67 75 6d 65 | 6e 74 2c 20 61 20 73 74 |e argume|nt, a st|
|00001260| 72 69 6e 67 20 63 6f 6e | 74 61 69 6e 69 6e 67 20 |ring con|taining |
|00001270| 74 68 65 20 74 65 78 74 | 20 74 6f 20 73 65 6e 64 |the text| to send|
|00001280| 2e 0a 0a 54 68 69 73 20 | 76 61 72 69 61 62 6c 65 |...This |variable|
|00001290| 20 69 73 20 62 75 66 66 | 65 72 2d 6c 6f 63 61 6c | is buff|er-local|
|000012a0| 2e 22 29 0a 28 64 65 66 | 76 61 72 20 74 65 72 6d |.").(def|var term|
|000012b0| 2d 69 6e 70 75 74 2d 73 | 65 6e 64 65 72 20 27 74 |-input-s|ender 't|
|000012c0| 65 72 6d 2d 73 69 6d 70 | 6c 65 2d 73 65 6e 64 20 |erm-simp|le-send |
|000012d0| 22 5c 0a 46 75 6e 63 74 | 69 6f 6e 20 74 6f 20 61 |"\.Funct|ion to a|
|000012e0| 63 74 75 61 6c 6c 79 20 | 73 65 6e 64 20 74 6f 20 |ctually |send to |
|000012f0| 50 52 4f 43 45 53 53 20 | 74 68 65 20 53 54 52 49 |PROCESS |the STRI|
|00001300| 4e 47 20 73 75 62 6d 69 | 74 74 65 64 20 62 79 20 |NG submi|tted by |
|00001310| 75 73 65 72 2e 0a 55 73 | 75 61 6c 6c 79 20 74 68 |user..Us|ually th|
|00001320| 69 73 20 69 73 20 6a 75 | 73 74 20 27 74 65 72 6d |is is ju|st 'term|
|00001330| 2d 73 69 6d 70 6c 65 2d | 73 65 6e 64 2c 20 62 75 |-simple-|send, bu|
|00001340| 74 20 69 66 20 79 6f 75 | 72 20 6d 6f 64 65 20 6e |t if you|r mode n|
|00001350| 65 65 64 73 20 74 6f 20 | 0a 6d 61 73 73 61 67 65 |eeds to |.massage|
|00001360| 20 74 68 65 20 69 6e 70 | 75 74 20 73 74 72 69 6e | the inp|ut strin|
|00001370| 67 2c 20 74 68 69 73 20 | 69 73 20 79 6f 75 72 20 |g, this |is your |
|00001380| 68 6f 6f 6b 2e 20 54 68 | 69 73 20 69 73 20 63 61 |hook. Th|is is ca|
|00001390| 6c 6c 65 64 20 66 72 6f | 6d 0a 74 68 65 20 75 73 |lled fro|m.the us|
|000013a0| 65 72 20 63 6f 6d 6d 61 | 6e 64 20 74 65 72 6d 2d |er comma|nd term-|
|000013b0| 73 65 6e 64 2d 69 6e 70 | 75 74 2e 20 74 65 72 6d |send-inp|ut. term|
|000013c0| 2d 73 69 6d 70 6c 65 2d | 73 65 6e 64 20 6a 75 73 |-simple-|send jus|
|000013d0| 74 20 73 65 6e 64 73 0a | 74 68 65 20 73 74 72 69 |t sends.|the stri|
|000013e0| 6e 67 20 70 6c 75 73 20 | 61 20 6e 65 77 6c 69 6e |ng plus |a newlin|
|000013f0| 65 2e 22 29 0a 28 64 65 | 66 76 61 72 20 74 65 72 |e.").(de|fvar ter|
|00001400| 6d 2d 65 6f 6c 2d 6f 6e | 2d 73 65 6e 64 20 74 20 |m-eol-on|-send t |
|00001410| 22 5c 0a 2a 4e 6f 6e 2d | 6e 69 6c 20 6d 65 61 6e |"\.*Non-|nil mean|
|00001420| 73 20 67 6f 20 74 6f 20 | 74 68 65 20 65 6e 64 20 |s go to |the end |
|00001430| 6f 66 20 74 68 65 20 6c | 69 6e 65 20 62 65 66 6f |of the l|ine befo|
|00001440| 72 65 20 73 65 6e 64 69 | 6e 67 20 69 6e 70 75 74 |re sendi|ng input|
|00001450| 2e 0a 53 65 65 20 60 74 | 65 72 6d 2d 73 65 6e 64 |..See `t|erm-send|
|00001460| 2d 69 6e 70 75 74 27 2e | 22 29 0a 28 64 65 66 76 |-input'.|").(defv|
|00001470| 61 72 20 74 65 72 6d 2d | 6d 6f 64 65 2d 68 6f 6f |ar term-|mode-hoo|
|00001480| 6b 20 6e 69 6c 20 22 5c | 0a 43 61 6c 6c 65 64 20 |k nil "\|.Called |
|00001490| 75 70 6f 6e 20 65 6e 74 | 72 79 20 69 6e 74 6f 20 |upon ent|ry into |
|000014a0| 74 65 72 6d 2d 6d 6f 64 | 65 0a 54 68 69 73 20 69 |term-mod|e.This i|
|000014b0| 73 20 72 75 6e 20 62 65 | 66 6f 72 65 20 74 68 65 |s run be|fore the|
|000014c0| 20 70 72 6f 63 65 73 73 | 20 69 73 20 63 72 61 6e | process| is cran|
|000014d0| 6b 65 64 20 75 70 2e 22 | 29 0a 28 64 65 66 76 61 |ked up."|).(defva|
|000014e0| 72 20 74 65 72 6d 2d 65 | 78 65 63 2d 68 6f 6f 6b |r term-e|xec-hook|
|000014f0| 20 6e 69 6c 20 22 5c 0a | 43 61 6c 6c 65 64 20 65 | nil "\.|Called e|
|00001500| 61 63 68 20 74 69 6d 65 | 20 61 20 70 72 6f 63 65 |ach time| a proce|
|00001510| 73 73 20 69 73 20 65 78 | 65 63 27 64 20 62 79 20 |ss is ex|ec'd by |
|00001520| 74 65 72 6d 2d 65 78 65 | 63 2e 0a 54 68 69 73 20 |term-exe|c..This |
|00001530| 69 73 20 63 61 6c 6c 65 | 64 20 61 66 74 65 72 20 |is calle|d after |
|00001540| 74 68 65 20 70 72 6f 63 | 65 73 73 20 69 73 20 63 |the proc|ess is c|
|00001550| 72 61 6e 6b 65 64 20 75 | 70 2e 20 20 49 74 20 69 |ranked u|p. It i|
|00001560| 73 20 75 73 65 66 75 6c | 20 66 6f 72 20 74 68 69 |s useful| for thi|
|00001570| 6e 67 73 20 74 68 61 74 | 0a 6d 75 73 74 20 62 65 |ngs that|.must be|
|00001580| 20 64 6f 6e 65 20 65 61 | 63 68 20 74 69 6d 65 20 | done ea|ch time |
|00001590| 61 20 70 72 6f 63 65 73 | 73 20 69 73 20 65 78 65 |a proces|s is exe|
|000015a0| 63 75 74 65 64 20 69 6e | 20 61 20 74 65 72 6d 2d |cuted in| a term-|
|000015b0| 6d 6f 64 65 20 62 75 66 | 66 65 72 20 28 65 2e 67 |mode buf|fer (e.g|
|000015c0| 2e 2c 0a 28 70 72 6f 63 | 65 73 73 2d 6b 69 6c 6c |.,.(proc|ess-kill|
|000015d0| 2d 77 69 74 68 6f 75 74 | 2d 71 75 65 72 79 29 29 |-without|-query))|
|000015e0| 2e 20 49 6e 20 63 6f 6e | 74 72 61 73 74 2c 20 74 |. In con|trast, t|
|000015f0| 68 65 20 74 65 72 6d 2d | 6d 6f 64 65 2d 68 6f 6f |he term-|mode-hoo|
|00001600| 6b 20 69 73 20 6f 6e 6c | 79 0a 65 78 65 63 75 74 |k is onl|y.execut|
|00001610| 65 64 20 6f 6e 63 65 20 | 77 68 65 6e 20 74 68 65 |ed once |when the|
|00001620| 20 62 75 66 66 65 72 20 | 69 73 20 63 72 65 61 74 | buffer |is creat|
|00001630| 65 64 2e 22 29 0a 28 62 | 79 74 65 2d 63 6f 64 65 |ed.").(b|yte-code|
|00001640| 20 22 c0 c1 21 ac 82 c2 | 11 c2 87 22 20 5b 62 6f | "..!...|..." [bo|
|00001650| 75 6e 64 70 20 74 65 72 | 6d 2d 6d 6f 64 65 2d 6d |undp ter|m-mode-m|
|00001660| 61 70 20 6e 69 6c 5d 20 | 32 29 0a 28 64 65 66 76 |ap nil] |2).(defv|
|00001670| 61 72 20 74 65 72 6d 2d | 72 61 77 2d 6d 61 70 20 |ar term-|raw-map |
|00001680| 6e 69 6c 20 22 5c 0a 4b | 65 79 62 6f 61 72 64 20 |nil "\.K|eyboard |
|00001690| 6d 61 70 20 66 6f 72 20 | 73 65 6e 64 69 6e 67 20 |map for |sending |
|000016a0| 63 68 61 72 61 63 74 65 | 72 73 20 64 69 72 65 63 |characte|rs direc|
|000016b0| 74 6c 79 20 74 6f 20 74 | 68 65 20 69 6e 66 65 72 |tly to t|he infer|
|000016c0| 69 6f 72 20 70 72 6f 63 | 65 73 73 2e 22 29 0a 28 |ior proc|ess.").(|
|000016d0| 64 65 66 76 61 72 20 74 | 65 72 6d 2d 65 73 63 61 |defvar t|erm-esca|
|000016e0| 70 65 2d 63 68 61 72 20 | 6e 69 6c 20 22 5c 0a 45 |pe-char |nil "\.E|
|000016f0| 73 63 61 70 65 20 63 68 | 61 72 61 63 74 65 72 20 |scape ch|aracter |
|00001700| 66 6f 72 20 63 68 61 72 | 2d 73 75 62 2d 6d 6f 64 |for char|-sub-mod|
|00001710| 65 20 6f 66 20 74 65 72 | 6d 20 6d 6f 64 65 2e 0a |e of ter|m mode..|
|00001720| 44 6f 20 6e 6f 74 20 63 | 68 61 6e 67 65 20 69 74 |Do not c|hange it|
|00001730| 20 64 69 72 65 63 74 6c | 79 3b 20 20 75 73 65 20 | directl|y; use |
|00001740| 74 65 72 6d 2d 73 65 74 | 2d 65 73 63 61 70 65 2d |term-set|-escape-|
|00001750| 63 68 61 72 20 69 6e 73 | 74 65 61 64 2e 22 29 0a |char ins|tead.").|
|00001760| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c0 c1 21 ac |(byte-co|de "..!.|
|00001770| 82 c2 11 c0 c3 21 ac 82 | c2 13 c2 87 22 20 5b 62 |.....!..|...." [b|
|00001780| 6f 75 6e 64 70 20 74 65 | 72 6d 2d 72 61 77 2d 65 |oundp te|rm-raw-e|
|00001790| 73 63 61 70 65 2d 6d 61 | 70 20 6e 69 6c 20 74 65 |scape-ma|p nil te|
|000017a0| 72 6d 2d 70 61 67 65 72 | 2d 62 72 65 61 6b 2d 6d |rm-pager|-break-m|
|000017b0| 61 70 5d 20 32 29 0a 28 | 64 65 66 76 61 72 20 74 |ap] 2).(|defvar t|
|000017c0| 65 72 6d 2d 70 74 79 70 | 20 74 20 22 5c 0a 54 72 |erm-ptyp| t "\.Tr|
|000017d0| 75 65 20 69 66 20 63 6f | 6d 6d 75 6e 69 63 61 74 |ue if co|mmunicat|
|000017e0| 69 6f 6e 73 20 76 69 61 | 20 70 74 79 3b 20 66 61 |ions via| pty; fa|
|000017f0| 6c 73 65 20 69 66 20 62 | 79 20 70 69 70 65 2e 20 |lse if b|y pipe. |
|00001800| 20 42 75 66 66 65 72 20 | 6c 6f 63 61 6c 2e 0a 54 | Buffer |local..T|
|00001810| 68 69 73 20 69 73 20 74 | 6f 20 77 6f 72 6b 20 61 |his is t|o work a|
|00001820| 72 6f 75 6e 64 20 61 20 | 62 75 67 20 69 6e 20 65 |round a |bug in e|
|00001830| 6d 61 63 73 20 70 72 6f | 63 65 73 73 20 73 69 67 |macs pro|cess sig|
|00001840| 6e 61 6c 6c 69 6e 67 2e | 22 29 0a 28 64 65 66 76 |nalling.|").(defv|
|00001850| 61 72 20 74 65 72 6d 2d | 6c 61 73 74 2d 69 6e 70 |ar term-|last-inp|
|00001860| 75 74 2d 6d 61 74 63 68 | 20 22 22 20 22 5c 0a 4c |ut-match| "" "\.L|
|00001870| 61 73 74 20 73 74 72 69 | 6e 67 20 73 65 61 72 63 |ast stri|ng searc|
|00001880| 68 65 64 20 66 6f 72 20 | 62 79 20 74 65 72 6d 20 |hed for |by term |
|00001890| 69 6e 70 75 74 20 68 69 | 73 74 6f 72 79 20 73 65 |input hi|story se|
|000018a0| 61 72 63 68 2c 20 66 6f | 72 20 64 65 66 61 75 6c |arch, fo|r defaul|
|000018b0| 74 69 6e 67 2e 0a 42 75 | 66 66 65 72 20 6c 6f 63 |ting..Bu|ffer loc|
|000018c0| 61 6c 20 76 61 72 69 61 | 62 6c 65 2e 22 29 0a 28 |al varia|ble.").(|
|000018d0| 62 79 74 65 2d 63 6f 64 | 65 20 22 c0 c1 21 ac 82 |byte-cod|e "..!..|
|000018e0| c2 11 c2 87 22 20 5b 62 | 6f 75 6e 64 70 20 74 65 |...." [b|oundp te|
|000018f0| 72 6d 2d 69 6e 70 75 74 | 2d 72 69 6e 67 20 6e 69 |rm-input|-ring ni|
|00001900| 6c 5d 20 32 29 0a 28 64 | 65 66 76 61 72 20 74 65 |l] 2).(d|efvar te|
|00001910| 72 6d 2d 69 6e 70 75 74 | 2d 72 69 6e 67 2d 69 6e |rm-input|-ring-in|
|00001920| 64 65 78 20 6e 69 6c 20 | 22 5c 0a 49 6e 64 65 78 |dex nil |"\.Index|
|00001930| 20 6f 66 20 6c 61 73 74 | 20 6d 61 74 63 68 65 64 | of last| matched|
|00001940| 20 68 69 73 74 6f 72 79 | 20 65 6c 65 6d 65 6e 74 | history| element|
|00001950| 2e 22 29 0a 28 64 65 66 | 76 61 72 20 74 65 72 6d |.").(def|var term|
|00001960| 2d 6d 61 74 63 68 69 6e | 67 2d 69 6e 70 75 74 2d |-matchin|g-input-|
|00001970| 66 72 6f 6d 2d 69 6e 70 | 75 74 2d 73 74 72 69 6e |from-inp|ut-strin|
|00001980| 67 20 22 22 20 22 5c 0a | 49 6e 70 75 74 20 70 72 |g "" "\.|Input pr|
|00001990| 65 76 69 6f 75 73 6c 79 | 20 75 73 65 64 20 74 6f |eviously| used to|
|000019a0| 20 6d 61 74 63 68 20 69 | 6e 70 75 74 20 68 69 73 | match i|nput his|
|000019b0| 74 6f 72 79 2e 22 29 0a | 28 62 79 74 65 2d 63 6f |tory.").|(byte-co|
|000019c0| 64 65 20 22 c0 c1 21 ac | 82 c2 11 c3 c4 c5 c6 23 |de "..!.|.......#|
|000019d0| 88 c3 c7 c8 c2 23 88 c3 | c9 c8 c2 23 88 c3 c6 c8 |.....#..|...#....|
|000019e0| c2 23 88 c3 ca c8 c2 23 | 88 c3 cb c8 c2 23 88 c3 |.#.....#|.....#..|
|000019f0| cc c8 c2 23 88 c3 cd c8 | c2 23 88 ce cf 4d 88 d0 |...#....|.#...M..|
|00001a00| d1 4d 88 d2 d3 4d 88 d4 | d5 4d 88 d6 d7 4d 88 d8 |.M...M..|.M...M..|
|00001a10| d9 4d 88 da db 4d 88 dc | dd 4d 88 de df 4d 88 c0 |.M...M..|.M...M..|
|00001a20| e0 21 ac 83 e1 16 20 c0 | 87 22 20 5b 62 6f 75 6e |.!.... .|." [boun|
|00001a30| 64 70 20 74 65 72 6d 2d | 70 61 67 65 72 2d 66 69 |dp term-|pager-fi|
|00001a40| 6c 74 65 72 20 74 20 70 | 75 74 20 74 65 72 6d 2d |lter t p|ut term-|
|00001a50| 72 65 70 6c 61 63 65 2d | 62 79 2d 65 78 70 61 6e |replace-|by-expan|
|00001a60| 64 65 64 2d 68 69 73 74 | 6f 72 79 20 6d 65 6e 75 |ded-hist|ory menu|
|00001a70| 2d 65 6e 61 62 6c 65 20 | 74 65 72 6d 2d 69 6e 70 |-enable |term-inp|
|00001a80| 75 74 2d 61 75 74 6f 65 | 78 70 61 6e 64 20 74 65 |ut-autoe|xpand te|
|00001a90| 72 6d 2d 69 6e 70 75 74 | 2d 72 69 6e 67 20 70 65 |rm-input|-ring pe|
|00001aa0| 72 6d 61 6e 65 6e 74 2d | 6c 6f 63 61 6c 20 74 65 |rmanent-|local te|
|00001ab0| 72 6d 2d 69 6e 70 75 74 | 2d 72 69 6e 67 2d 69 6e |rm-input|-ring-in|
|00001ac0| 64 65 78 20 74 65 72 6d | 2d 69 6e 70 75 74 2d 66 |dex term|-input-f|
|00001ad0| 69 6c 74 65 72 2d 66 75 | 6e 63 74 69 6f 6e 73 20 |ilter-fu|nctions |
|00001ae0| 74 65 72 6d 2d 73 63 72 | 6f 6c 6c 2d 74 6f 2d 62 |term-scr|oll-to-b|
|00001af0| 6f 74 74 6f 6d 2d 6f 6e | 2d 6f 75 74 70 75 74 20 |ottom-on|-output |
|00001b00| 74 65 72 6d 2d 73 63 72 | 6f 6c 6c 2d 73 68 6f 77 |term-scr|oll-show|
|00001b10| 2d 6d 61 78 69 6d 75 6d | 2d 6f 75 74 70 75 74 20 |-maximum|-output |
|00001b20| 74 65 72 6d 2d 70 74 79 | 70 20 74 65 72 6d 2d 69 |term-pty|p term-i|
|00001b30| 66 2d 65 6d 61 63 73 31 | 39 20 28 6d 61 63 72 6f |f-emacs1|9 (macro|
|00001b40| 20 2e 20 23 5b 28 26 72 | 65 73 74 20 66 6f 72 6d | . #[(&r|est form|
|00001b50| 73 29 20 22 c0 c1 5c 6e | 5c 22 ad 83 c3 0c 42 87 |s) "..\n|\"....B.|
|00001b60| 22 20 5b 73 74 72 69 6e | 67 2d 6d 61 74 63 68 20 |" [strin|g-match |
|00001b70| 22 5e 31 39 22 20 65 6d | 61 63 73 2d 76 65 72 73 |"^19" em|acs-vers|
|00001b80| 69 6f 6e 20 70 72 6f 67 | 6e 20 66 6f 72 6d 73 5d |ion prog|n forms]|
|00001b90| 20 33 5d 29 20 74 65 72 | 6d 2d 69 73 2d 78 65 6d | 3]) ter|m-is-xem|
|00001ba0| 61 63 73 20 28 6d 61 63 | 72 6f 20 2e 20 23 5b 6e |acs (mac|ro . #[n|
|00001bb0| 69 6c 20 22 c0 87 22 20 | 5b 28 73 74 72 69 6e 67 |il ".." |[(string|
|00001bc0| 2d 6d 61 74 63 68 20 22 | 4c 75 63 69 64 22 20 65 |-match "|Lucid" e|
|00001bd0| 6d 61 63 73 2d 76 65 72 | 73 69 6f 6e 29 5d 20 31 |macs-ver|sion)] 1|
|00001be0| 5d 29 20 74 65 72 6d 2d | 69 66 2d 78 65 6d 61 63 |]) term-|if-xemac|
|00001bf0| 73 20 28 6d 61 63 72 6f | 20 2e 20 23 5b 28 26 72 |s (macro| . #[(&r|
|00001c00| 65 73 74 20 66 6f 72 6d | 73 29 20 22 c0 c1 5c 6e |est form|s) "..\n|
|00001c10| 5c 22 ad 83 c3 0c 42 87 | 22 20 5b 73 74 72 69 6e |\"....B.|" [strin|
|00001c20| 67 2d 6d 61 74 63 68 20 | 22 4c 75 63 69 64 22 20 |g-match |"Lucid" |
|00001c30| 65 6d 61 63 73 2d 76 65 | 72 73 69 6f 6e 20 70 72 |emacs-ve|rsion pr|
|00001c40| 6f 67 6e 20 66 6f 72 6d | 73 5d 20 33 5d 29 20 74 |ogn form|s] 3]) t|
|00001c50| 65 72 6d 2d 69 66 6e 6f | 74 2d 78 65 6d 61 63 73 |erm-ifno|t-xemacs|
|00001c60| 20 28 6d 61 63 72 6f 20 | 2e 20 23 5b 28 26 72 65 | (macro |. #[(&re|
|00001c70| 73 74 20 66 6f 72 6d 73 | 29 20 22 c0 c1 5c 6e 5c |st forms|) "..\n\|
|00001c80| 22 3f ad 83 c3 0c 42 87 | 22 20 5b 73 74 72 69 6e |"?....B.|" [strin|
|00001c90| 67 2d 6d 61 74 63 68 20 | 22 4c 75 63 69 64 22 20 |g-match |"Lucid" |
|00001ca0| 65 6d 61 63 73 2d 76 65 | 72 73 69 6f 6e 20 70 72 |emacs-ve|rsion pr|
|00001cb0| 6f 67 6e 20 66 6f 72 6d | 73 5d 20 33 5d 29 20 74 |ogn form|s] 3]) t|
|00001cc0| 65 72 6d 2d 69 6e 2d 63 | 68 61 72 2d 6d 6f 64 65 |erm-in-c|har-mode|
|00001cd0| 20 28 6d 61 63 72 6f 20 | 2e 20 23 5b 6e 69 6c 20 | (macro |. #[nil |
|00001ce0| 22 c0 87 22 20 5b 28 65 | 71 20 28 63 75 72 72 65 |".." [(e|q (curre|
|00001cf0| 6e 74 2d 6c 6f 63 61 6c | 2d 6d 61 70 29 20 74 65 |nt-local|-map) te|
|00001d00| 72 6d 2d 72 61 77 2d 6d | 61 70 29 5d 20 31 5d 29 |rm-raw-m|ap)] 1])|
|00001d10| 20 74 65 72 6d 2d 69 6e | 2d 6c 69 6e 65 2d 6d 6f | term-in|-line-mo|
|00001d20| 64 65 20 28 6d 61 63 72 | 6f 20 2e 20 23 5b 6e 69 |de (macr|o . #[ni|
|00001d30| 6c 20 22 c0 87 22 20 5b | 28 6e 6f 74 20 28 74 65 |l ".." [|(not (te|
|00001d40| 72 6d 2d 69 6e 2d 63 68 | 61 72 2d 6d 6f 64 65 29 |rm-in-ch|ar-mode)|
|00001d50| 29 5d 20 31 5d 29 20 74 | 65 72 6d 2d 70 61 67 65 |)] 1]) t|erm-page|
|00001d60| 72 2d 65 6e 61 62 6c 65 | 64 20 28 6d 61 63 72 6f |r-enable|d (macro|
|00001d70| 20 2e 20 23 5b 6e 69 6c | 20 22 c0 87 22 20 5b 74 | . #[nil| ".." [t|
|00001d80| 65 72 6d 2d 70 61 67 65 | 72 2d 63 6f 75 6e 74 5d |erm-page|r-count]|
|00001d90| 20 31 5d 29 20 74 65 72 | 6d 2d 68 61 6e 64 6c 69 | 1]) ter|m-handli|
|00001da0| 6e 67 2d 70 61 67 65 72 | 20 28 6d 61 63 72 6f 20 |ng-pager| (macro |
|00001db0| 2e 20 23 5b 6e 69 6c 20 | 22 c0 87 22 20 5b 74 65 |. #[nil |".." [te|
|00001dc0| 72 6d 2d 70 61 67 65 72 | 2d 6f 6c 64 2d 6c 6f 63 |rm-pager|-old-loc|
|00001dd0| 61 6c 2d 6d 61 70 5d 20 | 31 5d 29 20 74 65 72 6d |al-map] |1]) term|
|00001de0| 2d 75 73 69 6e 67 2d 61 | 6c 74 65 72 6e 61 74 65 |-using-a|lternate|
|00001df0| 2d 73 75 62 2d 62 75 66 | 66 65 72 20 28 6d 61 63 |-sub-buf|fer (mac|
|00001e00| 72 6f 20 2e 20 23 5b 6e | 69 6c 20 22 c0 87 22 20 |ro . #[n|il ".." |
|00001e10| 5b 74 65 72 6d 2d 73 61 | 76 65 64 2d 68 6f 6d 65 |[term-sa|ved-home|
|00001e20| 2d 6d 61 72 6b 65 72 5d | 20 31 5d 29 20 74 65 72 |-marker]| 1]) ter|
|00001e30| 6d 2d 74 65 72 6d 69 6e | 61 6c 2d 6d 65 6e 75 20 |m-termin|al-menu |
|00001e40| 28 22 54 65 72 6d 69 6e | 61 6c 22 20 5b 22 43 68 |("Termin|al" ["Ch|
|00001e50| 61 72 61 63 74 65 72 20 | 6d 6f 64 65 22 20 74 65 |aracter |mode" te|
|00001e60| 72 6d 2d 63 68 61 72 2d | 6d 6f 64 65 20 28 74 65 |rm-char-|mode (te|
|00001e70| 72 6d 2d 69 6e 2d 6c 69 | 6e 65 2d 6d 6f 64 65 29 |rm-in-li|ne-mode)|
|00001e80| 5d 20 5b 22 4c 69 6e 65 | 20 6d 6f 64 65 22 20 74 |] ["Line| mode" t|
|00001e90| 65 72 6d 2d 6c 69 6e 65 | 2d 6d 6f 64 65 20 28 74 |erm-line|-mode (t|
|00001ea0| 65 72 6d 2d 69 6e 2d 63 | 68 61 72 2d 6d 6f 64 65 |erm-in-c|har-mode|
|00001eb0| 29 5d 20 5b 22 45 6e 61 | 62 6c 65 20 70 61 67 69 |)] ["Ena|ble pagi|
|00001ec0| 6e 67 22 20 74 65 72 6d | 2d 70 61 67 65 72 2d 74 |ng" term|-pager-t|
|00001ed0| 6f 67 67 6c 65 20 28 6e | 6f 74 20 74 65 72 6d 2d |oggle (n|ot term-|
|00001ee0| 70 61 67 65 72 2d 63 6f | 75 6e 74 29 5d 20 5b 22 |pager-co|unt)] ["|
|00001ef0| 44 69 73 61 62 6c 65 20 | 70 61 67 69 6e 67 22 20 |Disable |paging" |
|00001f00| 74 65 72 6d 2d 70 61 67 | 65 72 2d 74 6f 67 67 6c |term-pag|er-toggl|
|00001f10| 65 20 74 65 72 6d 2d 70 | 61 67 65 72 2d 63 6f 75 |e term-p|ager-cou|
|00001f20| 6e 74 5d 29 5d 20 34 29 | 0a 28 66 73 65 74 20 27 |nt])] 4)|.(fset '|
|00001f30| 74 65 72 6d 2d 6d 6f 64 | 65 20 23 5b 6e 69 6c 20 |term-mod|e #[nil |
|00001f40| 22 c0 20 88 c1 12 c3 14 | c5 0e 06 21 88 c7 c8 21 |". .....|...!...!|
|00001f50| 88 c9 ca 21 16 08 c7 cb | 21 88 c7 cc 21 88 c7 cd |...!....|!...!...|
|00001f60| 21 88 ce 20 53 16 0d cf | 20 53 16 0c c7 d0 21 88 |!.. S...| S....!.|
|00001f70| c7 d1 21 88 c7 d2 21 88 | d3 20 16 12 c7 d4 21 88 |..!...!.|. ....!.|
|00001f80| d3 20 16 14 c7 d5 21 88 | d6 16 15 c7 d7 21 88 c7 |. ....!.|.....!..|
|00001f90| d8 21 88 c7 d9 21 88 c7 | da 21 88 db d9 21 ab 84 |.!...!..|.!...!..|
|00001fa0| 0e 19 ac 86 dc 0e 18 21 | 16 19 c7 dd 21 88 db dd |.......!|....!...|
|00001fb0| 21 ab 84 0e 1d ac 83 de | 16 1d c7 df 21 88 df 4b |!.......|....!..K|
|00001fc0| 16 1f c7 e0 21 88 c7 e1 | 21 88 c7 e2 21 88 c7 e3 |....!...|!...!...|
|00001fd0| 21 88 c7 e4 21 88 c7 e5 | 21 88 c7 e6 21 88 c7 e7 |!...!...|!...!...|
|00001fe0| 21 88 0e 0c 16 27 c7 e8 | 21 88 c7 e9 21 88 c7 ea |!....'..|!...!...|
|00001ff0| 21 88 c7 eb 21 88 c7 ec | 21 88 c7 ed 21 88 c7 ee |!...!...|!...!...|
|00002000| 21 88 c7 ef 21 88 c7 f0 | 21 88 c7 f1 21 88 c7 f2 |!...!...|!...!...|
|00002010| 21 88 c7 f3 21 88 c7 f4 | 21 88 c7 f5 21 88 c7 f6 |!...!...|!...!...|
|00002020| 21 88 c7 f7 21 88 c7 f8 | 21 88 c7 f9 21 88 c7 fa |!...!...|!...!...|
|00002030| 21 88 c7 fb 21 88 c7 fc | 21 88 c7 fd 21 88 d3 20 |!...!...|!...!.. |
|00002040| 16 3d c7 fe 21 88 c7 ff | 21 88 de 16 3f 81 40 00 |.=..!...|!...?.@.|
|00002050| 81 41 00 21 88 81 42 00 | 81 43 00 21 ab 95 c7 81 |.A.!..B.|.C.!....|
|00002060| 44 00 21 81 45 00 0e 44 | 21 4c 88 81 43 00 de 0e |D.!.E..D|!L..C...|
|00002070| 46 5c 22 88 0e 19 ac 86 | dc 0e 18 21 16 19 81 47 |F\".....|...!...G|
|00002080| 00 20 87 22 20 5b 6b 69 | 6c 6c 2d 61 6c 6c 2d 6c |. ." [ki|ll-all-l|
|00002090| 6f 63 61 6c 2d 76 61 72 | 69 61 62 6c 65 73 20 74 |ocal-var|iables t|
|000020a0| 65 72 6d 2d 6d 6f 64 65 | 20 6d 61 6a 6f 72 2d 6d |erm-mode| major-m|
|000020b0| 6f 64 65 20 22 54 65 72 | 6d 22 20 6d 6f 64 65 2d |ode "Ter|m" mode-|
|000020c0| 6e 61 6d 65 20 75 73 65 | 2d 6c 6f 63 61 6c 2d 6d |name use|-local-m|
|000020d0| 61 70 20 74 65 72 6d 2d | 6d 6f 64 65 2d 6d 61 70 |ap term-|mode-map|
|000020e0| 20 6d 61 6b 65 2d 6c 6f | 63 61 6c 2d 76 61 72 69 | make-lo|cal-vari|
|000020f0| 61 62 6c 65 20 74 65 72 | 6d 2d 68 6f 6d 65 2d 6d |able ter|m-home-m|
|00002100| 61 72 6b 65 72 20 63 6f | 70 79 2d 6d 61 72 6b 65 |arker co|py-marke|
|00002110| 72 20 30 20 74 65 72 6d | 2d 73 61 76 65 64 2d 68 |r 0 term|-saved-h|
|00002120| 6f 6d 65 2d 6d 61 72 6b | 65 72 20 74 65 72 6d 2d |ome-mark|er term-|
|00002130| 68 65 69 67 68 74 20 74 | 65 72 6d 2d 77 69 64 74 |height t|erm-widt|
|00002140| 68 20 77 69 6e 64 6f 77 | 2d 77 69 64 74 68 20 77 |h window|-width w|
|00002150| 69 6e 64 6f 77 2d 68 65 | 69 67 68 74 20 74 65 72 |indow-he|ight ter|
|00002160| 6d 2d 74 65 72 6d 69 6e | 61 6c 2d 70 61 72 61 6d |m-termin|al-param|
|00002170| 65 74 65 72 20 74 65 72 | 6d 2d 73 61 76 65 64 2d |eter ter|m-saved-|
|00002180| 63 75 72 73 6f 72 20 74 | 65 72 6d 2d 6c 61 73 74 |cursor t|erm-last|
|00002190| 2d 69 6e 70 75 74 2d 73 | 74 61 72 74 20 6d 61 6b |-input-s|tart mak|
|000021a0| 65 2d 6d 61 72 6b 65 72 | 20 74 65 72 6d 2d 6c 61 |e-marker| term-la|
|000021b0| 73 74 2d 69 6e 70 75 74 | 2d 65 6e 64 20 74 65 72 |st-input|-end ter|
|000021c0| 6d 2d 6c 61 73 74 2d 69 | 6e 70 75 74 2d 6d 61 74 |m-last-i|nput-mat|
|000021d0| 63 68 20 22 22 20 74 65 | 72 6d 2d 70 72 6f 6d 70 |ch "" te|rm-promp|
|000021e0| 74 2d 72 65 67 65 78 70 | 20 74 65 72 6d 2d 69 6e |t-regexp| term-in|
|000021f0| 70 75 74 2d 72 69 6e 67 | 2d 73 69 7a 65 20 74 65 |put-ring|-size te|
|00002200| 72 6d 2d 69 6e 70 75 74 | 2d 72 69 6e 67 20 74 65 |rm-input|-ring te|
|00002210| 72 6d 2d 69 6e 70 75 74 | 2d 72 69 6e 67 2d 66 69 |rm-input|-ring-fi|
|00002220| 6c 65 2d 6e 61 6d 65 20 | 62 6f 75 6e 64 70 20 6d |le-name |boundp m|
|00002230| 61 6b 65 2d 72 69 6e 67 | 20 74 65 72 6d 2d 69 6e |ake-ring| term-in|
|00002240| 70 75 74 2d 72 69 6e 67 | 2d 69 6e 64 65 78 20 6e |put-ring|-index n|
|00002250| 69 6c 20 74 65 72 6d 2d | 63 6f 6d 6d 61 6e 64 2d |il term-|command-|
|00002260| 68 6f 6f 6b 20 74 65 72 | 6d 2d 74 65 72 6d 69 6e |hook ter|m-termin|
|00002270| 61 6c 2d 73 74 61 74 65 | 20 74 65 72 6d 2d 6b 69 |al-state| term-ki|
|00002280| 6c 6c 2d 65 63 68 6f 2d | 6c 69 73 74 20 74 65 72 |ll-echo-|list ter|
|00002290| 6d 2d 73 74 61 72 74 2d | 6c 69 6e 65 2d 63 6f 6c |m-start-|line-col|
|000022a0| 75 6d 6e 20 74 65 72 6d | 2d 63 75 72 72 65 6e 74 |umn term|-current|
|000022b0| 2d 63 6f 6c 75 6d 6e 20 | 74 65 72 6d 2d 63 75 72 |-column |term-cur|
|000022c0| 72 65 6e 74 2d 72 6f 77 | 20 74 65 72 6d 2d 6c 6f |rent-row| term-lo|
|000022d0| 67 2d 62 75 66 66 65 72 | 20 74 65 72 6d 2d 73 63 |g-buffer| term-sc|
|000022e0| 72 6f 6c 6c 2d 73 74 61 | 72 74 20 74 65 72 6d 2d |roll-sta|rt term-|
|000022f0| 73 63 72 6f 6c 6c 2d 65 | 6e 64 20 74 65 72 6d 2d |scroll-e|nd term-|
|00002300| 73 63 72 6f 6c 6c 2d 77 | 69 74 68 2d 64 65 6c 65 |scroll-w|ith-dele|
|00002310| 74 65 20 74 65 72 6d 2d | 70 61 67 65 72 2d 63 6f |te term-|pager-co|
|00002320| 75 6e 74 20 74 65 72 6d | 2d 70 61 67 65 72 2d 6f |unt term|-pager-o|
|00002330| 6c 64 2d 6c 6f 63 61 6c | 2d 6d 61 70 20 74 65 72 |ld-local|-map ter|
|00002340| 6d 2d 6f 6c 64 2d 6d 6f | 64 65 2d 6d 61 70 20 74 |m-old-mo|de-map t|
|00002350| 65 72 6d 2d 69 6e 73 65 | 72 74 2d 6d 6f 64 65 20 |erm-inse|rt-mode |
|00002360| 74 65 72 6d 2d 64 79 6e | 61 6d 69 63 2d 63 6f 6d |term-dyn|amic-com|
|00002370| 70 6c 65 74 65 2d 66 75 | 6e 63 74 69 6f 6e 73 20 |plete-fu|nctions |
|00002380| 74 65 72 6d 2d 63 6f 6d | 70 6c 65 74 69 6f 6e 2d |term-com|pletion-|
|00002390| 66 69 67 6e 6f 72 65 20 | 74 65 72 6d 2d 67 65 74 |fignore |term-get|
|000023a0| 2d 6f 6c 64 2d 69 6e 70 | 75 74 20 74 65 72 6d 2d |-old-inp|ut term-|
|000023b0| 6d 61 74 63 68 69 6e 67 | 2d 69 6e 70 75 74 2d 66 |matching|-input-f|
|000023c0| 72 6f 6d 2d 69 6e 70 75 | 74 2d 73 74 72 69 6e 67 |rom-inpu|t-string|
|000023d0| 20 74 65 72 6d 2d 69 6e | 70 75 74 2d 61 75 74 6f | term-in|put-auto|
|000023e0| 65 78 70 61 6e 64 20 74 | 65 72 6d 2d 69 6e 70 75 |expand t|erm-inpu|
|000023f0| 74 2d 69 67 6e 6f 72 65 | 64 75 70 73 20 74 65 72 |t-ignore|dups ter|
|00002400| 6d 2d 64 65 6c 69 6d 69 | 74 65 72 2d 61 72 67 75 |m-delimi|ter-argu|
|00002410| 6d 65 6e 74 2d 6c 69 73 | 74 20 74 65 72 6d 2d 69 |ment-lis|t term-i|
|00002420| 6e 70 75 74 2d 66 69 6c | 74 65 72 2d 66 75 6e 63 |nput-fil|ter-func|
|00002430| 74 69 6f 6e 73 20 74 65 | 72 6d 2d 69 6e 70 75 74 |tions te|rm-input|
|00002440| 2d 66 69 6c 74 65 72 20 | 74 65 72 6d 2d 69 6e 70 |-filter |term-inp|
|00002450| 75 74 2d 73 65 6e 64 65 | 72 20 74 65 72 6d 2d 65 |ut-sende|r term-e|
|00002460| 6f 6c 2d 6f 6e 2d 73 65 | 6e 64 20 74 65 72 6d 2d |ol-on-se|nd term-|
|00002470| 73 63 72 6f 6c 6c 2d 74 | 6f 2d 62 6f 74 74 6f 6d |scroll-t|o-bottom|
|00002480| 2d 6f 6e 2d 6f 75 74 70 | 75 74 20 74 65 72 6d 2d |-on-outp|ut term-|
|00002490| 73 63 72 6f 6c 6c 2d 73 | 68 6f 77 2d 6d 61 78 69 |scroll-s|how-maxi|
|000024a0| 6d 75 6d 2d 6f 75 74 70 | 75 74 20 74 65 72 6d 2d |mum-outp|ut term-|
|000024b0| 70 74 79 70 20 74 65 72 | 6d 2d 65 78 65 63 2d 68 |ptyp ter|m-exec-h|
|000024c0| 6f 6f 6b 20 74 65 72 6d | 2d 76 65 72 74 69 63 61 |ook term|-vertica|
|000024d0| 6c 2d 6d 6f 74 69 6f 6e | 20 74 65 72 6d 2d 70 65 |l-motion| term-pe|
|000024e0| 6e 64 69 6e 67 2d 64 65 | 6c 65 74 65 2d 6d 61 72 |nding-de|lete-mar|
|000024f0| 6b 65 72 20 74 65 72 6d | 2d 63 75 72 72 65 6e 74 |ker term|-current|
|00002500| 2d 66 61 63 65 20 74 65 | 72 6d 2d 70 65 6e 64 69 |-face te|rm-pendi|
|00002510| 6e 67 2d 66 72 61 6d 65 | 20 72 75 6e 2d 68 6f 6f |ng-frame| run-hoo|
|00002520| 6b 73 20 74 65 72 6d 2d | 6d 6f 64 65 2d 68 6f 6f |ks term-|mode-hoo|
|00002530| 6b 20 66 62 6f 75 6e 64 | 70 20 61 64 64 2d 73 75 |k fbound|p add-su|
|00002540| 62 6d 65 6e 75 20 63 75 | 72 72 65 6e 74 2d 6d 65 |bmenu cu|rrent-me|
|00002550| 6e 75 62 61 72 20 63 6f | 70 79 2d 73 65 71 75 65 |nubar co|py-seque|
|00002560| 6e 63 65 20 74 65 72 6d | 2d 74 65 72 6d 69 6e 61 |nce term|-termina|
|00002570| 6c 2d 6d 65 6e 75 20 74 | 65 72 6d 2d 75 70 64 61 |l-menu t|erm-upda|
|00002580| 74 65 2d 6d 6f 64 65 2d | 6c 69 6e 65 5d 20 33 20 |te-mode-|line] 3 |
|00002590| 22 5c 0a 4d 61 6a 6f 72 | 20 6d 6f 64 65 20 66 6f |"\.Major| mode fo|
|000025a0| 72 20 69 6e 74 65 72 61 | 63 74 69 6e 67 20 77 69 |r intera|cting wi|
|000025b0| 74 68 20 61 6e 20 69 6e | 66 65 72 69 6f 72 20 69 |th an in|ferior i|
|000025c0| 6e 74 65 72 70 72 65 74 | 65 72 2e 0a 49 6e 74 65 |nterpret|er..Inte|
|000025d0| 72 70 72 65 74 65 72 20 | 6e 61 6d 65 20 69 73 20 |rpreter |name is |
|000025e0| 73 61 6d 65 20 61 73 20 | 62 75 66 66 65 72 20 6e |same as |buffer n|
|000025f0| 61 6d 65 2c 20 73 61 6e | 73 20 74 68 65 20 61 73 |ame, san|s the as|
|00002600| 74 65 72 69 73 6b 73 2e | 0a 49 6e 20 6c 69 6e 65 |terisks.|.In line|
|00002610| 20 73 75 62 2d 6d 6f 64 | 65 2c 20 72 65 74 75 72 | sub-mod|e, retur|
|00002620| 6e 20 61 74 20 65 6e 64 | 20 6f 66 20 62 75 66 66 |n at end| of buff|
|00002630| 65 72 20 73 65 6e 64 73 | 20 6c 69 6e 65 20 61 73 |er sends| line as|
|00002640| 20 69 6e 70 75 74 2c 0a | 77 68 69 6c 65 20 72 65 | input,.|while re|
|00002650| 74 75 72 6e 20 6e 6f 74 | 20 61 74 20 65 6e 64 20 |turn not| at end |
|00002660| 63 6f 70 69 65 73 20 72 | 65 73 74 20 6f 66 20 6c |copies r|est of l|
|00002670| 69 6e 65 20 74 6f 20 65 | 6e 64 20 61 6e 64 20 73 |ine to e|nd and s|
|00002680| 65 6e 64 73 20 69 74 2e | 0a 49 6e 20 63 68 61 72 |ends it.|.In char|
|00002690| 20 73 75 62 2d 6d 6f 64 | 65 2c 20 65 61 63 68 20 | sub-mod|e, each |
|000026a0| 63 68 61 72 61 63 74 65 | 72 20 28 65 78 63 65 70 |characte|r (excep|
|000026b0| 74 20 60 74 65 72 6d 2d | 65 73 63 61 70 65 2d 63 |t `term-|escape-c|
|000026c0| 68 61 72 60 29 20 69 73 | 0a 73 65 74 20 69 6d 6d |har`) is|.set imm|
|000026d0| 65 64 69 61 74 65 6c 79 | 2e 0a 0a 54 68 69 73 20 |ediately|...This |
|000026e0| 6d 6f 64 65 20 69 73 20 | 74 79 70 69 63 61 6c 6c |mode is |typicall|
|000026f0| 79 20 63 75 73 74 6f 6d | 69 73 65 64 20 74 6f 20 |y custom|ised to |
|00002700| 63 72 65 61 74 65 20 69 | 6e 66 65 72 69 6f 72 2d |create i|nferior-|
|00002710| 6c 69 73 70 2d 6d 6f 64 | 65 2c 0a 73 68 65 6c 6c |lisp-mod|e,.shell|
|00002720| 2d 6d 6f 64 65 2c 20 65 | 74 63 2e 2e 20 54 68 69 |-mode, e|tc.. Thi|
|00002730| 73 20 63 61 6e 20 62 65 | 20 64 6f 6e 65 20 62 79 |s can be| done by|
|00002740| 20 73 65 74 74 69 6e 67 | 20 74 68 65 20 68 6f 6f | setting| the hoo|
|00002750| 6b 73 0a 74 65 72 6d 2d | 69 6e 70 75 74 2d 66 69 |ks.term-|input-fi|
|00002760| 6c 74 65 72 2d 66 75 6e | 63 74 69 6f 6e 73 2c 20 |lter-fun|ctions, |
|00002770| 74 65 72 6d 2d 69 6e 70 | 75 74 2d 66 69 6c 74 65 |term-inp|ut-filte|
|00002780| 72 2c 20 74 65 72 6d 2d | 69 6e 70 75 74 2d 73 65 |r, term-|input-se|
|00002790| 6e 64 65 72 20 61 6e 64 | 0a 74 65 72 6d 2d 67 65 |nder and|.term-ge|
|000027a0| 74 2d 6f 6c 64 2d 69 6e | 70 75 74 20 74 6f 20 61 |t-old-in|put to a|
|000027b0| 70 70 72 6f 70 72 69 61 | 74 65 20 66 75 6e 63 74 |ppropria|te funct|
|000027c0| 69 6f 6e 73 2c 20 61 6e | 64 20 74 68 65 20 76 61 |ions, an|d the va|
|000027d0| 72 69 61 62 6c 65 0a 74 | 65 72 6d 2d 70 72 6f 6d |riable.t|erm-prom|
|000027e0| 70 74 2d 72 65 67 65 78 | 70 20 74 6f 20 74 68 65 |pt-regex|p to the|
|000027f0| 20 61 70 70 72 6f 70 72 | 69 61 74 65 20 72 65 67 | appropr|iate reg|
|00002800| 75 6c 61 72 20 65 78 70 | 72 65 73 73 69 6f 6e 2e |ular exp|ression.|
|00002810| 0a 0a 41 6e 20 69 6e 70 | 75 74 20 68 69 73 74 6f |..An inp|ut histo|
|00002820| 72 79 20 69 73 20 6d 61 | 69 6e 74 61 69 6e 65 64 |ry is ma|intained|
|00002830| 20 6f 66 20 73 69 7a 65 | 20 60 74 65 72 6d 2d 69 | of size| `term-i|
|00002840| 6e 70 75 74 2d 72 69 6e | 67 2d 73 69 7a 65 27 2c |nput-rin|g-size',|
|00002850| 20 61 6e 64 0a 63 61 6e | 20 62 65 20 61 63 63 65 | and.can| be acce|
|00002860| 73 73 65 64 20 77 69 74 | 68 20 74 68 65 20 63 6f |ssed wit|h the co|
|00002870| 6d 6d 61 6e 64 73 20 5c | 5c 5b 74 65 72 6d 2d 6e |mmands \|\[term-n|
|00002880| 65 78 74 2d 69 6e 70 75 | 74 5d 2c 20 5c 5c 5b 74 |ext-inpu|t], \\[t|
|00002890| 65 72 6d 2d 70 72 65 76 | 69 6f 75 73 2d 69 6e 70 |erm-prev|ious-inp|
|000028a0| 75 74 5d 2c 20 61 6e 64 | 20 5c 5c 5b 74 65 72 6d |ut], and| \\[term|
|000028b0| 2d 64 79 6e 61 6d 69 63 | 2d 6c 69 73 74 2d 69 6e |-dynamic|-list-in|
|000028c0| 70 75 74 2d 72 69 6e 67 | 5d 2e 0a 49 6e 70 75 74 |put-ring|]..Input|
|000028d0| 20 72 69 6e 67 20 68 69 | 73 74 6f 72 79 20 65 78 | ring hi|story ex|
|000028e0| 70 61 6e 73 69 6f 6e 20 | 63 61 6e 20 62 65 20 61 |pansion |can be a|
|000028f0| 63 68 69 65 76 65 64 20 | 77 69 74 68 20 74 68 65 |chieved |with the|
|00002900| 20 63 6f 6d 6d 61 6e 64 | 73 0a 5c 5c 5b 74 65 72 | command|s.\\[ter|
|00002910| 6d 2d 72 65 70 6c 61 63 | 65 2d 62 79 2d 65 78 70 |m-replac|e-by-exp|
|00002920| 61 6e 64 65 64 2d 68 69 | 73 74 6f 72 79 5d 20 6f |anded-hi|story] o|
|00002930| 72 20 5c 5c 5b 74 65 72 | 6d 2d 6d 61 67 69 63 2d |r \\[ter|m-magic-|
|00002940| 73 70 61 63 65 5d 2e 0a | 49 6e 70 75 74 20 72 69 |space]..|Input ri|
|00002950| 6e 67 20 65 78 70 61 6e | 73 69 6f 6e 20 69 73 20 |ng expan|sion is |
|00002960| 63 6f 6e 74 72 6f 6c 6c | 65 64 20 62 79 20 74 68 |controll|ed by th|
|00002970| 65 20 76 61 72 69 61 62 | 6c 65 20 60 74 65 72 6d |e variab|le `term|
|00002980| 2d 69 6e 70 75 74 2d 61 | 75 74 6f 65 78 70 61 6e |-input-a|utoexpan|
|00002990| 64 27 2c 0a 61 6e 64 20 | 61 64 64 69 74 69 6f 6e |d',.and |addition|
|000029a0| 20 69 73 20 63 6f 6e 74 | 72 6f 6c 6c 65 64 20 62 | is cont|rolled b|
|000029b0| 79 20 74 68 65 20 76 61 | 72 69 61 62 6c 65 20 60 |y the va|riable `|
|000029c0| 74 65 72 6d 2d 69 6e 70 | 75 74 2d 69 67 6e 6f 72 |term-inp|ut-ignor|
|000029d0| 65 64 75 70 73 27 2e 0a | 0a 49 6e 70 75 74 20 74 |edups'..|.Input t|
|000029e0| 6f 2c 20 61 6e 64 20 6f | 75 74 70 75 74 20 66 72 |o, and o|utput fr|
|000029f0| 6f 6d 2c 20 74 68 65 20 | 73 75 62 70 72 6f 63 65 |om, the |subproce|
|00002a00| 73 73 20 63 61 6e 20 63 | 61 75 73 65 20 74 68 65 |ss can c|ause the|
|00002a10| 20 77 69 6e 64 6f 77 20 | 74 6f 20 73 63 72 6f 6c | window |to scrol|
|00002a20| 6c 20 74 6f 0a 74 68 65 | 20 65 6e 64 20 6f 66 20 |l to.the| end of |
|00002a30| 74 68 65 20 62 75 66 66 | 65 72 2e 20 20 53 65 65 |the buff|er. See|
|00002a40| 20 76 61 72 69 61 62 6c | 65 73 20 60 74 65 72 6d | variabl|es `term|
|00002a50| 2d 73 63 72 6f 6c 6c 2d | 74 6f 2d 62 6f 74 74 6f |-scroll-|to-botto|
|00002a60| 6d 2d 6f 6e 2d 69 6e 70 | 75 74 27 2c 0a 61 6e 64 |m-on-inp|ut',.and|
|00002a70| 20 60 74 65 72 6d 2d 73 | 63 72 6f 6c 6c 2d 74 6f | `term-s|croll-to|
|00002a80| 2d 62 6f 74 74 6f 6d 2d | 6f 6e 2d 6f 75 74 70 75 |-bottom-|on-outpu|
|00002a90| 74 27 2e 0a 0a 49 66 20 | 79 6f 75 20 61 63 63 69 |t'...If |you acci|
|00002aa0| 64 65 6e 74 61 6c 6c 79 | 20 73 75 73 70 65 6e 64 |dentally| suspend|
|00002ab0| 20 79 6f 75 72 20 70 72 | 6f 63 65 73 73 2c 20 75 | your pr|ocess, u|
|00002ac0| 73 65 20 5c 5c 5b 74 65 | 72 6d 2d 63 6f 6e 74 69 |se \\[te|rm-conti|
|00002ad0| 6e 75 65 2d 73 75 62 6a | 6f 62 5d 0a 74 6f 20 63 |nue-subj|ob].to c|
|00002ae0| 6f 6e 74 69 6e 75 65 20 | 69 74 2e 0a 0a 5c 5c 7b |ontinue |it...\\{|
|00002af0| 74 65 72 6d 2d 6d 6f 64 | 65 2d 6d 61 70 7d 0a 0a |term-mod|e-map}..|
|00002b00| 45 6e 74 72 79 20 74 6f | 20 74 68 69 73 20 6d 6f |Entry to| this mo|
|00002b10| 64 65 20 72 75 6e 73 20 | 74 68 65 20 68 6f 6f 6b |de runs |the hook|
|00002b20| 73 20 6f 6e 20 74 65 72 | 6d 2d 6d 6f 64 65 2d 68 |s on ter|m-mode-h|
|00002b30| 6f 6f 6b 22 20 6e 69 6c | 5d 29 0a 28 62 79 74 65 |ook" nil|]).(byte|
|00002b40| 2d 63 6f 64 65 20 22 08 | 84 a1 00 c1 20 10 c2 08 |-code ".|.... ...|
|00002b50| c3 c4 23 88 c2 08 c5 c6 | 23 88 c2 08 c7 c8 23 88 |..#.....|#.....#.|
|00002b60| c2 08 c9 ca 23 88 c2 08 | cb cc 23 88 c2 08 cd ce |....#...|..#.....|
|00002b70| 23 88 c2 08 cf d0 23 88 | c2 08 d1 d2 23 88 c2 08 |#.....#.|....#...|
|00002b80| d3 d4 23 88 c2 08 d5 d6 | 23 88 c2 08 d7 d8 23 88 |..#.....|#.....#.|
|00002b90| c2 08 d9 da 23 88 c2 08 | db dc 23 88 c2 08 dd de |....#...|..#.....|
|00002ba0| 23 88 c2 08 df e0 23 88 | c2 08 e1 cc 23 88 c2 08 |#.....#.|....#...|
|00002bb0| e2 e3 23 88 c2 08 e4 e5 | 23 88 c2 08 e6 e7 23 88 |..#.....|#.....#.|
|00002bc0| c2 08 e8 e9 23 88 c2 08 | ea eb 23 88 c2 08 ec ed |....#...|..#.....|
|00002bd0| 23 88 c2 08 ee ef 23 88 | c2 08 f0 f1 23 88 f2 f3 |#.....#.|....#...|
|00002be0| f4 5c 22 88 f5 f4 f6 5c | 22 88 f7 f8 4d 88 f9 fa |.\"....\|"...M...|
|00002bf0| 4d 88 fb fc 4d 88 fd fe | 4d 87 22 20 5b 74 65 72 |M...M...|M." [ter|
|00002c00| 6d 2d 6d 6f 64 65 2d 6d | 61 70 20 6d 61 6b 65 2d |m-mode-m|ap make-|
|00002c10| 73 70 61 72 73 65 2d 6b | 65 79 6d 61 70 20 64 65 |sparse-k|eymap de|
|00002c20| 66 69 6e 65 2d 6b 65 79 | 20 22 1b 70 22 20 74 65 |fine-key| ".p" te|
|00002c30| 72 6d 2d 70 72 65 76 69 | 6f 75 73 2d 69 6e 70 75 |rm-previ|ous-inpu|
|00002c40| 74 20 22 1b 6e 22 20 74 | 65 72 6d 2d 6e 65 78 74 |t ".n" t|erm-next|
|00002c50| 2d 69 6e 70 75 74 20 22 | 1b 72 22 20 74 65 72 6d |-input "|.r" term|
|00002c60| 2d 70 72 65 76 69 6f 75 | 73 2d 6d 61 74 63 68 69 |-previou|s-matchi|
|00002c70| 6e 67 2d 69 6e 70 75 74 | 20 22 1b 73 22 20 74 65 |ng-input| ".s" te|
|00002c80| 72 6d 2d 6e 65 78 74 2d | 6d 61 74 63 68 69 6e 67 |rm-next-|matching|
|00002c90| 2d 69 6e 70 75 74 20 22 | 1b 0c 22 20 74 65 72 6d |-input "|.." term|
|00002ca0| 2d 73 68 6f 77 2d 6f 75 | 74 70 75 74 20 22 0d 22 |-show-ou|tput "."|
|00002cb0| 20 74 65 72 6d 2d 73 65 | 6e 64 2d 69 6e 70 75 74 | term-se|nd-input|
|00002cc0| 20 22 04 22 20 74 65 72 | 6d 2d 64 65 6c 63 68 61 | "." ter|m-delcha|
|00002cd0| 72 2d 6f 72 2d 6d 61 79 | 62 65 2d 65 6f 66 20 22 |r-or-may|be-eof "|
|00002ce0| 03 01 22 20 74 65 72 6d | 2d 62 6f 6c 20 22 03 15 |.." term|-bol "..|
|00002cf0| 22 20 74 65 72 6d 2d 6b | 69 6c 6c 2d 69 6e 70 75 |" term-k|ill-inpu|
|00002d00| 74 20 22 03 17 22 20 62 | 61 63 6b 77 61 72 64 2d |t ".." b|ackward-|
|00002d10| 6b 69 6c 6c 2d 77 6f 72 | 64 20 22 03 03 22 20 74 |kill-wor|d ".." t|
|00002d20| 65 72 6d 2d 69 6e 74 65 | 72 72 75 70 74 2d 73 75 |erm-inte|rrupt-su|
|00002d30| 62 6a 6f 62 20 22 03 1a | 22 20 74 65 72 6d 2d 73 |bjob "..|" term-s|
|00002d40| 74 6f 70 2d 73 75 62 6a | 6f 62 20 22 03 1c 22 20 |top-subj|ob ".." |
|00002d50| 74 65 72 6d 2d 71 75 69 | 74 2d 73 75 62 6a 6f 62 |term-qui|t-subjob|
|00002d60| 20 22 03 0d 22 20 74 65 | 72 6d 2d 63 6f 70 79 2d | ".." te|rm-copy-|
|00002d70| 6f 6c 64 2d 69 6e 70 75 | 74 20 22 03 0f 22 20 74 |old-inpu|t ".." t|
|00002d80| 65 72 6d 2d 6b 69 6c 6c | 2d 6f 75 74 70 75 74 20 |erm-kill|-output |
|00002d90| 22 03 12 22 20 22 03 05 | 22 20 74 65 72 6d 2d 73 |".." "..|" term-s|
|00002da0| 68 6f 77 2d 6d 61 78 69 | 6d 75 6d 2d 6f 75 74 70 |how-maxi|mum-outp|
|00002db0| 75 74 20 22 03 0c 22 20 | 74 65 72 6d 2d 64 79 6e |ut ".." |term-dyn|
|00002dc0| 61 6d 69 63 2d 6c 69 73 | 74 2d 69 6e 70 75 74 2d |amic-lis|t-input-|
|00002dd0| 72 69 6e 67 20 22 03 0e | 22 20 74 65 72 6d 2d 6e |ring "..|" term-n|
|00002de0| 65 78 74 2d 70 72 6f 6d | 70 74 20 22 03 10 22 20 |ext-prom|pt ".." |
|00002df0| 74 65 72 6d 2d 70 72 65 | 76 69 6f 75 73 2d 70 72 |term-pre|vious-pr|
|00002e00| 6f 6d 70 74 20 22 03 04 | 22 20 74 65 72 6d 2d 73 |ompt "..|" term-s|
|00002e10| 65 6e 64 2d 65 6f 66 20 | 22 03 0b 22 20 74 65 72 |end-eof |".." ter|
|00002e20| 6d 2d 63 68 61 72 2d 6d | 6f 64 65 20 22 03 5c 6e |m-char-m|ode ".\n|
|00002e30| 22 20 74 65 72 6d 2d 6c | 69 6e 65 2d 6d 6f 64 65 |" term-l|ine-mode|
|00002e40| 20 22 03 11 22 20 74 65 | 72 6d 2d 70 61 67 65 72 | ".." te|rm-pager|
|00002e50| 2d 74 6f 67 67 6c 65 20 | 63 6f 70 79 2d 66 61 63 |-toggle |copy-fac|
|00002e60| 65 20 64 65 66 61 75 6c | 74 20 74 65 72 6d 2d 75 |e defaul|t term-u|
|00002e70| 6e 64 65 72 6c 69 6e 65 | 2d 66 61 63 65 20 73 65 |nderline|-face se|
|00002e80| 74 2d 66 61 63 65 2d 75 | 6e 64 65 72 6c 69 6e 65 |t-face-u|nderline|
|00002e90| 2d 70 20 74 20 74 65 72 | 6d 2d 72 65 73 65 74 2d |-p t ter|m-reset-|
|00002ea0| 73 69 7a 65 20 23 5b 28 | 68 65 69 67 68 74 20 77 |size #[(|height w|
|00002eb0| 69 64 74 68 29 20 22 08 | 11 5c 6e 13 c4 15 c4 16 |idth) ".|.\n.....|
|00002ec0| 06 c4 16 07 c8 c9 08 5c | 22 87 22 20 5b 68 65 69 |.......\|"." [hei|
|00002ed0| 67 68 74 20 74 65 72 6d | 2d 68 65 69 67 68 74 20 |ght term|-height |
|00002ee0| 77 69 64 74 68 20 74 65 | 72 6d 2d 77 69 64 74 68 |width te|rm-width|
|00002ef0| 20 6e 69 6c 20 74 65 72 | 6d 2d 73 74 61 72 74 2d | nil ter|m-start-|
|00002f00| 6c 69 6e 65 2d 63 6f 6c | 75 6d 6e 20 74 65 72 6d |line-col|umn term|
|00002f10| 2d 63 75 72 72 65 6e 74 | 2d 72 6f 77 20 74 65 72 |-current|-row ter|
|00002f20| 6d 2d 63 75 72 72 65 6e | 74 2d 63 6f 6c 75 6d 6e |m-curren|t-column|
|00002f30| 20 74 65 72 6d 2d 73 63 | 72 6f 6c 6c 2d 72 65 67 | term-sc|roll-reg|
|00002f40| 69 6f 6e 20 30 5d 20 33 | 5d 20 74 65 72 6d 2d 63 |ion 0] 3|] term-c|
|00002f50| 68 65 63 6b 2d 6b 69 6c | 6c 2d 65 63 68 6f 2d 6c |heck-kil|l-echo-l|
|00002f60| 69 73 74 20 23 5b 6e 69 | 6c 20 22 08 c1 60 1a 1b |ist #[ni|l "..`..|
|00002f70| 1c c5 8e c1 7f 88 0c ab | b9 0c 40 89 1e 06 47 1e |........|..@...G.|
|00002f80| 07 60 0e 07 5a 89 1e 08 | 65 59 ab a0 0e 06 0e 08 |.`..Z...|eY......|
|00002f90| 60 7b 98 ab 97 c9 0e 07 | 21 88 0c 41 10 c1 16 5c |`{......|!..A...\|
|00002fa0| 6e c1 16 0b c1 16 0c c1 | 14 cd 13 aa 83 0c 41 14 |n.......|......A.|
|00002fb0| 2b aa 44 29 0b 2b 87 22 | 20 5b 74 65 72 6d 2d 6b |+.D).+."| [term-k|
|00002fc0| 69 6c 6c 2d 65 63 68 6f | 2d 6c 69 73 74 20 6e 69 |ill-echo|-list ni|
|00002fd0| 6c 20 73 61 76 65 2d 70 | 6f 69 6e 74 20 66 6f 75 |l save-p|oint fou|
|00002fe0| 6e 64 20 63 75 72 20 28 | 28 62 79 74 65 2d 63 6f |nd cur (|(byte-co|
|00002ff0| 64 65 20 22 08 ac 83 09 | 62 88 c2 87 22 20 5b 66 |de "....|b..." [f|
|00003000| 6f 75 6e 64 20 73 61 76 | 65 2d 70 6f 69 6e 74 20 |ound sav|e-point |
|00003010| 6e 69 6c 5d 20 31 29 29 | 20 73 74 72 20 6c 65 6e |nil] 1))| str len|
|00003020| 20 73 74 61 72 74 20 64 | 65 6c 65 74 65 2d 62 61 | start d|elete-ba|
|00003030| 63 6b 77 61 72 64 2d 63 | 68 61 72 20 74 65 72 6d |ckward-c|har term|
|00003040| 2d 63 75 72 72 65 6e 74 | 2d 63 6f 6c 75 6d 6e 20 |-current|-column |
|00003050| 74 65 72 6d 2d 63 75 72 | 72 65 6e 74 2d 72 6f 77 |term-cur|rent-row|
|00003060| 20 74 65 72 6d 2d 73 74 | 61 72 74 2d 6c 69 6e 65 | term-st|art-line|
|00003070| 2d 63 6f 6c 75 6d 6e 20 | 74 5d 20 34 5d 20 74 65 |-column |t] 4] te|
|00003080| 72 6d 2d 63 68 65 63 6b | 2d 73 69 7a 65 20 23 5b |rm-check|-size #[|
|00003090| 28 70 72 6f 63 65 73 73 | 29 20 22 08 c1 20 53 55 |(process|) ".. SU|
|000030a0| ab 88 5c 6e c3 20 53 55 | 3f ad 8f c4 c1 20 53 c3 |..\n. SU|?.... S.|
|000030b0| 20 53 5c 22 88 c5 0e 06 | 08 5c 6e 23 87 22 20 5b | S\"....|.\n#." [|
|000030c0| 74 65 72 6d 2d 68 65 69 | 67 68 74 20 77 69 6e 64 |term-hei|ght wind|
|000030d0| 6f 77 2d 68 65 69 67 68 | 74 20 74 65 72 6d 2d 77 |ow-heigh|t term-w|
|000030e0| 69 64 74 68 20 77 69 6e | 64 6f 77 2d 77 69 64 74 |idth win|dow-widt|
|000030f0| 68 20 74 65 72 6d 2d 72 | 65 73 65 74 2d 73 69 7a |h term-r|eset-siz|
|00003100| 65 20 73 65 74 2d 70 72 | 6f 63 65 73 73 2d 77 69 |e set-pr|ocess-wi|
|00003110| 6e 64 6f 77 2d 73 69 7a | 65 20 70 72 6f 63 65 73 |ndow-siz|e proces|
|00003120| 73 5d 20 34 5d 20 74 65 | 72 6d 2d 73 65 6e 64 2d |s] 4] te|rm-send-|
|00003130| 72 61 77 2d 73 74 72 69 | 6e 67 20 23 5b 28 63 68 |raw-stri|ng #[(ch|
|00003140| 61 72 73 29 20 22 c0 70 | 21 89 19 ac 85 c2 c3 21 |ars) ".p|!......!|
|00003150| aa 90 c4 09 21 62 88 0d | ab 83 c6 20 15 c7 09 0e |....!b..|... ....|
|00003160| 08 5c 22 29 87 22 20 5b | 67 65 74 2d 62 75 66 66 |.\")." [|get-buff|
|00003170| 65 72 2d 70 72 6f 63 65 | 73 73 20 70 72 6f 63 20 |er-proce|ss proc |
|00003180| 65 72 72 6f 72 20 22 43 | 75 72 72 65 6e 74 20 62 |error "C|urrent b|
|00003190| 75 66 66 65 72 20 68 61 | 73 20 6e 6f 20 70 72 6f |uffer ha|s no pro|
|000031a0| 63 65 73 73 22 20 70 72 | 6f 63 65 73 73 2d 6d 61 |cess" pr|ocess-ma|
|000031b0| 72 6b 20 74 65 72 6d 2d | 70 61 67 65 72 2d 63 6f |rk term-|pager-co|
|000031c0| 75 6e 74 20 74 65 72 6d | 2d 63 75 72 72 65 6e 74 |unt term|-current|
|000031d0| 2d 72 6f 77 20 73 65 6e | 64 2d 73 74 72 69 6e 67 |-row sen|d-string|
|000031e0| 20 63 68 61 72 73 5d 20 | 34 5d 5d 20 34 29 0a 28 | chars] |4]] 4).(|
|000031f0| 66 73 65 74 20 27 74 65 | 72 6d 2d 73 65 6e 64 2d |fset 'te|rm-send-|
|00003200| 72 61 77 20 23 5b 6e 69 | 6c 20 22 c0 09 21 ab cc |raw #[ni|l "..!..|
|00003210| c2 09 21 c3 09 21 c4 1d | 1e 06 1e 07 c5 0e 07 3e |..!..!..|.......>|
|00003220| ab 89 c8 15 c9 c5 0e 07 | 5c 22 16 07 ca cb cc 0e |........|\"......|
|00003230| 07 0e 06 43 5c 22 21 c8 | c4 c8 24 89 1e 0d ab 97 |...C\"!.|..$.....|
|00003240| 0d ab 8a ce cf d0 0e 0d | 5c 22 21 88 aa 90 ce d1 |........|\"!.....|
|00003250| d2 0e 0d 5c 22 21 88 aa | 86 d3 d4 09 21 21 88 2c |...\"!..|....!!.,|
|00003260| c4 87 22 20 5b 6b 65 79 | 2d 70 72 65 73 73 2d 65 |.." [key|-press-e|
|00003270| 76 65 6e 74 2d 70 20 6c | 61 73 74 2d 69 6e 70 75 |vent-p l|ast-inpu|
|00003280| 74 2d 65 76 65 6e 74 20 | 65 76 65 6e 74 2d 6d 6f |t-event |event-mo|
|00003290| 64 69 66 69 65 72 73 20 | 65 76 65 6e 74 2d 6b 65 |difiers |event-ke|
|000032a0| 79 20 6e 69 6c 20 6d 65 | 74 61 20 6b 65 79 20 6d |y nil me|ta key m|
|000032b0| 6f 64 73 20 74 20 64 65 | 6c 71 20 65 76 65 6e 74 |ods t de|lq event|
|000032c0| 2d 74 6f 2d 63 68 61 72 | 61 63 74 65 72 20 63 68 |-to-char|acter ch|
|000032d0| 61 72 61 63 74 65 72 2d | 74 6f 2d 65 76 65 6e 74 |aracter-|to-event|
|000032e0| 20 61 70 70 65 6e 64 20 | 61 73 63 69 69 20 74 65 | append |ascii te|
|000032f0| 72 6d 2d 73 65 6e 64 2d | 72 61 77 2d 73 74 72 69 |rm-send-|raw-stri|
|00003300| 6e 67 20 66 6f 72 6d 61 | 74 20 22 1b 25 63 22 20 |ng forma|t ".%c" |
|00003310| 6d 61 6b 65 2d 73 74 72 | 69 6e 67 20 31 20 63 6f |make-str|ing 1 co|
|00003320| 6d 6d 61 6e 64 2d 65 78 | 65 63 75 74 65 20 6b 65 |mmand-ex|ecute ke|
|00003330| 79 2d 62 69 6e 64 69 6e | 67 5d 20 36 20 22 5c 0a |y-bindin|g] 6 "\.|
|00003340| 53 65 6e 64 20 74 68 65 | 20 6c 61 73 74 20 63 68 |Send the| last ch|
|00003350| 61 72 61 63 74 65 72 20 | 74 79 70 65 64 20 74 68 |aracter |typed th|
|00003360| 72 6f 75 67 68 20 74 68 | 65 20 74 65 72 6d 69 6e |rough th|e termin|
|00003370| 61 6c 2d 65 6d 75 6c 61 | 74 6f 72 0a 77 69 74 68 |al-emula|tor.with|
|00003380| 6f 75 74 20 61 6e 79 20 | 69 6e 74 65 72 70 72 65 |out any |interpre|
|00003390| 74 61 74 69 6f 6e 2e 22 | 20 6e 69 6c 5d 29 0a 28 |tation."| nil]).(|
|000033a0| 66 73 65 74 20 27 74 65 | 72 6d 2d 73 65 6e 64 2d |fset 'te|rm-send-|
|000033b0| 72 61 77 2d 6d 65 74 61 | 20 23 5b 6e 69 6c 20 22 |raw-meta| #[nil "|
|000033c0| 08 39 ab 98 08 c1 4e 89 | 1a ab 83 5c 6e 40 10 08 |.9....N.|...\n@..|
|000033d0| 39 ab 89 08 c3 4e 89 12 | ab 82 5c 6e 10 29 c4 08 |9....N..|..\n.)..|
|000033e0| a7 ab 90 08 c5 56 ab 8b | 08 c6 57 ab 86 c7 c8 08 |.....V..|..W.....|
|000033f0| 5c 22 aa 84 c9 ca 08 5c | 22 21 87 22 20 5b 6c 61 |\".....\|"!." [la|
|00003400| 73 74 2d 69 6e 70 75 74 | 2d 63 68 61 72 20 65 76 |st-input|-char ev|
|00003410| 65 6e 74 2d 73 79 6d 62 | 6f 6c 2d 65 6c 65 6d 65 |ent-symb|ol-eleme|
|00003420| 6e 74 73 20 74 6d 70 20 | 61 73 63 69 69 2d 63 68 |nts tmp |ascii-ch|
|00003430| 61 72 61 63 74 65 72 20 | 74 65 72 6d 2d 73 65 6e |aracter |term-sen|
|00003440| 64 2d 72 61 77 2d 73 74 | 72 69 6e 67 20 31 32 37 |d-raw-st|ring 127|
|00003450| 20 32 35 36 20 6d 61 6b | 65 2d 73 74 72 69 6e 67 | 256 mak|e-string|
|00003460| 20 31 20 66 6f 72 6d 61 | 74 20 22 1b 25 63 22 5d | 1 forma|t ".%c"]|
|00003470| 20 35 20 6e 69 6c 20 6e | 69 6c 5d 29 0a 28 66 73 | 5 nil n|il]).(fs|
|00003480| 65 74 20 27 74 65 72 6d | 2d 6d 6f 75 73 65 2d 70 |et 'term|-mouse-p|
|00003490| 61 73 74 65 20 23 5b 28 | 63 6c 69 63 6b 20 61 72 |aste #[(|click ar|
|000034a0| 67 29 20 22 c0 c1 c2 c3 | 8f ae 87 c4 20 ae 83 c5 |g) "....|.... ...|
|000034b0| c6 21 21 88 c1 87 22 20 | 5b 74 65 72 6d 2d 73 65 |.!!..." |[term-se|
|000034c0| 6e 64 2d 72 61 77 2d 73 | 74 72 69 6e 67 20 6e 69 |nd-raw-s|tring ni|
|000034d0| 6c 20 28 78 2d 67 65 74 | 2d 73 65 6c 65 63 74 69 |l (x-get|-selecti|
|000034e0| 6f 6e 29 20 28 28 65 72 | 72 6f 72 29 29 20 78 2d |on) ((er|ror)) x-|
|000034f0| 67 65 74 2d 63 75 74 62 | 75 66 66 65 72 20 65 72 |get-cutb|uffer er|
|00003500| 72 6f 72 20 22 4e 6f 20 | 73 65 6c 65 63 74 69 6f |ror "No |selectio|
|00003510| 6e 20 6f 72 20 63 75 74 | 20 62 75 66 66 65 72 20 |n or cut| buffer |
|00003520| 61 76 61 69 6c 61 62 6c | 65 22 5d 20 34 20 22 5c |availabl|e"] 4 "\|
|00003530| 0a 49 6e 73 65 72 74 20 | 74 68 65 20 6c 61 73 74 |.Insert |the last|
|00003540| 20 73 74 72 65 74 63 68 | 20 6f 66 20 6b 69 6c 6c | stretch| of kill|
|00003550| 65 64 20 74 65 78 74 20 | 61 74 20 74 68 65 20 70 |ed text |at the p|
|00003560| 6f 73 69 74 69 6f 6e 20 | 63 6c 69 63 6b 65 64 20 |osition |clicked |
|00003570| 6f 6e 2e 22 20 22 65 5c | 6e 50 22 5d 29 0a 28 62 |on." "e\|nP"]).(b|
|00003580| 79 74 65 2d 63 6f 64 65 | 20 22 c0 c1 4d 88 c2 c3 |yte-code| "..M...|
|00003590| 4d 88 c4 c5 4d 88 c6 c7 | 4d 87 22 20 5b 74 65 72 |M...M...|M." [ter|
|000035a0| 6d 2d 73 65 6e 64 2d 75 | 70 20 23 5b 6e 69 6c 20 |m-send-u|p #[nil |
|000035b0| 22 c0 c1 21 87 22 20 5b | 74 65 72 6d 2d 73 65 6e |"..!." [|term-sen|
|000035c0| 64 2d 72 61 77 2d 73 74 | 72 69 6e 67 20 22 1b 5b |d-raw-st|ring ".[|
|000035d0| 41 22 5d 20 32 20 6e 69 | 6c 20 6e 69 6c 5d 20 74 |A"] 2 ni|l nil] t|
|000035e0| 65 72 6d 2d 73 65 6e 64 | 2d 64 6f 77 6e 20 23 5b |erm-send|-down #[|
|000035f0| 6e 69 6c 20 22 c0 c1 21 | 87 22 20 5b 74 65 72 6d |nil "..!|." [term|
|00003600| 2d 73 65 6e 64 2d 72 61 | 77 2d 73 74 72 69 6e 67 |-send-ra|w-string|
|00003610| 20 22 1b 5b 42 22 5d 20 | 32 20 6e 69 6c 20 6e 69 | ".[B"] |2 nil ni|
|00003620| 6c 5d 20 74 65 72 6d 2d | 73 65 6e 64 2d 72 69 67 |l] term-|send-rig|
|00003630| 68 74 20 23 5b 6e 69 6c | 20 22 c0 c1 21 87 22 20 |ht #[nil| "..!." |
|00003640| 5b 74 65 72 6d 2d 73 65 | 6e 64 2d 72 61 77 2d 73 |[term-se|nd-raw-s|
|00003650| 74 72 69 6e 67 20 22 1b | 5b 43 22 5d 20 32 20 6e |tring ".|[C"] 2 n|
|00003660| 69 6c 20 6e 69 6c 5d 20 | 74 65 72 6d 2d 73 65 6e |il nil] |term-sen|
|00003670| 64 2d 6c 65 66 74 20 23 | 5b 6e 69 6c 20 22 c0 c1 |d-left #|[nil "..|
|00003680| 21 87 22 20 5b 74 65 72 | 6d 2d 73 65 6e 64 2d 72 |!." [ter|m-send-r|
|00003690| 61 77 2d 73 74 72 69 6e | 67 20 22 1b 5b 44 22 5d |aw-strin|g ".[D"]|
|000036a0| 20 32 20 6e 69 6c 20 6e | 69 6c 5d 5d 20 32 29 0a | 2 nil n|il]] 2).|
|000036b0| 28 66 73 65 74 20 27 74 | 65 72 6d 2d 73 65 74 2d |(fset 't|erm-set-|
|000036c0| 65 73 63 61 70 65 2d 63 | 68 61 72 20 23 5b 28 63 |escape-c|har #[(c|
|000036d0| 29 20 22 08 ab 86 c1 5c | 6e 08 c3 23 88 c4 c5 0e |) "....\|n..#....|
|000036e0| 06 5c 22 16 06 c1 5c 6e | 0e 06 0e 07 23 88 c1 0e |.\"...\n|....#...|
|000036f0| 07 c8 c9 ca 20 c8 5c 22 | 23 88 c1 0e 07 cb c9 ca |.... .\"|#.......|
|00003700| 20 cb 5c 22 23 88 c1 0e | 07 cc c9 ca 20 cc 5c 22 | .\"#...|.... .\"|
|00003710| 23 88 c1 0e 07 0e 06 c3 | 23 88 c1 0e 07 cd ce 23 |#.......|#......#|
|00003720| 88 c1 0e 07 cf d0 23 88 | c1 0e 07 d1 d2 23 87 22 |......#.|.....#."|
|00003730| 20 5b 74 65 72 6d 2d 65 | 73 63 61 70 65 2d 63 68 | [term-e|scape-ch|
|00003740| 61 72 20 64 65 66 69 6e | 65 2d 6b 65 79 20 74 65 |ar defin|e-key te|
|00003750| 72 6d 2d 72 61 77 2d 6d | 61 70 20 74 65 72 6d 2d |rm-raw-m|ap term-|
|00003760| 73 65 6e 64 2d 72 61 77 | 20 6d 61 6b 65 2d 73 74 |send-raw| make-st|
|00003770| 72 69 6e 67 20 31 20 63 | 20 74 65 72 6d 2d 72 61 |ring 1 c| term-ra|
|00003780| 77 2d 65 73 63 61 70 65 | 2d 6d 61 70 20 22 18 22 |w-escape|-map "."|
|00003790| 20 6c 6f 6f 6b 75 70 2d | 6b 65 79 20 63 75 72 72 | lookup-|key curr|
|000037a0| 65 6e 74 2d 67 6c 6f 62 | 61 6c 2d 6d 61 70 20 22 |ent-glob|al-map "|
|000037b0| 16 22 20 22 15 22 20 22 | 11 22 20 74 65 72 6d 2d |." "." "|." term-|
|000037c0| 70 61 67 65 72 2d 74 6f | 67 67 6c 65 20 22 0b 22 |pager-to|ggle "."|
|000037d0| 20 74 65 72 6d 2d 63 68 | 61 72 2d 6d 6f 64 65 20 | term-ch|ar-mode |
|000037e0| 22 5c 6e 22 20 74 65 72 | 6d 2d 6c 69 6e 65 2d 6d |"\n" ter|m-line-m|
|000037f0| 6f 64 65 5d 20 36 20 22 | 5c 0a 43 68 61 6e 67 65 |ode] 6 "|\.Change|
|00003800| 20 74 65 72 6d 2d 65 73 | 63 61 70 65 2d 63 68 61 | term-es|cape-cha|
|00003810| 72 20 61 6e 64 20 6b 65 | 79 6d 61 70 73 20 74 68 |r and ke|ymaps th|
|00003820| 61 74 20 64 65 70 65 6e | 64 20 6f 6e 20 69 74 2e |at depen|d on it.|
|00003830| 22 5d 29 0a 28 66 73 65 | 74 20 27 74 65 72 6d 2d |"]).(fse|t 'term-|
|00003840| 63 68 61 72 2d 6d 6f 64 | 65 20 23 5b 6e 69 6c 20 |char-mod|e #[nil |
|00003850| 22 08 ac bc c1 20 1a c3 | c4 21 c5 4c 88 c6 5c 6e |".... ..|.!.L..\n|
|00003860| c7 5c 22 88 5c 6e 10 c8 | c9 ca 20 cb 5c 22 21 16 |.\".\n..|.. .\"!.|
|00003870| 0c cd 08 ce cf 23 88 cd | 08 d0 d1 23 88 cd 08 d2 |.....#..|...#....|
|00003880| d3 23 88 cd 08 d4 d5 23 | 88 cd 08 d6 d7 23 88 d8 |.#.....#|.....#..|
|00003890| d9 21 88 29 da 20 08 3d | 3f ad a9 da 20 16 1b dc |.!.). .=|?... ...|
|000038a0| 08 21 88 dd de 70 21 21 | 0e 1f 1e 20 1e 21 60 0e |.!...p!!|... .!`.|
|000038b0| 21 56 ab 8d e2 8e e3 4b | 16 1f e4 7f 88 e5 20 88 |!V.....K|...... .|
|000038c0| 29 2a e6 20 87 22 20 5b | 74 65 72 6d 2d 72 61 77 |)*. ." [|term-raw|
|000038d0| 2d 6d 61 70 20 6d 61 6b | 65 2d 6b 65 79 6d 61 70 |-map mak|e-keymap|
|000038e0| 20 6d 61 70 20 6d 61 6b | 65 2d 6c 6f 63 61 6c 2d | map mak|e-local-|
|000038f0| 76 61 72 69 61 62 6c 65 | 20 6d 65 74 61 2d 70 72 |variable| meta-pr|
|00003900| 65 66 69 78 2d 63 68 61 | 72 20 2d 31 20 73 65 74 |efix-cha|r -1 set|
|00003910| 2d 6b 65 79 6d 61 70 2d | 64 65 66 61 75 6c 74 2d |-keymap-|default-|
|00003920| 62 69 6e 64 69 6e 67 20 | 74 65 72 6d 2d 73 65 6e |binding |term-sen|
|00003930| 64 2d 72 61 77 20 63 6f | 70 79 2d 6b 65 79 6d 61 |d-raw co|py-keyma|
|00003940| 70 20 6c 6f 6f 6b 75 70 | 2d 6b 65 79 20 63 75 72 |p lookup|-key cur|
|00003950| 72 65 6e 74 2d 67 6c 6f | 62 61 6c 2d 6d 61 70 20 |rent-glo|bal-map |
|00003960| 22 18 22 20 74 65 72 6d | 2d 72 61 77 2d 65 73 63 |"." term|-raw-esc|
|00003970| 61 70 65 2d 6d 61 70 20 | 64 65 66 69 6e 65 2d 6b |ape-map |define-k|
|00003980| 65 79 20 5b 62 75 74 74 | 6f 6e 32 5d 20 74 65 72 |ey [butt|on2] ter|
|00003990| 6d 2d 6d 6f 75 73 65 2d | 70 61 73 74 65 20 5b 75 |m-mouse-|paste [u|
|000039a0| 70 5d 20 74 65 72 6d 2d | 73 65 6e 64 2d 75 70 20 |p] term-|send-up |
|000039b0| 5b 64 6f 77 6e 5d 20 74 | 65 72 6d 2d 73 65 6e 64 |[down] t|erm-send|
|000039c0| 2d 64 6f 77 6e 20 5b 72 | 69 67 68 74 5d 20 74 65 |-down [r|ight] te|
|000039d0| 72 6d 2d 73 65 6e 64 2d | 72 69 67 68 74 20 5b 6c |rm-send-|right [l|
|000039e0| 65 66 74 5d 20 74 65 72 | 6d 2d 73 65 6e 64 2d 6c |eft] ter|m-send-l|
|000039f0| 65 66 74 20 74 65 72 6d | 2d 73 65 74 2d 65 73 63 |eft term|-set-esc|
|00003a00| 61 70 65 2d 63 68 61 72 | 20 33 20 63 75 72 72 65 |ape-char| 3 curre|
|00003a10| 6e 74 2d 6c 6f 63 61 6c | 2d 6d 61 70 20 74 65 72 |nt-local|-map ter|
|00003a20| 6d 2d 6f 6c 64 2d 6d 6f | 64 65 2d 6d 61 70 20 75 |m-old-mo|de-map u|
|00003a30| 73 65 2d 6c 6f 63 61 6c | 2d 6d 61 70 20 70 72 6f |se-local|-map pro|
|00003a40| 63 65 73 73 2d 6d 61 72 | 6b 20 67 65 74 2d 62 75 |cess-mar|k get-bu|
|00003a50| 66 66 65 72 2d 70 72 6f | 63 65 73 73 20 74 65 72 |ffer-pro|cess ter|
|00003a60| 6d 2d 69 6e 70 75 74 2d | 73 65 6e 64 65 72 20 73 |m-input-|sender s|
|00003a70| 61 76 65 2d 69 6e 70 75 | 74 2d 73 65 6e 64 65 72 |ave-inpu|t-sender|
|00003a80| 20 70 6d 61 72 6b 20 28 | 28 62 79 74 65 2d 63 6f | pmark (|(byte-co|
|00003a90| 64 65 20 22 08 11 c2 87 | 22 20 5b 73 61 76 65 2d |de "....|" [save-|
|00003aa0| 69 6e 70 75 74 2d 73 65 | 6e 64 65 72 20 74 65 72 |input-se|nder ter|
|00003ab0| 6d 2d 69 6e 70 75 74 2d | 73 65 6e 64 65 72 20 6e |m-input-|sender n|
|00003ac0| 69 6c 5d 20 31 29 29 20 | 74 65 72 6d 2d 73 65 6e |il] 1)) |term-sen|
|00003ad0| 64 2d 73 74 72 69 6e 67 | 20 6e 69 6c 20 74 65 72 |d-string| nil ter|
|00003ae0| 6d 2d 73 65 6e 64 2d 69 | 6e 70 75 74 20 74 65 72 |m-send-i|nput ter|
|00003af0| 6d 2d 75 70 64 61 74 65 | 2d 6d 6f 64 65 2d 6c 69 |m-update|-mode-li|
|00003b00| 6e 65 5d 20 34 20 22 5c | 0a 53 77 69 74 63 68 20 |ne] 4 "\|.Switch |
|00003b10| 74 6f 20 63 68 61 72 20 | 28 5c 22 72 61 77 5c 22 |to char |(\"raw\"|
|00003b20| 29 20 73 75 62 2d 6d 6f | 64 65 20 6f 66 20 74 65 |) sub-mo|de of te|
|00003b30| 72 6d 20 6d 6f 64 65 2e | 0a 45 61 63 68 20 63 68 |rm mode.|.Each ch|
|00003b40| 61 72 61 63 74 65 72 20 | 79 6f 75 20 74 79 70 65 |aracter |you type|
|00003b50| 20 69 73 20 73 65 6e 74 | 20 64 69 72 65 63 74 6c | is sent| directl|
|00003b60| 79 20 74 6f 20 74 68 65 | 20 69 6e 66 65 72 69 6f |y to the| inferio|
|00003b70| 72 20 77 69 74 68 6f 75 | 74 0a 69 6e 74 65 72 76 |r withou|t.interv|
|00003b80| 65 6e 74 69 6f 6e 20 66 | 72 6f 6d 20 65 6d 61 63 |ention f|rom emac|
|00003b90| 73 2c 20 65 78 63 65 70 | 74 20 66 6f 72 20 74 68 |s, excep|t for th|
|00003ba0| 65 20 65 73 63 61 70 65 | 20 63 68 61 72 61 63 74 |e escape| charact|
|00003bb0| 65 72 20 28 75 73 75 61 | 6c 6c 79 20 43 2d 63 29 |er (usua|lly C-c)|
|00003bc0| 2e 22 20 6e 69 6c 5d 29 | 0a 28 66 73 65 74 20 27 |." nil])|.(fset '|
|00003bd0| 74 65 72 6d 2d 6c 69 6e | 65 2d 6d 6f 64 65 20 23 |term-lin|e-mode #|
|00003be0| 5b 6e 69 6c 20 22 c0 20 | 09 3d ad 86 c2 0b 21 88 |[nil ". |.=....!.|
|00003bf0| c4 20 87 22 20 5b 63 75 | 72 72 65 6e 74 2d 6c 6f |. ." [cu|rrent-lo|
|00003c00| 63 61 6c 2d 6d 61 70 20 | 74 65 72 6d 2d 72 61 77 |cal-map |term-raw|
|00003c10| 2d 6d 61 70 20 75 73 65 | 2d 6c 6f 63 61 6c 2d 6d |-map use|-local-m|
|00003c20| 61 70 20 74 65 72 6d 2d | 6f 6c 64 2d 6d 6f 64 65 |ap term-|old-mode|
|00003c30| 2d 6d 61 70 20 74 65 72 | 6d 2d 75 70 64 61 74 65 |-map ter|m-update|
|00003c40| 2d 6d 6f 64 65 2d 6c 69 | 6e 65 5d 20 32 20 22 5c |-mode-li|ne] 2 "\|
|00003c50| 0a 53 77 69 74 63 68 20 | 74 6f 20 6c 69 6e 65 20 |.Switch |to line |
|00003c60| 28 5c 22 63 6f 6f 6b 65 | 64 5c 22 29 20 73 75 62 |(\"cooke|d\") sub|
|00003c70| 2d 6d 6f 64 65 20 6f 66 | 20 74 65 72 6d 20 6d 6f |-mode of| term mo|
|00003c80| 64 65 2e 0a 54 68 69 73 | 20 6d 65 61 6e 73 20 74 |de..This| means t|
|00003c90| 68 61 74 20 65 6d 61 63 | 73 20 65 64 69 74 69 6e |hat emac|s editin|
|00003ca0| 67 20 63 6f 6d 6d 61 6e | 64 73 20 77 6f 72 6b 20 |g comman|ds work |
|00003cb0| 61 73 20 6e 6f 72 6d 61 | 6c 6c 79 2c 20 75 6e 74 |as norma|lly, unt|
|00003cc0| 69 6c 0a 79 6f 75 20 74 | 79 70 65 20 5c 5c 5b 74 |il.you t|ype \\[t|
|00003cd0| 65 72 6d 2d 73 65 6e 64 | 2d 69 6e 70 75 74 5d 20 |erm-send|-input] |
|00003ce0| 77 68 69 63 68 20 73 65 | 6e 64 73 20 74 68 65 20 |which se|nds the |
|00003cf0| 63 75 72 72 65 6e 74 20 | 6c 69 6e 65 20 74 6f 20 |current |line to |
|00003d00| 74 68 65 20 69 6e 66 65 | 72 69 6f 72 2e 22 20 6e |the infe|rior." n|
|00003d10| 69 6c 5d 29 0a 28 66 73 | 65 74 20 27 74 65 72 6d |il]).(fs|et 'term|
|00003d20| 2d 75 70 64 61 74 65 2d | 6d 6f 64 65 2d 6c 69 6e |-update-|mode-lin|
|00003d30| 65 20 23 5b 6e 69 6c 20 | 22 c0 20 09 3d ab 89 5c |e #[nil |". .=..\|
|00003d40| 6e ab 83 c3 aa 8a c4 aa | 87 5c 6e ab 83 c5 aa 81 |n.......|.\n.....|
|00003d50| c6 16 07 c8 c9 20 21 87 | 22 20 5b 63 75 72 72 65 |..... !.|" [curre|
|00003d60| 6e 74 2d 6c 6f 63 61 6c | 2d 6d 61 70 20 74 65 72 |nt-local|-map ter|
|00003d70| 6d 2d 72 61 77 2d 6d 61 | 70 20 74 65 72 6d 2d 70 |m-raw-ma|p term-p|
|00003d80| 61 67 65 72 2d 63 6f 75 | 6e 74 20 28 22 3a 20 63 |ager-cou|nt (": c|
|00003d90| 68 61 72 20 70 61 67 65 | 20 25 73 22 29 20 28 22 |har page| %s") ("|
|00003da0| 3a 20 63 68 61 72 20 25 | 73 22 29 20 28 22 3a 20 |: char %|s") (": |
|00003db0| 6c 69 6e 65 20 70 61 67 | 65 20 25 73 22 29 20 28 |line pag|e %s") (|
|00003dc0| 22 3a 20 6c 69 6e 65 20 | 25 73 22 29 20 6d 6f 64 |": line |%s") mod|
|00003dd0| 65 2d 6c 69 6e 65 2d 70 | 72 6f 63 65 73 73 20 73 |e-line-p|rocess s|
|00003de0| 65 74 2d 62 75 66 66 65 | 72 2d 6d 6f 64 69 66 69 |et-buffe|r-modifi|
|00003df0| 65 64 2d 70 20 62 75 66 | 66 65 72 2d 6d 6f 64 69 |ed-p buf|fer-modi|
|00003e00| 66 69 65 64 2d 70 5d 20 | 32 5d 29 0a 28 66 73 65 |fied-p] |2]).(fse|
|00003e10| 74 20 27 74 65 72 6d 2d | 63 68 65 63 6b 2d 70 72 |t 'term-|check-pr|
|00003e20| 6f 63 20 23 5b 28 62 75 | 66 66 65 72 29 20 22 c0 |oc #[(bu|ffer) ".|
|00003e30| 09 21 89 1a ad 85 c3 5c | 6e 21 c4 3e 29 87 22 20 |.!.....\|n!.>)." |
|00003e40| 5b 67 65 74 2d 62 75 66 | 66 65 72 2d 70 72 6f 63 |[get-buf|fer-proc|
|00003e50| 65 73 73 20 62 75 66 66 | 65 72 20 70 72 6f 63 20 |ess buff|er proc |
|00003e60| 70 72 6f 63 65 73 73 2d | 73 74 61 74 75 73 20 28 |process-|status (|
|00003e70| 72 75 6e 20 73 74 6f 70 | 29 5d 20 33 20 22 5c 0a |run stop|)] 3 "\.|
|00003e80| 54 72 75 65 20 69 66 20 | 74 68 65 72 65 20 69 73 |True if |there is|
|00003e90| 20 61 20 70 72 6f 63 65 | 73 73 20 61 73 73 6f 63 | a proce|ss assoc|
|00003ea0| 69 61 74 65 64 20 77 2f | 62 75 66 66 65 72 20 42 |iated w/|buffer B|
|00003eb0| 55 46 46 45 52 2c 20 61 | 6e 64 0a 69 74 20 69 73 |UFFER, a|nd.it is|
|00003ec0| 20 61 6c 69 76 65 20 28 | 73 74 61 74 75 73 20 52 | alive (|status R|
|00003ed0| 55 4e 20 6f 72 20 53 54 | 4f 50 29 2e 20 42 55 46 |UN or ST|OP). BUF|
|00003ee0| 46 45 52 20 63 61 6e 20 | 62 65 20 65 69 74 68 65 |FER can |be eithe|
|00003ef0| 72 20 61 20 62 75 66 66 | 65 72 20 6f 72 20 74 68 |r a buff|er or th|
|00003f00| 65 0a 6e 61 6d 65 20 6f | 66 20 6f 6e 65 22 5d 29 |e.name o|f one"])|
|00003f10| 0a 28 66 73 65 74 20 27 | 6d 61 6b 65 2d 74 65 72 |.(fset '|make-ter|
|00003f20| 6d 20 23 5b 28 6e 61 6d | 65 20 70 72 6f 67 72 61 |m #[(nam|e progra|
|00003f30| 6d 20 26 6f 70 74 69 6f | 6e 61 6c 20 73 74 61 72 |m &optio|nal star|
|00003f40| 74 66 69 6c 65 20 26 72 | 65 73 74 20 73 77 69 74 |tfile &r|est swit|
|00003f50| 63 68 65 73 29 20 22 c0 | c1 5c 6e c1 51 21 1b c4 |ches) ".|.\n.Q!..|
|00003f60| 0b 21 ac 93 8a 0b 71 88 | c5 20 88 29 c6 0b 5c 6e |.!....q.|. .)..\n|
|00003f70| 0e 07 0e 08 0e 09 25 88 | 0b 29 87 22 20 5b 67 65 |......%.|.)." [ge|
|00003f80| 74 2d 62 75 66 66 65 72 | 2d 63 72 65 61 74 65 20 |t-buffer|-create |
|00003f90| 22 2a 22 20 6e 61 6d 65 | 20 62 75 66 66 65 72 20 |"*" name| buffer |
|00003fa0| 74 65 72 6d 2d 63 68 65 | 63 6b 2d 70 72 6f 63 20 |term-che|ck-proc |
|00003fb0| 74 65 72 6d 2d 6d 6f 64 | 65 20 74 65 72 6d 2d 65 |term-mod|e term-e|
|00003fc0| 78 65 63 20 70 72 6f 67 | 72 61 6d 20 73 74 61 72 |xec prog|ram star|
|00003fd0| 74 66 69 6c 65 20 73 77 | 69 74 63 68 65 73 5d 20 |tfile sw|itches] |
|00003fe0| 36 20 22 5c 0a 4d 61 6b | 65 20 61 20 74 65 72 6d |6 "\.Mak|e a term|
|00003ff0| 20 70 72 6f 63 65 73 73 | 20 4e 41 4d 45 20 69 6e | process| NAME in|
|00004000| 20 61 20 62 75 66 66 65 | 72 2c 20 72 75 6e 6e 69 | a buffe|r, runni|
|00004010| 6e 67 20 50 52 4f 47 52 | 41 4d 2e 0a 54 68 65 20 |ng PROGR|AM..The |
|00004020| 6e 61 6d 65 20 6f 66 20 | 74 68 65 20 62 75 66 66 |name of |the buff|
|00004030| 65 72 20 69 73 20 6d 61 | 64 65 20 62 79 20 73 75 |er is ma|de by su|
|00004040| 72 72 6f 75 6e 64 69 6e | 67 20 4e 41 4d 45 20 77 |rroundin|g NAME w|
|00004050| 69 74 68 20 60 2a 27 73 | 2e 0a 49 66 20 74 68 65 |ith `*'s|..If the|
|00004060| 72 65 20 69 73 20 61 6c | 72 65 61 64 79 20 61 20 |re is al|ready a |
|00004070| 72 75 6e 6e 69 6e 67 20 | 70 72 6f 63 65 73 73 20 |running |process |
|00004080| 69 6e 20 74 68 61 74 20 | 62 75 66 66 65 72 2c 20 |in that |buffer, |
|00004090| 69 74 20 69 73 20 6e 6f | 74 20 72 65 73 74 61 72 |it is no|t restar|
|000040a0| 74 65 64 2e 0a 4f 70 74 | 69 6f 6e 61 6c 20 74 68 |ted..Opt|ional th|
|000040b0| 69 72 64 20 61 72 67 20 | 53 54 41 52 54 46 49 4c |ird arg |STARTFIL|
|000040c0| 45 20 69 73 20 74 68 65 | 20 6e 61 6d 65 20 6f 66 |E is the| name of|
|000040d0| 20 61 20 66 69 6c 65 20 | 74 6f 20 73 65 6e 64 20 | a file |to send |
|000040e0| 74 68 65 20 63 6f 6e 74 | 65 6e 74 73 20 6f 66 20 |the cont|ents of |
|000040f0| 74 6f 20 0a 74 68 65 20 | 70 72 6f 63 65 73 73 2e |to .the |process.|
|00004100| 20 20 41 6e 79 20 6d 6f | 72 65 20 61 72 67 73 20 | Any mo|re args |
|00004110| 61 72 65 20 61 72 67 75 | 6d 65 6e 74 73 20 74 6f |are argu|ments to|
|00004120| 20 50 52 4f 47 52 41 4d | 2e 22 5d 29 0a 28 66 73 | PROGRAM|."]).(fs|
|00004130| 65 74 20 27 74 65 72 6d | 20 23 5b 28 70 72 6f 67 |et 'term| #[(prog|
|00004140| 72 61 6d 29 20 22 c0 c1 | 5c 6e 5c 22 71 88 c3 20 |ram) "..|\n\"q.. |
|00004150| 88 c4 20 88 c5 c6 21 87 | 22 20 5b 6d 61 6b 65 2d |.. ...!.|" [make-|
|00004160| 74 65 72 6d 20 22 74 65 | 72 6d 69 6e 61 6c 22 20 |term "te|rminal" |
|00004170| 70 72 6f 67 72 61 6d 20 | 74 65 72 6d 2d 6d 6f 64 |program |term-mod|
|00004180| 65 20 74 65 72 6d 2d 63 | 68 61 72 2d 6d 6f 64 65 |e term-c|har-mode|
|00004190| 20 73 77 69 74 63 68 2d | 74 6f 2d 62 75 66 66 65 | switch-|to-buffe|
|000041a0| 72 20 22 2a 74 65 72 6d | 69 6e 61 6c 2a 22 5d 20 |r "*term|inal*"] |
|000041b0| 33 20 22 5c 0a 53 74 61 | 72 74 20 61 20 74 65 72 |3 "\.Sta|rt a ter|
|000041c0| 6d 69 6e 61 6c 2d 65 6d | 75 6c 61 74 6f 72 20 69 |minal-em|ulator i|
|000041d0| 6e 20 61 20 6e 65 77 20 | 62 75 66 66 65 72 2e 22 |n a new |buffer."|
|000041e0| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c0 c1 5c | (byte-c|ode "..\|
|000041f0| 6e ae 8b c3 c4 21 ae 86 | c3 c5 21 ae 81 c6 5c 22 |n....!..|..!...\"|
|00004200| 43 87 22 20 5b 72 65 61 | 64 2d 66 72 6f 6d 2d 6d |C." [rea|d-from-m|
|00004210| 69 6e 69 62 75 66 66 65 | 72 20 22 52 75 6e 20 70 |inibuffe|r "Run p|
|00004220| 72 6f 67 72 61 6d 3a 20 | 22 20 65 78 70 6c 69 63 |rogram: |" explic|
|00004230| 69 74 2d 73 68 65 6c 6c | 2d 66 69 6c 65 2d 6e 61 |it-shell|-file-na|
|00004240| 6d 65 20 67 65 74 65 6e | 76 20 22 45 53 48 45 4c |me geten|v "ESHEL|
|00004250| 4c 22 20 22 53 48 45 4c | 4c 22 20 22 2f 62 69 6e |L" "SHEL|L" "/bin|
|00004260| 2f 73 68 22 5d 20 34 29 | 5d 29 0a 28 66 73 65 74 |/sh"] 4)|]).(fset|
|00004270| 20 27 74 65 72 6d 2d 65 | 78 65 63 20 23 5b 28 62 | 'term-e|xec #[(b|
|00004280| 75 66 66 65 72 20 6e 61 | 6d 65 20 63 6f 6d 6d 61 |uffer na|me comma|
|00004290| 6e 64 20 73 74 61 72 74 | 66 69 6c 65 20 73 77 69 |nd start|file swi|
|000042a0| 74 63 68 65 73 29 20 22 | 8a 08 71 88 c1 08 21 89 |tches) "|..q...!.|
|000042b0| 1a ab 84 c3 5c 6e 21 88 | 29 c4 0d 08 0e 06 0e 07 |....\n!.|).......|
|000042c0| 24 1a c8 c9 21 88 0e 5c | 6e 16 09 64 62 88 cb 5c |$...!..\|n..db..\|
|000042d0| 6e 21 60 cc 93 88 cd 5c | 6e ce 5c 22 88 0e 0f ab |n!`....\|n.\"....|
|000042e0| 9b d0 d1 21 88 64 62 88 | d2 0e 0f 21 88 60 64 7b |...!.db.|...!.`d{|
|000042f0| 16 0f 60 64 7c 88 d3 5c | 6e 0e 0f 5c 22 88 d4 d5 |..`d|..\|n..\"...|
|00004300| 21 88 08 2a 87 22 20 5b | 62 75 66 66 65 72 20 67 |!..*." [|buffer g|
|00004310| 65 74 2d 62 75 66 66 65 | 72 2d 70 72 6f 63 65 73 |et-buffe|r-proces|
|00004320| 73 20 70 72 6f 63 20 64 | 65 6c 65 74 65 2d 70 72 |s proc d|elete-pr|
|00004330| 6f 63 65 73 73 20 74 65 | 72 6d 2d 65 78 65 63 2d |ocess te|rm-exec-|
|00004340| 31 20 6e 61 6d 65 20 63 | 6f 6d 6d 61 6e 64 20 73 |1 name c|ommand s|
|00004350| 77 69 74 63 68 65 73 20 | 6d 61 6b 65 2d 6c 6f 63 |witches |make-loc|
|00004360| 61 6c 2d 76 61 72 69 61 | 62 6c 65 20 74 65 72 6d |al-varia|ble term|
|00004370| 2d 70 74 79 70 20 70 72 | 6f 63 65 73 73 2d 63 6f |-ptyp pr|ocess-co|
|00004380| 6e 6e 65 63 74 69 6f 6e | 2d 74 79 70 65 20 70 72 |nnection|-type pr|
|00004390| 6f 63 65 73 73 2d 6d 61 | 72 6b 20 6e 69 6c 20 73 |ocess-ma|rk nil s|
|000043a0| 65 74 2d 70 72 6f 63 65 | 73 73 2d 66 69 6c 74 65 |et-proce|ss-filte|
|000043b0| 72 20 74 65 72 6d 2d 65 | 6d 75 6c 61 74 65 2d 74 |r term-e|mulate-t|
|000043c0| 65 72 6d 69 6e 61 6c 20 | 73 74 61 72 74 66 69 6c |erminal |startfil|
|000043d0| 65 20 73 6c 65 65 70 2d | 66 6f 72 20 31 20 69 6e |e sleep-|for 1 in|
|000043e0| 73 65 72 74 2d 66 69 6c | 65 2d 63 6f 6e 74 65 6e |sert-fil|e-conten|
|000043f0| 74 73 20 74 65 72 6d 2d | 73 65 6e 64 2d 73 74 72 |ts term-|send-str|
|00004400| 69 6e 67 20 72 75 6e 2d | 68 6f 6f 6b 73 20 74 65 |ing run-|hooks te|
|00004410| 72 6d 2d 65 78 65 63 2d | 68 6f 6f 6b 5d 20 36 20 |rm-exec-|hook] 6 |
|00004420| 22 5c 0a 53 74 61 72 74 | 20 75 70 20 61 20 70 72 |"\.Start| up a pr|
|00004430| 6f 63 65 73 73 20 69 6e | 20 62 75 66 66 65 72 20 |ocess in| buffer |
|00004440| 66 6f 72 20 74 65 72 6d | 20 6d 6f 64 65 73 2e 0a |for term| modes..|
|00004450| 42 6c 61 73 74 73 20 61 | 6e 79 20 6f 6c 64 20 70 |Blasts a|ny old p|
|00004460| 72 6f 63 65 73 73 20 72 | 75 6e 6e 69 6e 67 20 69 |rocess r|unning i|
|00004470| 6e 20 74 68 65 20 62 75 | 66 66 65 72 2e 20 44 6f |n the bu|ffer. Do|
|00004480| 65 73 6e 27 74 20 73 65 | 74 20 74 68 65 20 62 75 |esn't se|t the bu|
|00004490| 66 66 65 72 20 6d 6f 64 | 65 2e 0a 59 6f 75 20 63 |ffer mod|e..You c|
|000044a0| 61 6e 20 75 73 65 20 74 | 68 69 73 20 74 6f 20 63 |an use t|his to c|
|000044b0| 68 65 61 70 6c 79 20 72 | 75 6e 20 61 20 73 65 72 |heaply r|un a ser|
|000044c0| 69 65 73 20 6f 66 20 70 | 72 6f 63 65 73 73 65 73 |ies of p|rocesses|
|000044d0| 20 69 6e 20 74 68 65 20 | 73 61 6d 65 20 74 65 72 | in the |same ter|
|000044e0| 6d 0a 62 75 66 66 65 72 | 2e 20 54 68 65 20 68 6f |m.buffer|. The ho|
|000044f0| 6f 6b 20 74 65 72 6d 2d | 65 78 65 63 2d 68 6f 6f |ok term-|exec-hoo|
|00004500| 6b 20 69 73 20 72 75 6e | 20 61 66 74 65 72 20 65 |k is run| after e|
|00004510| 61 63 68 20 65 78 65 63 | 2e 22 5d 29 0a 28 62 79 |ach exec|."]).(by|
|00004520| 74 65 2d 63 6f 64 65 20 | 22 c0 c1 21 ac 82 c2 11 |te-code |"..!....|
|00004530| c0 87 22 20 5b 62 6f 75 | 6e 64 70 20 74 65 72 6d |.." [bou|ndp term|
|00004540| 2d 74 65 72 6d 2d 6e 61 | 6d 65 20 22 65 74 65 72 |-term-na|me "eter|
|00004550| 6d 22 5d 20 32 29 0a 28 | 64 65 66 76 61 72 20 74 |m"] 2).(|defvar t|
|00004560| 65 72 6d 2d 74 65 72 6d | 63 61 70 2d 66 6f 72 6d |erm-term|cap-form|
|00004570| 61 74 20 22 25 73 25 73 | 3a 6c 69 23 25 64 3a 63 |at "%s%s|:li#%d:c|
|00004580| 6f 23 25 64 3a 63 6c 3d | 5c 5c 45 5b 48 5c 5c 45 |o#%d:cl=|\\E[H\\E|
|00004590| 5b 4a 3a 63 64 3d 5c 5c | 45 5b 4a 3a 62 73 3a 61 |[J:cd=\\|E[J:bs:a|
|000045a0| 6d 3a 78 6e 3a 63 6d 3d | 5c 5c 45 5b 25 25 69 25 |m:xn:cm=|\\E[%%i%|
|000045b0| 25 64 3b 25 25 64 48 3a | 6e 64 3d 5c 5c 45 5b 43 |%d;%%dH:|nd=\\E[C|
|000045c0| 3a 75 70 3d 5c 5c 45 5b | 41 3a 63 65 3d 5c 5c 45 |:up=\\E[|A:ce=\\E|
|000045d0| 5b 4b 3a 68 6f 3d 5c 5c | 45 5b 48 3a 70 74 3a 61 |[K:ho=\\|E[H:pt:a|
|000045e0| 6c 3d 5c 5c 45 5b 4c 3a | 64 6c 3d 5c 5c 45 5b 4d |l=\\E[L:|dl=\\E[M|
|000045f0| 3a 44 4c 3d 5c 5c 45 5b | 25 25 64 4d 3a 41 4c 3d |:DL=\\E[|%%dM:AL=|
|00004600| 5c 5c 45 5b 25 25 64 4c | 3a 63 73 3d 5c 5c 45 5b |\\E[%%dL|:cs=\\E[|
|00004610| 25 25 69 25 25 64 3b 25 | 25 64 72 3a 73 66 3d 5c |%%i%%d;%|%dr:sf=\|
|00004620| 5c 6e 3a 74 65 3d 5c 5c | 45 5b 32 4a 5c 5c 45 5b |\n:te=\\|E[2J\\E[|
|00004630| 3f 34 37 6c 5c 5c 45 38 | 3a 74 69 3d 5c 5c 45 37 |?47l\\E8|:ti=\\E7|
|00004640| 5c 5c 45 5b 3f 34 37 68 | 3a 64 63 3d 5c 5c 45 5b |\\E[?47h|:dc=\\E[|
|00004650| 50 3a 44 43 3d 5c 5c 45 | 5b 25 25 64 50 3a 49 43 |P:DC=\\E|[%%dP:IC|
|00004660| 3d 5c 5c 45 5b 25 25 64 | 40 3a 69 6d 3d 5c 5c 45 |=\\E[%%d|@:im=\\E|
|00004670| 5b 34 68 3a 65 69 3d 5c | 5c 45 5b 34 6c 3a 6d 69 |[4h:ei=\|\E[4l:mi|
|00004680| 3a 3a 73 6f 3d 5c 5c 45 | 5b 37 6d 3a 73 65 3d 5c |::so=\\E|[7m:se=\|
|00004690| 5c 45 5b 6d 3a 75 73 3d | 5c 5c 45 5b 34 6d 3a 75 |\E[m:us=|\\E[4m:u|
|000046a0| 65 3d 5c 5c 45 5b 6d 3a | 6d 64 3d 5c 5c 45 5b 31 |e=\\E[m:|md=\\E[1|
|000046b0| 6d 3a 6d 72 3d 5c 5c 45 | 5b 37 6d 3a 6d 65 3d 5c |m:mr=\\E|[7m:me=\|
|000046c0| 5c 45 5b 6d 3a 55 50 3d | 5c 5c 45 5b 25 25 64 41 |\E[m:UP=|\\E[%%dA|
|000046d0| 3a 44 4f 3d 5c 5c 45 5b | 25 25 64 42 3a 4c 45 3d |:DO=\\E[|%%dB:LE=|
|000046e0| 5c 5c 45 5b 25 25 64 44 | 3a 52 49 3d 5c 5c 45 5b |\\E[%%dD|:RI=\\E[|
|000046f0| 25 25 64 43 22 20 22 5c | 0a 74 65 72 6d 63 61 70 |%%dC" "\|.termcap|
|00004700| 20 63 61 70 61 62 69 6c | 74 69 65 73 20 73 75 70 | capabil|ties sup|
|00004710| 70 6f 72 74 65 64 22 29 | 0a 28 66 73 65 74 20 27 |ported")|.(fset '|
|00004720| 74 65 72 6d 2d 65 78 65 | 63 2d 31 20 23 5b 28 6e |term-exe|c-1 #[(n|
|00004730| 61 6d 65 20 62 75 66 66 | 65 72 20 63 6f 6d 6d 61 |ame buff|er comma|
|00004740| 6e 64 20 73 77 69 74 63 | 68 65 73 29 20 22 c0 c1 |nd switc|hes) "..|
|00004750| 5c 6e 5c 22 c3 c4 21 ab | 8a 0c ab 87 c0 c5 0e 06 |\n\"..!.|........|
|00004760| 5c 22 aa 8a c0 0e 07 c8 | 5c 6e 0e 09 0e 5c 6e 25 |\"......|\n...\n%|
|00004770| c0 cb 0e 0c 0e 0d 23 c0 | ce 0e 09 5c 22 c0 cf 0e |......#.|...\"...|
|00004780| 5c 6e 5c 22 af 05 0e 10 | a4 1e 10 d1 d2 0e 13 0e |\n\"....|........|
|00004790| 14 d5 d6 c0 d7 0e 09 0e | 5c 6e 23 d8 0e 19 0e 1a |........|\n#.....|
|000047a0| 26 09 29 87 22 20 5b 66 | 6f 72 6d 61 74 20 22 54 |&.)." [f|ormat "T|
|000047b0| 45 52 4d 3d 25 73 22 20 | 74 65 72 6d 2d 74 65 72 |ERM=%s" |term-ter|
|000047c0| 6d 2d 6e 61 6d 65 20 62 | 6f 75 6e 64 70 20 73 79 |m-name b|oundp sy|
|000047d0| 73 74 65 6d 2d 75 73 65 | 73 2d 74 65 72 6d 69 6e |stem-use|s-termin|
|000047e0| 66 6f 20 22 54 45 52 4d | 49 4e 46 4f 3d 25 73 22 |fo "TERM|INFO=%s"|
|000047f0| 20 64 61 74 61 2d 64 69 | 72 65 63 74 6f 72 79 20 | data-di|rectory |
|00004800| 74 65 72 6d 2d 74 65 72 | 6d 63 61 70 2d 66 6f 72 |term-ter|mcap-for|
|00004810| 6d 61 74 20 22 54 45 52 | 4d 43 41 50 3d 22 20 74 |mat "TER|MCAP=" t|
|00004820| 65 72 6d 2d 68 65 69 67 | 68 74 20 74 65 72 6d 2d |erm-heig|ht term-|
|00004830| 77 69 64 74 68 20 22 45 | 4d 41 43 53 3d 25 73 20 |width "E|MACS=%s |
|00004840| 28 74 65 72 6d 3a 25 73 | 29 22 20 65 6d 61 63 73 |(term:%s|)" emacs|
|00004850| 2d 76 65 72 73 69 6f 6e | 20 74 65 72 6d 2d 70 72 |-version| term-pr|
|00004860| 6f 74 6f 63 6f 6c 2d 76 | 65 72 73 69 6f 6e 20 22 |otocol-v|ersion "|
|00004870| 4c 49 4e 45 53 3d 25 64 | 22 20 22 43 4f 4c 55 4d |LINES=%d|" "COLUM|
|00004880| 4e 53 3d 25 64 22 20 70 | 72 6f 63 65 73 73 2d 65 |NS=%d" p|rocess-e|
|00004890| 6e 76 69 72 6f 6e 6d 65 | 6e 74 20 61 70 70 6c 79 |nvironme|nt apply|
|000048a0| 20 73 74 61 72 74 2d 70 | 72 6f 63 65 73 73 20 6e | start-p|rocess n|
|000048b0| 61 6d 65 20 62 75 66 66 | 65 72 20 22 2f 62 69 6e |ame buff|er "/bin|
|000048c0| 2f 73 68 22 20 22 2d 63 | 22 20 22 73 74 74 79 20 |/sh" "-c|" "stty |
|000048d0| 2d 6e 6c 20 65 63 68 6f | 20 72 6f 77 73 20 25 64 |-nl echo| rows %d|
|000048e0| 20 63 6f 6c 75 6d 6e 73 | 20 25 64 20 73 61 6e 65 | columns| %d sane|
|000048f0| 20 32 3e 2f 64 65 76 2f | 6e 75 6c 6c 3b 69 66 20 | 2>/dev/|null;if |
|00004900| 5b 20 24 31 20 3d 20 2e | 2e 20 5d 3b 20 74 68 65 |[ $1 = .|. ]; the|
|00004910| 6e 20 73 68 69 66 74 3b | 20 66 69 3b 20 65 78 65 |n shift;| fi; exe|
|00004920| 63 20 5c 22 24 40 5c 22 | 22 20 22 2e 2e 22 20 63 |c \"$@\"|" ".." c|
|00004930| 6f 6d 6d 61 6e 64 20 73 | 77 69 74 63 68 65 73 5d |ommand s|witches]|
|00004940| 20 31 30 5d 29 0a 28 66 | 73 65 74 20 27 74 65 72 | 10]).(f|set 'ter|
|00004950| 6d 2d 6d 65 6d 20 23 5b | 28 69 74 65 6d 20 6c 69 |m-mem #[|(item li|
|00004960| 73 74 20 26 6f 70 74 69 | 6f 6e 61 6c 20 65 6c 74 |st &opti|onal elt|
|00004970| 3d 29 20 22 08 ae 81 c1 | c2 1b 18 0c ab 94 0b ac |=) "....|........|
|00004980| 91 08 0d 0c 40 5c 22 ab | 84 0c 13 aa 6f 0c 41 89 |....@\".|....o.A.|
|00004990| 14 ac 6c 0b 2a 87 22 20 | 5b 65 6c 74 3d 20 65 71 |..l.*." |[elt= eq|
|000049a0| 75 61 6c 20 6e 69 6c 20 | 64 6f 6e 65 20 6c 69 73 |ual nil |done lis|
|000049b0| 74 20 69 74 65 6d 5d 20 | 34 20 22 5c 0a 54 65 73 |t item] |4 "\.Tes|
|000049c0| 74 20 74 6f 20 73 65 65 | 20 69 66 20 49 54 45 4d |t to see| if ITEM|
|000049d0| 20 69 73 20 65 71 75 61 | 6c 20 74 6f 20 61 6e 20 | is equa|l to an |
|000049e0| 69 74 65 6d 20 69 6e 20 | 4c 49 53 54 2e 0a 4f 70 |item in |LIST..Op|
|000049f0| 74 69 6f 6e 20 63 6f 6d | 70 61 72 69 73 6f 6e 20 |tion com|parison |
|00004a00| 66 75 6e 63 74 69 6f 6e | 20 45 4c 54 3d 20 64 65 |function| ELT= de|
|00004a10| 66 61 75 6c 74 73 20 74 | 6f 20 65 71 75 61 6c 2e |faults t|o equal.|
|00004a20| 22 5d 29 0a 28 66 73 65 | 74 20 27 74 65 72 6d 2d |"]).(fse|t 'term-|
|00004a30| 72 65 61 64 2d 69 6e 70 | 75 74 2d 72 69 6e 67 20 |read-inp|ut-ring |
|00004a40| 23 5b 28 26 6f 70 74 69 | 6f 6e 61 6c 20 73 69 6c |#[(&opti|onal sil|
|00004a50| 65 6e 74 29 20 22 08 ab | 85 08 c1 9a ab 82 c2 87 |ent) "..|........|
|00004a60| c3 08 21 ac 88 0c ae ed | c5 c6 08 5c 22 87 c7 c8 |..!.....|...\"...|
|00004a70| 21 08 c9 ca 0e 0b 21 1e | 0c 1e 0d 1e 0e 1e 0f d0 |!.....!.|........|
|00004a80| 8e 8a 0e 0f 71 88 7e 88 | d1 20 88 d2 0e 0e 21 88 |....q.~.|. ....!.|
|00004a90| 64 62 88 0e 0d 0e 0b 57 | ab b2 d3 d4 c2 d5 23 ab |db.....W|......#.|
|00004aa0| ab d6 94 d6 95 7b 1e 17 | 0e 18 ab 90 d9 0e 0c 21 |.....{..|.......!|
|00004ab0| ac 8a da 0e 0c c9 5c 22 | 0e 17 98 ac 87 db 0e 0c |......\"|........|
|00004ac0| 0e 17 5c 22 88 29 0e 0d | 54 89 16 0d aa 49 2a 0e |..\".)..|T....I*.|
|00004ad0| 0c 16 1c c2 89 16 1d 2c | 87 22 20 5b 74 65 72 6d |.......,|." [term|
|00004ae0| 2d 69 6e 70 75 74 2d 72 | 69 6e 67 2d 66 69 6c 65 |-input-r|ing-file|
|00004af0| 2d 6e 61 6d 65 20 22 22 | 20 6e 69 6c 20 66 69 6c |-name ""| nil fil|
|00004b00| 65 2d 72 65 61 64 61 62 | 6c 65 2d 70 20 73 69 6c |e-readab|le-p sil|
|00004b10| 65 6e 74 20 6d 65 73 73 | 61 67 65 20 22 43 61 6e |ent mess|age "Can|
|00004b20| 6e 6f 74 20 72 65 61 64 | 20 68 69 73 74 6f 72 79 |not read| history|
|00004b30| 20 66 69 6c 65 20 25 73 | 22 20 67 65 74 2d 62 75 | file %s|" get-bu|
|00004b40| 66 66 65 72 2d 63 72 65 | 61 74 65 20 22 20 2a 74 |ffer-cre|ate " *t|
|00004b50| 65 6d 70 2a 22 20 30 20 | 6d 61 6b 65 2d 72 69 6e |emp*" 0 |make-rin|
|00004b60| 67 20 74 65 72 6d 2d 69 | 6e 70 75 74 2d 72 69 6e |g term-i|nput-rin|
|00004b70| 67 2d 73 69 7a 65 20 72 | 69 6e 67 20 63 6f 75 6e |g-size r|ing coun|
|00004b80| 74 20 66 69 6c 65 20 68 | 69 73 74 6f 72 79 2d 62 |t file h|istory-b|
|00004b90| 75 66 20 28 28 6b 69 6c | 6c 2d 62 75 66 66 65 72 |uf ((kil|l-buffer|
|00004ba0| 20 68 69 73 74 6f 72 79 | 2d 62 75 66 29 29 20 65 | history|-buf)) e|
|00004bb0| 72 61 73 65 2d 62 75 66 | 66 65 72 20 69 6e 73 65 |rase-buf|fer inse|
|00004bc0| 72 74 2d 66 69 6c 65 2d | 63 6f 6e 74 65 6e 74 73 |rt-file-|contents|
|00004bd0| 20 72 65 2d 73 65 61 72 | 63 68 2d 62 61 63 6b 77 | re-sear|ch-backw|
|00004be0| 61 72 64 20 22 5e 5b 20 | 09 5d 2a 5c 5c 28 5b 5e |ard "^[ |.]*\\([^|
|00004bf0| 23 5c 6e 5d 2e 2a 5c 5c | 29 5b 20 09 5d 2a 24 22 |#\n].*\\|)[ .]*$"|
|00004c00| 20 74 20 31 20 68 69 73 | 74 6f 72 79 20 74 65 72 | t 1 his|tory ter|
|00004c10| 6d 2d 69 6e 70 75 74 2d | 69 67 6e 6f 72 65 64 75 |m-input-|ignoredu|
|00004c20| 70 73 20 72 69 6e 67 2d | 65 6d 70 74 79 2d 70 20 |ps ring-|empty-p |
|00004c30| 72 69 6e 67 2d 72 65 66 | 20 72 69 6e 67 2d 69 6e |ring-ref| ring-in|
|00004c40| 73 65 72 74 2d 61 74 2d | 62 65 67 69 6e 6e 69 6e |sert-at-|beginnin|
|00004c50| 67 20 74 65 72 6d 2d 69 | 6e 70 75 74 2d 72 69 6e |g term-i|nput-rin|
|00004c60| 67 20 74 65 72 6d 2d 69 | 6e 70 75 74 2d 72 69 6e |g term-i|nput-rin|
|00004c70| 67 2d 69 6e 64 65 78 5d | 20 36 20 22 5c 0a 53 65 |g-index]| 6 "\.Se|
|00004c80| 74 73 20 74 68 65 20 62 | 75 66 66 65 72 27 73 20 |ts the b|uffer's |
|00004c90| 60 74 65 72 6d 2d 69 6e | 70 75 74 2d 72 69 6e 67 |`term-in|put-ring|
|00004ca0| 27 20 66 72 6f 6d 20 61 | 20 68 69 73 74 6f 72 79 |' from a| history|
|00004cb0| 20 66 69 6c 65 2e 0a 54 | 68 65 20 6e 61 6d 65 20 | file..T|he name |
|00004cc0| 6f 66 20 74 68 65 20 66 | 69 6c 65 20 69 73 20 67 |of the f|ile is g|
|00004cd0| 69 76 65 6e 20 62 79 20 | 74 68 65 20 76 61 72 69 |iven by |the vari|
|00004ce0| 61 62 6c 65 20 60 74 65 | 72 6d 2d 69 6e 70 75 74 |able `te|rm-input|
|00004cf0| 2d 72 69 6e 67 2d 66 69 | 6c 65 2d 6e 61 6d 65 27 |-ring-fi|le-name'|
|00004d00| 2e 0a 54 68 65 20 68 69 | 73 74 6f 72 79 20 72 69 |..The hi|story ri|
|00004d10| 6e 67 20 69 73 20 6f 66 | 20 73 69 7a 65 20 60 74 |ng is of| size `t|
|00004d20| 65 72 6d 2d 69 6e 70 75 | 74 2d 72 69 6e 67 2d 73 |erm-inpu|t-ring-s|
|00004d30| 69 7a 65 27 2c 20 72 65 | 67 61 72 64 6c 65 73 73 |ize', re|gardless|
|00004d40| 20 6f 66 20 66 69 6c 65 | 20 73 69 7a 65 2e 0a 49 | of file| size..I|
|00004d50| 66 20 60 74 65 72 6d 2d | 69 6e 70 75 74 2d 72 69 |f `term-|input-ri|
|00004d60| 6e 67 2d 66 69 6c 65 2d | 6e 61 6d 65 27 20 69 73 |ng-file-|name' is|
|00004d70| 20 6e 69 6c 20 74 68 69 | 73 20 66 75 6e 63 74 69 | nil thi|s functi|
|00004d80| 6f 6e 20 64 6f 65 73 20 | 6e 6f 74 68 69 6e 67 2e |on does |nothing.|
|00004d90| 0a 0a 49 66 20 74 68 65 | 20 6f 70 74 69 6f 6e 61 |..If the| optiona|
|00004da0| 6c 20 61 72 67 75 6d 65 | 6e 74 20 53 49 4c 45 4e |l argume|nt SILEN|
|00004db0| 54 20 69 73 20 6e 6f 6e | 2d 6e 69 6c 2c 20 77 65 |T is non|-nil, we|
|00004dc0| 20 73 61 79 20 6e 6f 74 | 68 69 6e 67 20 61 62 6f | say not|hing abo|
|00004dd0| 75 74 20 61 0a 66 61 69 | 6c 75 72 65 20 74 6f 20 |ut a.fai|lure to |
|00004de0| 72 65 61 64 20 74 68 65 | 20 68 69 73 74 6f 72 79 |read the| history|
|00004df0| 20 66 69 6c 65 2e 0a 0a | 54 68 69 73 20 66 75 6e | file...|This fun|
|00004e00| 63 74 69 6f 6e 20 69 73 | 20 75 73 65 66 75 6c 20 |ction is| useful |
|00004e10| 66 6f 72 20 6d 61 6a 6f | 72 20 6d 6f 64 65 20 63 |for majo|r mode c|
|00004e20| 6f 6d 6d 61 6e 64 73 20 | 61 6e 64 20 6d 6f 64 65 |ommands |and mode|
|00004e30| 20 68 6f 6f 6b 73 2e 0a | 0a 54 68 65 20 73 74 72 | hooks..|.The str|
|00004e40| 75 63 74 75 72 65 20 6f | 66 20 74 68 65 20 68 69 |ucture o|f the hi|
|00004e50| 73 74 6f 72 79 20 66 69 | 6c 65 20 73 68 6f 75 6c |story fi|le shoul|
|00004e60| 64 20 62 65 20 6f 6e 65 | 20 69 6e 70 75 74 20 63 |d be one| input c|
|00004e70| 6f 6d 6d 61 6e 64 20 70 | 65 72 20 6c 69 6e 65 2c |ommand p|er line,|
|00004e80| 0a 77 69 74 68 20 74 68 | 65 20 6d 6f 73 74 20 72 |.with th|e most r|
|00004e90| 65 63 65 6e 74 20 63 6f | 6d 6d 61 6e 64 20 6c 61 |ecent co|mmand la|
|00004ea0| 73 74 2e 0a 53 65 65 20 | 61 6c 73 6f 20 60 74 65 |st..See |also `te|
|00004eb0| 72 6d 2d 69 6e 70 75 74 | 2d 69 67 6e 6f 72 65 64 |rm-input|-ignored|
|00004ec0| 75 70 73 27 20 61 6e 64 | 20 60 74 65 72 6d 2d 77 |ups' and| `term-w|
|00004ed0| 72 69 74 65 2d 69 6e 70 | 75 74 2d 72 69 6e 67 27 |rite-inp|ut-ring'|
|00004ee0| 2e 22 5d 29 0a 28 66 73 | 65 74 20 27 74 65 72 6d |."]).(fs|et 'term|
|00004ef0| 2d 77 72 69 74 65 2d 69 | 6e 70 75 74 2d 72 69 6e |-write-i|nput-rin|
|00004f00| 67 20 23 5b 6e 69 6c 20 | 22 08 ab 8d 08 c1 9a ac |g #[nil |".......|
|00004f10| 88 5c 6e ab 85 c3 5c 6e | 21 ab 82 c4 87 c5 08 21 |.\n...\n|!......!|
|00004f20| ac 85 c6 c7 08 5c 22 87 | c8 c9 21 1e 5c 6e 5c 6e |.....\".|..!.\n\n|
|00004f30| 1e 0b 08 1e 0c cd 0e 0b | 21 1e 0e 8a 0e 5c 6e 71 |........|!....\nq|
|00004f40| 88 cf 20 88 0e 0e d0 56 | ab 91 0e 0e 53 16 0e d1 |.. ....V|....S...|
|00004f50| 0e 0b 0e 0e 5c 22 d2 b1 | 02 88 aa 69 d3 d4 20 c4 |....\"..|...i.. .|
|00004f60| 0e 0c c4 d5 25 88 d6 c4 | 21 2d 87 22 20 5b 74 65 |....%...|!-." [te|
|00004f70| 72 6d 2d 69 6e 70 75 74 | 2d 72 69 6e 67 2d 66 69 |rm-input|-ring-fi|
|00004f80| 6c 65 2d 6e 61 6d 65 20 | 22 22 20 74 65 72 6d 2d |le-name |"" term-|
|00004f90| 69 6e 70 75 74 2d 72 69 | 6e 67 20 72 69 6e 67 2d |input-ri|ng ring-|
|00004fa0| 65 6d 70 74 79 2d 70 20 | 6e 69 6c 20 66 69 6c 65 |empty-p |nil file|
|00004fb0| 2d 77 72 69 74 61 62 6c | 65 2d 70 20 6d 65 73 73 |-writabl|e-p mess|
|00004fc0| 61 67 65 20 22 43 61 6e | 6e 6f 74 20 77 72 69 74 |age "Can|not writ|
|00004fd0| 65 20 68 69 73 74 6f 72 | 79 20 66 69 6c 65 20 25 |e histor|y file %|
|00004fe0| 73 22 20 67 65 74 2d 62 | 75 66 66 65 72 2d 63 72 |s" get-b|uffer-cr|
|00004ff0| 65 61 74 65 20 22 20 2a | 54 65 6d 70 20 49 6e 70 |eate " *|Temp Inp|
|00005000| 75 74 20 48 69 73 74 6f | 72 79 2a 22 20 68 69 73 |ut Histo|ry*" his|
|00005010| 74 6f 72 79 2d 62 75 66 | 20 72 69 6e 67 20 66 69 |tory-buf| ring fi|
|00005020| 6c 65 20 72 69 6e 67 2d | 6c 65 6e 67 74 68 20 69 |le ring-|length i|
|00005030| 6e 64 65 78 20 65 72 61 | 73 65 2d 62 75 66 66 65 |ndex era|se-buffe|
|00005040| 72 20 30 20 72 69 6e 67 | 2d 72 65 66 20 31 30 20 |r 0 ring|-ref 10 |
|00005050| 77 72 69 74 65 2d 72 65 | 67 69 6f 6e 20 62 75 66 |write-re|gion buf|
|00005060| 66 65 72 2d 73 74 72 69 | 6e 67 20 6e 6f 2d 6d 65 |fer-stri|ng no-me|
|00005070| 73 73 61 67 65 20 6b 69 | 6c 6c 2d 62 75 66 66 65 |ssage ki|ll-buffe|
|00005080| 72 5d 20 36 20 22 5c 0a | 57 72 69 74 65 73 20 74 |r] 6 "\.|Writes t|
|00005090| 68 65 20 62 75 66 66 65 | 72 27 73 20 60 74 65 72 |he buffe|r's `ter|
|000050a0| 6d 2d 69 6e 70 75 74 2d | 72 69 6e 67 27 20 74 6f |m-input-|ring' to|
|000050b0| 20 61 20 68 69 73 74 6f | 72 79 20 66 69 6c 65 2e | a histo|ry file.|
|000050c0| 0a 54 68 65 20 6e 61 6d | 65 20 6f 66 20 74 68 65 |.The nam|e of the|
|000050d0| 20 66 69 6c 65 20 69 73 | 20 67 69 76 65 6e 20 62 | file is| given b|
|000050e0| 79 20 74 68 65 20 76 61 | 72 69 61 62 6c 65 20 60 |y the va|riable `|
|000050f0| 74 65 72 6d 2d 69 6e 70 | 75 74 2d 72 69 6e 67 2d |term-inp|ut-ring-|
|00005100| 66 69 6c 65 2d 6e 61 6d | 65 27 2e 0a 54 68 65 20 |file-nam|e'..The |
|00005110| 6f 72 69 67 69 6e 61 6c | 20 63 6f 6e 74 65 6e 74 |original| content|
|00005120| 73 20 6f 66 20 74 68 65 | 20 66 69 6c 65 20 61 72 |s of the| file ar|
|00005130| 65 20 6c 6f 73 74 20 69 | 66 20 60 74 65 72 6d 2d |e lost i|f `term-|
|00005140| 69 6e 70 75 74 2d 72 69 | 6e 67 27 20 69 73 20 6e |input-ri|ng' is n|
|00005150| 6f 74 20 65 6d 70 74 79 | 2e 0a 49 66 20 60 74 65 |ot empty|..If `te|
|00005160| 72 6d 2d 69 6e 70 75 74 | 2d 72 69 6e 67 2d 66 69 |rm-input|-ring-fi|
|00005170| 6c 65 2d 6e 61 6d 65 27 | 20 69 73 20 6e 69 6c 20 |le-name'| is nil |
|00005180| 74 68 69 73 20 66 75 6e | 63 74 69 6f 6e 20 64 6f |this fun|ction do|
|00005190| 65 73 20 6e 6f 74 68 69 | 6e 67 2e 0a 0a 55 73 65 |es nothi|ng...Use|
|000051a0| 66 75 6c 20 77 69 74 68 | 69 6e 20 70 72 6f 63 65 |ful with|in proce|
|000051b0| 73 73 20 73 65 6e 74 69 | 6e 65 6c 73 2e 0a 0a 53 |ss senti|nels...S|
|000051c0| 65 65 20 61 6c 73 6f 20 | 60 74 65 72 6d 2d 72 65 |ee also |`term-re|
|000051d0| 61 64 2d 69 6e 70 75 74 | 2d 72 69 6e 67 27 2e 22 |ad-input|-ring'."|
|000051e0| 5d 29 0a 28 66 73 65 74 | 20 27 74 65 72 6d 2d 64 |]).(fset| 'term-d|
|000051f0| 79 6e 61 6d 69 63 2d 6c | 69 73 74 2d 69 6e 70 75 |ynamic-l|ist-inpu|
|00005200| 74 2d 72 69 6e 67 20 23 | 5b 6e 69 6c 20 22 c0 09 |t-ring #|[nil "..|
|00005210| 21 ab 85 c2 09 21 ab 84 | c3 c4 21 87 c5 c6 c7 09 |!....!..|..!.....|
|00005220| 21 53 c8 20 1e 09 1e 5c | 6e 1e 0b 1e 0c 0e 5c 6e |!S. ...\|n.....\n|
|00005230| cd 59 ab 92 ce 09 0e 5c | 6e 5c 22 0e 0c 42 16 0c |.Y.....\|n\"..B..|
|00005240| 0e 5c 6e 53 89 16 5c 6e | aa 6a 0e 0b 90 cf 0e 0c |.\nS..\n|.j......|
|00005250| 21 88 0e 0b 71 88 d0 79 | 88 d1 d2 c5 d3 23 ad 86 |!...q..y|.....#..|
|00005260| d4 d5 21 88 aa 73 91 88 | d6 cd 21 88 c3 d7 21 88 |..!..s..|..!...!.|
|00005270| d8 20 89 1e 19 da 3d ab | 86 db 0e 09 21 aa 86 0e |. ....=.|....!...|
|00005280| 19 43 89 16 1c 2d 87 22 | 20 5b 72 69 6e 67 2d 70 |.C...-."| [ring-p|
|00005290| 20 74 65 72 6d 2d 69 6e | 70 75 74 2d 72 69 6e 67 | term-in|put-ring|
|000052a0| 20 72 69 6e 67 2d 65 6d | 70 74 79 2d 70 20 6d 65 | ring-em|pty-p me|
|000052b0| 73 73 61 67 65 20 22 4e | 6f 20 68 69 73 74 6f 72 |ssage "N|o histor|
|000052c0| 79 22 20 6e 69 6c 20 22 | 20 2a 49 6e 70 75 74 20 |y" nil "| *Input |
|000052d0| 48 69 73 74 6f 72 79 2a | 22 20 72 69 6e 67 2d 6c |History*|" ring-l|
|000052e0| 65 6e 67 74 68 20 63 75 | 72 72 65 6e 74 2d 77 69 |ength cu|rrent-wi|
|000052f0| 6e 64 6f 77 2d 63 6f 6e | 66 69 67 75 72 61 74 69 |ndow-con|figurati|
|00005300| 6f 6e 20 63 6f 6e 66 20 | 69 6e 64 65 78 20 68 69 |on conf |index hi|
|00005310| 73 74 6f 72 79 2d 62 75 | 66 66 65 72 20 68 69 73 |story-bu|ffer his|
|00005320| 74 6f 72 79 20 30 20 72 | 69 6e 67 2d 72 65 66 20 |tory 0 r|ing-ref |
|00005330| 64 69 73 70 6c 61 79 2d | 63 6f 6d 70 6c 65 74 69 |display-|completi|
|00005340| 6f 6e 2d 6c 69 73 74 20 | 33 20 73 65 61 72 63 68 |on-list |3 search|
|00005350| 2d 62 61 63 6b 77 61 72 | 64 20 22 63 6f 6d 70 6c |-backwar|d "compl|
|00005360| 65 74 69 6f 6e 22 20 6d | 6f 76 65 20 72 65 70 6c |etion" m|ove repl|
|00005370| 61 63 65 2d 6d 61 74 63 | 68 20 22 68 69 73 74 6f |ace-matc|h "histo|
|00005380| 72 79 20 72 65 66 65 72 | 65 6e 63 65 22 20 73 69 |ry refer|ence" si|
|00005390| 74 2d 66 6f 72 20 22 48 | 69 74 20 73 70 61 63 65 |t-for "H|it space|
|000053a0| 20 74 6f 20 66 6c 75 73 | 68 22 20 72 65 61 64 2d | to flus|h" read-|
|000053b0| 65 76 65 6e 74 20 63 68 | 20 33 32 20 73 65 74 2d |event ch| 32 set-|
|000053c0| 77 69 6e 64 6f 77 2d 63 | 6f 6e 66 69 67 75 72 61 |window-c|onfigura|
|000053d0| 74 69 6f 6e 20 75 6e 72 | 65 61 64 2d 63 6f 6d 6d |tion unr|ead-comm|
|000053e0| 61 6e 64 2d 65 76 65 6e | 74 73 5d 20 36 20 22 5c |and-even|ts] 6 "\|
|000053f0| 0a 4c 69 73 74 20 69 6e | 20 68 65 6c 70 20 62 75 |.List in| help bu|
|00005400| 66 66 65 72 20 74 68 65 | 20 62 75 66 66 65 72 27 |ffer the| buffer'|
|00005410| 73 20 69 6e 70 75 74 20 | 68 69 73 74 6f 72 79 2e |s input |history.|
|00005420| 22 20 6e 69 6c 5d 29 0a | 28 62 79 74 65 2d 63 6f |" nil]).|(byte-co|
|00005430| 64 65 20 22 c0 c1 4d 88 | c2 c3 4d 88 c4 c5 4d 87 |de "..M.|..M...M.|
|00005440| 22 20 5b 74 65 72 6d 2d | 72 65 67 65 78 70 2d 61 |" [term-|regexp-a|
|00005450| 72 67 20 23 5b 28 70 72 | 6f 6d 70 74 29 20 22 c0 |rg #[(pr|ompt) ".|
|00005460| 19 5c 6e 1a c3 0c c0 89 | 89 c5 25 89 1e 06 c7 98 |.\n.....|..%.....|
|00005470| ab 87 0d 89 41 40 a0 aa | 82 0e 06 c8 0e 09 21 2b |....A@..|......!+|
|00005480| 44 87 22 20 5b 6e 69 6c | 20 6d 69 6e 69 62 75 66 |D." [nil| minibuf|
|00005490| 66 65 72 2d 68 69 73 74 | 6f 72 79 2d 73 65 78 70 |fer-hist|ory-sexp|
|000054a0| 2d 66 6c 61 67 20 6c 61 | 73 74 2d 63 6f 6d 6d 61 |-flag la|st-comma|
|000054b0| 6e 64 20 72 65 61 64 2d | 66 72 6f 6d 2d 6d 69 6e |nd read-|from-min|
|000054c0| 69 62 75 66 66 65 72 20 | 70 72 6f 6d 70 74 20 6d |ibuffer |prompt m|
|000054d0| 69 6e 69 62 75 66 66 65 | 72 2d 68 69 73 74 6f 72 |inibuffe|r-histor|
|000054e0| 79 2d 73 65 61 72 63 68 | 2d 68 69 73 74 6f 72 79 |y-search|-history|
|000054f0| 20 72 65 67 65 78 70 20 | 22 22 20 70 72 65 66 69 | regexp |"" prefi|
|00005500| 78 2d 6e 75 6d 65 72 69 | 63 2d 76 61 6c 75 65 20 |x-numeri|c-value |
|00005510| 63 75 72 72 65 6e 74 2d | 70 72 65 66 69 78 2d 61 |current-|prefix-a|
|00005520| 72 67 5d 20 37 5d 20 74 | 65 72 6d 2d 73 65 61 72 |rg] 7] t|erm-sear|
|00005530| 63 68 2d 61 72 67 20 23 | 5b 28 61 72 67 29 20 22 |ch-arg #|[(arg) "|
|00005540| c0 20 ac 84 c1 c2 21 87 | 0b ab 85 c4 0b 21 ab 84 |. ....!.|.....!..|
|00005550| c1 c5 21 87 0e 06 c7 55 | ab 85 c8 16 09 ca 87 0e |..!....U|........|
|00005560| 06 87 22 20 5b 74 65 72 | 6d 2d 61 66 74 65 72 2d |.." [ter|m-after-|
|00005570| 70 6d 61 72 6b 2d 70 20 | 65 72 72 6f 72 20 22 4e |pmark-p |error "N|
|00005580| 6f 74 20 61 74 20 63 6f | 6d 6d 61 6e 64 20 6c 69 |ot at co|mmand li|
|00005590| 6e 65 22 20 74 65 72 6d | 2d 69 6e 70 75 74 2d 72 |ne" term|-input-r|
|000055a0| 69 6e 67 20 72 69 6e 67 | 2d 65 6d 70 74 79 2d 70 |ing ring|-empty-p|
|000055b0| 20 22 45 6d 70 74 79 20 | 69 6e 70 75 74 20 72 69 | "Empty |input ri|
|000055c0| 6e 67 22 20 61 72 67 20 | 30 20 6e 69 6c 20 74 65 |ng" arg |0 nil te|
|000055d0| 72 6d 2d 69 6e 70 75 74 | 2d 72 69 6e 67 2d 69 6e |rm-input|-ring-in|
|000055e0| 64 65 78 20 31 5d 20 32 | 5d 20 74 65 72 6d 2d 73 |dex 1] 2|] term-s|
|000055f0| 65 61 72 63 68 2d 73 74 | 61 72 74 20 23 5b 28 61 |earch-st|art #[(a|
|00005600| 72 67 29 20 22 08 ab 92 | c1 08 5c 6e c3 56 ab 83 |rg) "...|..\n.V..|
|00005610| c4 aa 81 c5 5c 5c c6 0e | 07 21 5c 22 87 5c 6e c3 |....\\..|.!\".\n.|
|00005620| 59 ab 82 c3 87 c6 0e 07 | 21 53 87 22 20 5b 74 65 |Y.......|!S." [te|
|00005630| 72 6d 2d 69 6e 70 75 74 | 2d 72 69 6e 67 2d 69 6e |rm-input|-ring-in|
|00005640| 64 65 78 20 6d 6f 64 20 | 61 72 67 20 30 20 31 20 |dex mod |arg 0 1 |
|00005650| 2d 31 20 72 69 6e 67 2d | 6c 65 6e 67 74 68 20 74 |-1 ring-|length t|
|00005660| 65 72 6d 2d 69 6e 70 75 | 74 2d 72 69 6e 67 5d 20 |erm-inpu|t-ring] |
|00005670| 34 5d 5d 20 32 29 0a 28 | 66 73 65 74 20 27 74 65 |4]] 2).(|fset 'te|
|00005680| 72 6d 2d 70 72 65 76 69 | 6f 75 73 2d 69 6e 70 75 |rm-previ|ous-inpu|
|00005690| 74 2d 73 74 72 69 6e 67 | 20 23 5b 28 61 72 67 29 |t-string| #[(arg)|
|000056a0| 20 22 c0 09 5c 6e ab 8a | c3 0c 5c 6e 5c 5c c5 09 | "..\n..|..\n\\..|
|000056b0| 21 5c 22 aa 81 0c 5c 22 | 87 22 20 5b 72 69 6e 67 |!\"...\"|." [ring|
|000056c0| 2d 72 65 66 20 74 65 72 | 6d 2d 69 6e 70 75 74 2d |-ref ter|m-input-|
|000056d0| 72 69 6e 67 20 74 65 72 | 6d 2d 69 6e 70 75 74 2d |ring ter|m-input-|
|000056e0| 72 69 6e 67 2d 69 6e 64 | 65 78 20 6d 6f 64 20 61 |ring-ind|ex mod a|
|000056f0| 72 67 20 72 69 6e 67 2d | 6c 65 6e 67 74 68 5d 20 |rg ring-|length] |
|00005700| 36 20 22 5c 0a 52 65 74 | 75 72 6e 20 74 68 65 20 |6 "\.Ret|urn the |
|00005710| 73 74 72 69 6e 67 20 41 | 52 47 20 70 6c 61 63 65 |string A|RG place|
|00005720| 73 20 61 6c 6f 6e 67 20 | 74 68 65 20 69 6e 70 75 |s along |the inpu|
|00005730| 74 20 72 69 6e 67 2e 0a | 4d 6f 76 65 73 20 72 65 |t ring..|Moves re|
|00005740| 6c 61 74 69 76 65 20 74 | 6f 20 60 74 65 72 6d 2d |lative t|o `term-|
|00005750| 69 6e 70 75 74 2d 72 69 | 6e 67 2d 69 6e 64 65 78 |input-ri|ng-index|
|00005760| 27 2e 22 5d 29 0a 28 66 | 73 65 74 20 27 74 65 72 |'."]).(f|set 'ter|
|00005770| 6d 2d 70 72 65 76 69 6f | 75 73 2d 69 6e 70 75 74 |m-previo|us-input|
|00005780| 20 23 5b 28 61 72 67 29 | 20 22 c0 c1 5c 6e 5c 22 | #[(arg)| "..\n\"|
|00005790| 87 22 20 5b 74 65 72 6d | 2d 70 72 65 76 69 6f 75 |." [term|-previou|
|000057a0| 73 2d 6d 61 74 63 68 69 | 6e 67 2d 69 6e 70 75 74 |s-matchi|ng-input|
|000057b0| 20 22 2e 22 20 61 72 67 | 5d 20 33 20 22 5c 0a 43 | "." arg|] 3 "\.C|
|000057c0| 79 63 6c 65 20 62 61 63 | 6b 77 61 72 64 73 20 74 |ycle bac|kwards t|
|000057d0| 68 72 6f 75 67 68 20 69 | 6e 70 75 74 20 68 69 73 |hrough i|nput his|
|000057e0| 74 6f 72 79 2e 22 20 22 | 2a 70 22 5d 29 0a 28 66 |tory." "|*p"]).(f|
|000057f0| 73 65 74 20 27 74 65 72 | 6d 2d 6e 65 78 74 2d 69 |set 'ter|m-next-i|
|00005800| 6e 70 75 74 20 23 5b 28 | 61 72 67 29 20 22 c0 09 |nput #[(|arg) "..|
|00005810| 5b 21 87 22 20 5b 74 65 | 72 6d 2d 70 72 65 76 69 |[!." [te|rm-previ|
|00005820| 6f 75 73 2d 69 6e 70 75 | 74 20 61 72 67 5d 20 32 |ous-inpu|t arg] 2|
|00005830| 20 22 5c 0a 43 79 63 6c | 65 20 66 6f 72 77 61 72 | "\.Cycl|e forwar|
|00005840| 64 73 20 74 68 72 6f 75 | 67 68 20 69 6e 70 75 74 |ds throu|gh input|
|00005850| 20 68 69 73 74 6f 72 79 | 2e 22 20 22 2a 70 22 5d | history|." "*p"]|
|00005860| 29 0a 28 66 73 65 74 20 | 27 74 65 72 6d 2d 70 72 |).(fset |'term-pr|
|00005870| 65 76 69 6f 75 73 2d 6d | 61 74 63 68 69 6e 67 2d |evious-m|atching-|
|00005880| 69 6e 70 75 74 2d 73 74 | 72 69 6e 67 20 23 5b 28 |input-st|ring #[(|
|00005890| 72 65 67 65 78 70 20 61 | 72 67 29 20 22 c0 09 5c |regexp a|rg) "..\|
|000058a0| 6e 5c 22 89 1b ad 84 c4 | 0d 0b 5c 22 29 87 22 20 |n\".....|..\")." |
|000058b0| 5b 74 65 72 6d 2d 70 72 | 65 76 69 6f 75 73 2d 6d |[term-pr|evious-m|
|000058c0| 61 74 63 68 69 6e 67 2d | 69 6e 70 75 74 2d 73 74 |atching-|input-st|
|000058d0| 72 69 6e 67 2d 70 6f 73 | 69 74 69 6f 6e 20 72 65 |ring-pos|ition re|
|000058e0| 67 65 78 70 20 61 72 67 | 20 70 6f 73 20 72 69 6e |gexp arg| pos rin|
|000058f0| 67 2d 72 65 66 20 74 65 | 72 6d 2d 69 6e 70 75 74 |g-ref te|rm-input|
|00005900| 2d 72 69 6e 67 5d 20 34 | 20 22 5c 0a 52 65 74 75 |-ring] 4| "\.Retu|
|00005910| 72 6e 20 74 68 65 20 73 | 74 72 69 6e 67 20 6d 61 |rn the s|tring ma|
|00005920| 74 63 68 69 6e 67 20 52 | 45 47 45 58 50 20 41 52 |tching R|EGEXP AR|
|00005930| 47 20 70 6c 61 63 65 73 | 20 61 6c 6f 6e 67 20 74 |G places| along t|
|00005940| 68 65 20 69 6e 70 75 74 | 20 72 69 6e 67 2e 0a 4d |he input| ring..M|
|00005950| 6f 76 65 73 20 72 65 6c | 61 74 69 76 65 20 74 6f |oves rel|ative to|
|00005960| 20 60 74 65 72 6d 2d 69 | 6e 70 75 74 2d 72 69 6e | `term-i|nput-rin|
|00005970| 67 2d 69 6e 64 65 78 27 | 2e 22 5d 29 0a 28 66 73 |g-index'|."]).(fs|
|00005980| 65 74 20 27 74 65 72 6d | 2d 70 72 65 76 69 6f 75 |et 'term|-previou|
|00005990| 73 2d 6d 61 74 63 68 69 | 6e 67 2d 69 6e 70 75 74 |s-matchi|ng-input|
|000059a0| 2d 73 74 72 69 6e 67 2d | 70 6f 73 69 74 69 6f 6e |-string-|position|
|000059b0| 20 23 5b 28 72 65 67 65 | 78 70 20 61 72 67 20 26 | #[(rege|xp arg &|
|000059c0| 6f 70 74 69 6f 6e 61 6c | 20 73 74 61 72 74 29 20 |optional| start) |
|000059d0| 22 c0 09 21 ab 85 c2 09 | 21 ab 84 c3 c4 21 88 c5 |"..!....|!....!..|
|000059e0| 09 21 1e 06 0e 07 c8 56 | ab 83 c9 aa 81 ca 1e 0b |.!.....V|........|
|000059f0| cc 0e 0d ae 84 ce 0e 07 | 21 0e 0b 5a 0e 06 5c 22 |........|!..Z..\"|
|00005a00| 1e 0f d0 1e 11 d0 1e 12 | 0e 07 c8 55 ac cf 0e 11 |........|...U....|
|00005a10| ac cb 0e 0f 16 12 cc 0e | 0f 0e 0b 5c 5c 0e 06 5c |........|...\\..\|
|00005a20| 22 16 0f 0e 0f 0e 06 57 | ab a2 0e 11 ac 9e d3 0e |"......W|........|
|00005a30| 14 d5 09 0e 0f 5c 22 5c | 22 ac 93 cc 0e 0f 0e 0b |.....\"\|".......|
|00005a40| 5c 5c 0e 06 5c 22 89 16 | 0f 0e 12 55 16 11 aa 57 |\\..\"..|...U...W|
|00005a50| 0e 07 c8 56 ab 85 0e 07 | 53 aa 83 0e 07 54 89 16 |...V....|S....T..|
|00005a60| 07 aa 2d d3 0e 14 d5 09 | 0e 0f 5c 22 5c 22 ad 82 |..-.....|..\"\"..|
|00005a70| 0e 0f 2d 87 22 20 5b 72 | 69 6e 67 2d 70 20 74 65 |..-." [r|ing-p te|
|00005a80| 72 6d 2d 69 6e 70 75 74 | 2d 72 69 6e 67 20 72 69 |rm-input|-ring ri|
|00005a90| 6e 67 2d 65 6d 70 74 79 | 2d 70 20 65 72 72 6f 72 |ng-empty|-p error|
|00005aa0| 20 22 4e 6f 20 68 69 73 | 74 6f 72 79 22 20 72 69 | "No his|tory" ri|
|00005ab0| 6e 67 2d 6c 65 6e 67 74 | 68 20 6c 65 6e 20 61 72 |ng-lengt|h len ar|
|00005ac0| 67 20 30 20 31 20 2d 31 | 20 6d 6f 74 69 6f 6e 20 |g 0 1 -1| motion |
|00005ad0| 6d 6f 64 20 73 74 61 72 | 74 20 74 65 72 6d 2d 73 |mod star|t term-s|
|00005ae0| 65 61 72 63 68 2d 73 74 | 61 72 74 20 6e 20 6e 69 |earch-st|art n ni|
|00005af0| 6c 20 74 72 69 65 64 2d | 65 61 63 68 2d 72 69 6e |l tried-|each-rin|
|00005b00| 67 2d 69 74 65 6d 20 70 | 72 65 76 20 73 74 72 69 |g-item p|rev stri|
|00005b10| 6e 67 2d 6d 61 74 63 68 | 20 72 65 67 65 78 70 20 |ng-match| regexp |
|00005b20| 72 69 6e 67 2d 72 65 66 | 5d 20 36 20 22 5c 0a 52 |ring-ref|] 6 "\.R|
|00005b30| 65 74 75 72 6e 20 74 68 | 65 20 69 6e 64 65 78 20 |eturn th|e index |
|00005b40| 6d 61 74 63 68 69 6e 67 | 20 52 45 47 45 58 50 20 |matching| REGEXP |
|00005b50| 41 52 47 20 70 6c 61 63 | 65 73 20 61 6c 6f 6e 67 |ARG plac|es along|
|00005b60| 20 74 68 65 20 69 6e 70 | 75 74 20 72 69 6e 67 2e | the inp|ut ring.|
|00005b70| 0a 4d 6f 76 65 73 20 72 | 65 6c 61 74 69 76 65 20 |.Moves r|elative |
|00005b80| 74 6f 20 53 54 41 52 54 | 2c 20 6f 72 20 60 74 65 |to START|, or `te|
|00005b90| 72 6d 2d 69 6e 70 75 74 | 2d 72 69 6e 67 2d 69 6e |rm-input|-ring-in|
|00005ba0| 64 65 78 27 2e 22 5d 29 | 0a 28 66 73 65 74 20 27 |dex'."])|.(fset '|
|00005bb0| 74 65 72 6d 2d 70 72 65 | 76 69 6f 75 73 2d 6d 61 |term-pre|vious-ma|
|00005bc0| 74 63 68 69 6e 67 2d 69 | 6e 70 75 74 20 23 5b 28 |tching-i|nput #[(|
|00005bd0| 72 65 67 65 78 70 20 61 | 72 67 29 20 22 c0 09 21 |regexp a|rg) "..!|
|00005be0| 11 c2 0b 09 5c 22 89 1c | ac 85 c5 c6 21 aa 97 0c |....\"..|....!...|
|00005bf0| 16 07 c8 c9 0c 54 5c 22 | 88 ca cb 70 21 21 60 7c |.....T\"|...p!!`||
|00005c00| 88 cc 0e 0d 0c 5c 22 63 | 29 87 22 20 5b 74 65 72 |.....\"c|)." [ter|
|00005c10| 6d 2d 73 65 61 72 63 68 | 2d 61 72 67 20 61 72 67 |m-search|-arg arg|
|00005c20| 20 74 65 72 6d 2d 70 72 | 65 76 69 6f 75 73 2d 6d | term-pr|evious-m|
|00005c30| 61 74 63 68 69 6e 67 2d | 69 6e 70 75 74 2d 73 74 |atching-|input-st|
|00005c40| 72 69 6e 67 2d 70 6f 73 | 69 74 69 6f 6e 20 72 65 |ring-pos|ition re|
|00005c50| 67 65 78 70 20 70 6f 73 | 20 65 72 72 6f 72 20 22 |gexp pos| error "|
|00005c60| 4e 6f 74 20 66 6f 75 6e | 64 22 20 74 65 72 6d 2d |Not foun|d" term-|
|00005c70| 69 6e 70 75 74 2d 72 69 | 6e 67 2d 69 6e 64 65 78 |input-ri|ng-index|
|00005c80| 20 6d 65 73 73 61 67 65 | 20 22 48 69 73 74 6f 72 | message| "Histor|
|00005c90| 79 20 69 74 65 6d 3a 20 | 25 64 22 20 70 72 6f 63 |y item: |%d" proc|
|00005ca0| 65 73 73 2d 6d 61 72 6b | 20 67 65 74 2d 62 75 66 |ess-mark| get-buf|
|00005cb0| 66 65 72 2d 70 72 6f 63 | 65 73 73 20 72 69 6e 67 |fer-proc|ess ring|
|00005cc0| 2d 72 65 66 20 74 65 72 | 6d 2d 69 6e 70 75 74 2d |-ref ter|m-input-|
|00005cd0| 72 69 6e 67 5d 20 34 20 | 22 5c 0a 53 65 61 72 63 |ring] 4 |"\.Searc|
|00005ce0| 68 20 62 61 63 6b 77 61 | 72 64 73 20 74 68 72 6f |h backwa|rds thro|
|00005cf0| 75 67 68 20 69 6e 70 75 | 74 20 68 69 73 74 6f 72 |ugh inpu|t histor|
|00005d00| 79 20 66 6f 72 20 6d 61 | 74 63 68 20 66 6f 72 20 |y for ma|tch for |
|00005d10| 52 45 47 45 58 50 2e 0a | 28 50 72 65 76 69 6f 75 |REGEXP..|(Previou|
|00005d20| 73 20 68 69 73 74 6f 72 | 79 20 65 6c 65 6d 65 6e |s histor|y elemen|
|00005d30| 74 73 20 61 72 65 20 65 | 61 72 6c 69 65 72 20 63 |ts are e|arlier c|
|00005d40| 6f 6d 6d 61 6e 64 73 2e | 29 0a 57 69 74 68 20 70 |ommands.|).With p|
|00005d50| 72 65 66 69 78 20 61 72 | 67 75 6d 65 6e 74 20 4e |refix ar|gument N|
|00005d60| 2c 20 73 65 61 72 63 68 | 20 66 6f 72 20 4e 74 68 |, search| for Nth|
|00005d70| 20 70 72 65 76 69 6f 75 | 73 20 6d 61 74 63 68 2e | previou|s match.|
|00005d80| 0a 49 66 20 4e 20 69 73 | 20 6e 65 67 61 74 69 76 |.If N is| negativ|
|00005d90| 65 2c 20 66 69 6e 64 20 | 74 68 65 20 6e 65 78 74 |e, find |the next|
|00005da0| 20 6f 72 20 4e 74 68 20 | 6e 65 78 74 20 6d 61 74 | or Nth |next mat|
|00005db0| 63 68 2e 22 20 28 74 65 | 72 6d 2d 72 65 67 65 78 |ch." (te|rm-regex|
|00005dc0| 70 2d 61 72 67 20 22 50 | 72 65 76 69 6f 75 73 20 |p-arg "P|revious |
|00005dd0| 69 6e 70 75 74 20 6d 61 | 74 63 68 69 6e 67 20 28 |input ma|tching (|
|00005de0| 72 65 67 65 78 70 29 3a | 20 22 29 5d 29 0a 28 66 |regexp):| ")]).(f|
|00005df0| 73 65 74 20 27 74 65 72 | 6d 2d 6e 65 78 74 2d 6d |set 'ter|m-next-m|
|00005e00| 61 74 63 68 69 6e 67 2d | 69 6e 70 75 74 20 23 5b |atching-|input #[|
|00005e10| 28 72 65 67 65 78 70 20 | 61 72 67 29 20 22 c0 09 |(regexp |arg) "..|
|00005e20| 5c 6e 5b 5c 22 87 22 20 | 5b 74 65 72 6d 2d 70 72 |\n[\"." |[term-pr|
|00005e30| 65 76 69 6f 75 73 2d 6d | 61 74 63 68 69 6e 67 2d |evious-m|atching-|
|00005e40| 69 6e 70 75 74 20 72 65 | 67 65 78 70 20 61 72 67 |input re|gexp arg|
|00005e50| 5d 20 33 20 22 5c 0a 53 | 65 61 72 63 68 20 66 6f |] 3 "\.S|earch fo|
|00005e60| 72 77 61 72 64 73 20 74 | 68 72 6f 75 67 68 20 69 |rwards t|hrough i|
|00005e70| 6e 70 75 74 20 68 69 73 | 74 6f 72 79 20 66 6f 72 |nput his|tory for|
|00005e80| 20 6d 61 74 63 68 20 66 | 6f 72 20 52 45 47 45 58 | match f|or REGEX|
|00005e90| 50 2e 0a 28 4c 61 74 65 | 72 20 68 69 73 74 6f 72 |P..(Late|r histor|
|00005ea0| 79 20 65 6c 65 6d 65 6e | 74 73 20 61 72 65 20 6d |y elemen|ts are m|
|00005eb0| 6f 72 65 20 72 65 63 65 | 6e 74 20 63 6f 6d 6d 61 |ore rece|nt comma|
|00005ec0| 6e 64 73 2e 29 0a 57 69 | 74 68 20 70 72 65 66 69 |nds.).Wi|th prefi|
|00005ed0| 78 20 61 72 67 75 6d 65 | 6e 74 20 4e 2c 20 73 65 |x argume|nt N, se|
|00005ee0| 61 72 63 68 20 66 6f 72 | 20 4e 74 68 20 66 6f 6c |arch for| Nth fol|
|00005ef0| 6c 6f 77 69 6e 67 20 6d | 61 74 63 68 2e 0a 49 66 |lowing m|atch..If|
|00005f00| 20 4e 20 69 73 20 6e 65 | 67 61 74 69 76 65 2c 20 | N is ne|gative, |
|00005f10| 66 69 6e 64 20 74 68 65 | 20 70 72 65 76 69 6f 75 |find the| previou|
|00005f20| 73 20 6f 72 20 4e 74 68 | 20 70 72 65 76 69 6f 75 |s or Nth| previou|
|00005f30| 73 20 6d 61 74 63 68 2e | 22 20 28 74 65 72 6d 2d |s match.|" (term-|
|00005f40| 72 65 67 65 78 70 2d 61 | 72 67 20 22 4e 65 78 74 |regexp-a|rg "Next|
|00005f50| 20 69 6e 70 75 74 20 6d | 61 74 63 68 69 6e 67 20 | input m|atching |
|00005f60| 28 72 65 67 65 78 70 29 | 3a 20 22 29 5d 29 0a 28 |(regexp)|: ")]).(|
|00005f70| 66 73 65 74 20 27 74 65 | 72 6d 2d 70 72 65 76 69 |fset 'te|rm-previ|
|00005f80| 6f 75 73 2d 6d 61 74 63 | 68 69 6e 67 2d 69 6e 70 |ous-matc|hing-inp|
|00005f90| 75 74 2d 66 72 6f 6d 2d | 69 6e 70 75 74 20 23 5b |ut-from-|input #[|
|00005fa0| 28 61 72 67 29 20 22 08 | c1 3e ac 8b c2 c3 70 21 |(arg) ".|.>....p!|
|00005fb0| 21 60 7b 14 c5 16 06 c7 | c8 c9 0c 21 50 0e 5c 6e |!`{.....|...!P.\n|
|00005fc0| 5c 22 87 22 20 5b 6c 61 | 73 74 2d 63 6f 6d 6d 61 |\"." [la|st-comma|
|00005fd0| 6e 64 20 28 74 65 72 6d | 2d 70 72 65 76 69 6f 75 |nd (term|-previou|
|00005fe0| 73 2d 6d 61 74 63 68 69 | 6e 67 2d 69 6e 70 75 74 |s-matchi|ng-input|
|00005ff0| 2d 66 72 6f 6d 2d 69 6e | 70 75 74 20 74 65 72 6d |-from-in|put term|
|00006000| 2d 6e 65 78 74 2d 6d 61 | 74 63 68 69 6e 67 2d 69 |-next-ma|tching-i|
|00006010| 6e 70 75 74 2d 66 72 6f | 6d 2d 69 6e 70 75 74 29 |nput-fro|m-input)|
|00006020| 20 70 72 6f 63 65 73 73 | 2d 6d 61 72 6b 20 67 65 | process|-mark ge|
|00006030| 74 2d 62 75 66 66 65 72 | 2d 70 72 6f 63 65 73 73 |t-buffer|-process|
|00006040| 20 74 65 72 6d 2d 6d 61 | 74 63 68 69 6e 67 2d 69 | term-ma|tching-i|
|00006050| 6e 70 75 74 2d 66 72 6f | 6d 2d 69 6e 70 75 74 2d |nput-fro|m-input-|
|00006060| 73 74 72 69 6e 67 20 6e | 69 6c 20 74 65 72 6d 2d |string n|il term-|
|00006070| 69 6e 70 75 74 2d 72 69 | 6e 67 2d 69 6e 64 65 78 |input-ri|ng-index|
|00006080| 20 74 65 72 6d 2d 70 72 | 65 76 69 6f 75 73 2d 6d | term-pr|evious-m|
|00006090| 61 74 63 68 69 6e 67 2d | 69 6e 70 75 74 20 22 5e |atching-|input "^|
|000060a0| 22 20 72 65 67 65 78 70 | 2d 71 75 6f 74 65 20 61 |" regexp|-quote a|
|000060b0| 72 67 5d 20 34 20 22 5c | 0a 53 65 61 72 63 68 20 |rg] 4 "\|.Search |
|000060c0| 62 61 63 6b 77 61 72 64 | 73 20 74 68 72 6f 75 67 |backward|s throug|
|000060d0| 68 20 69 6e 70 75 74 20 | 68 69 73 74 6f 72 79 20 |h input |history |
|000060e0| 66 6f 72 20 6d 61 74 63 | 68 20 66 6f 72 20 63 75 |for matc|h for cu|
|000060f0| 72 72 65 6e 74 20 69 6e | 70 75 74 2e 0a 28 50 72 |rrent in|put..(Pr|
|00006100| 65 76 69 6f 75 73 20 68 | 69 73 74 6f 72 79 20 65 |evious h|istory e|
|00006110| 6c 65 6d 65 6e 74 73 20 | 61 72 65 20 65 61 72 6c |lements |are earl|
|00006120| 69 65 72 20 63 6f 6d 6d | 61 6e 64 73 2e 29 0a 57 |ier comm|ands.).W|
|00006130| 69 74 68 20 70 72 65 66 | 69 78 20 61 72 67 75 6d |ith pref|ix argum|
|00006140| 65 6e 74 20 4e 2c 20 73 | 65 61 72 63 68 20 66 6f |ent N, s|earch fo|
|00006150| 72 20 4e 74 68 20 70 72 | 65 76 69 6f 75 73 20 6d |r Nth pr|evious m|
|00006160| 61 74 63 68 2e 0a 49 66 | 20 4e 20 69 73 20 6e 65 |atch..If| N is ne|
|00006170| 67 61 74 69 76 65 2c 20 | 73 65 61 72 63 68 20 66 |gative, |search f|
|00006180| 6f 72 77 61 72 64 73 20 | 66 6f 72 20 74 68 65 20 |orwards |for the |
|00006190| 2d 4e 74 68 20 66 6f 6c | 6c 6f 77 69 6e 67 20 6d |-Nth fol|lowing m|
|000061a0| 61 74 63 68 2e 22 20 22 | 70 22 5d 29 0a 28 66 73 |atch." "|p"]).(fs|
|000061b0| 65 74 20 27 74 65 72 6d | 2d 6e 65 78 74 2d 6d 61 |et 'term|-next-ma|
|000061c0| 74 63 68 69 6e 67 2d 69 | 6e 70 75 74 2d 66 72 6f |tching-i|nput-fro|
|000061d0| 6d 2d 69 6e 70 75 74 20 | 23 5b 28 61 72 67 29 20 |m-input |#[(arg) |
|000061e0| 22 c0 09 5b 21 87 22 20 | 5b 74 65 72 6d 2d 70 72 |"..[!." |[term-pr|
|000061f0| 65 76 69 6f 75 73 2d 6d | 61 74 63 68 69 6e 67 2d |evious-m|atching-|
|00006200| 69 6e 70 75 74 2d 66 72 | 6f 6d 2d 69 6e 70 75 74 |input-fr|om-input|
|00006210| 20 61 72 67 5d 20 32 20 | 22 5c 0a 53 65 61 72 63 | arg] 2 |"\.Searc|
|00006220| 68 20 66 6f 72 77 61 72 | 64 73 20 74 68 72 6f 75 |h forwar|ds throu|
|00006230| 67 68 20 69 6e 70 75 74 | 20 68 69 73 74 6f 72 79 |gh input| history|
|00006240| 20 66 6f 72 20 6d 61 74 | 63 68 20 66 6f 72 20 63 | for mat|ch for c|
|00006250| 75 72 72 65 6e 74 20 69 | 6e 70 75 74 2e 0a 28 46 |urrent i|nput..(F|
|00006260| 6f 6c 6c 6f 77 69 6e 67 | 20 68 69 73 74 6f 72 79 |ollowing| history|
|00006270| 20 65 6c 65 6d 65 6e 74 | 73 20 61 72 65 20 6d 6f | element|s are mo|
|00006280| 72 65 20 72 65 63 65 6e | 74 20 63 6f 6d 6d 61 6e |re recen|t comman|
|00006290| 64 73 2e 29 0a 57 69 74 | 68 20 70 72 65 66 69 78 |ds.).Wit|h prefix|
|000062a0| 20 61 72 67 75 6d 65 6e | 74 20 4e 2c 20 73 65 61 | argumen|t N, sea|
|000062b0| 72 63 68 20 66 6f 72 20 | 4e 74 68 20 66 6f 6c 6c |rch for |Nth foll|
|000062c0| 6f 77 69 6e 67 20 6d 61 | 74 63 68 2e 0a 49 66 20 |owing ma|tch..If |
|000062d0| 4e 20 69 73 20 6e 65 67 | 61 74 69 76 65 2c 20 73 |N is neg|ative, s|
|000062e0| 65 61 72 63 68 20 62 61 | 63 6b 77 61 72 64 73 20 |earch ba|ckwards |
|000062f0| 66 6f 72 20 74 68 65 20 | 2d 4e 74 68 20 70 72 65 |for the |-Nth pre|
|00006300| 76 69 6f 75 73 20 6d 61 | 74 63 68 2e 22 20 22 70 |vious ma|tch." "p|
|00006310| 22 5d 29 0a 28 66 73 65 | 74 20 27 74 65 72 6d 2d |"]).(fse|t 'term-|
|00006320| 72 65 70 6c 61 63 65 2d | 62 79 2d 65 78 70 61 6e |replace-|by-expan|
|00006330| 64 65 64 2d 68 69 73 74 | 6f 72 79 20 23 5b 28 26 |ded-hist|ory #[(&|
|00006340| 6f 70 74 69 6f 6e 61 6c | 20 73 69 6c 65 6e 74 29 |optional| silent)|
|00006350| 20 22 08 ad a6 c1 c2 0b | 20 5c 22 ad 9f 8a c4 79 | "......| \"....y|
|00006360| 88 c5 0e 06 21 29 ad 94 | c7 20 1e 08 c9 ca 21 88 |....!)..|. ....!.|
|00006370| cb 0e 0c 21 88 0e 08 c7 | 20 55 29 3f 87 22 20 5b |...!....| U)?." [|
|00006380| 74 65 72 6d 2d 69 6e 70 | 75 74 2d 61 75 74 6f 65 |term-inp|ut-autoe|
|00006390| 78 70 61 6e 64 20 73 74 | 72 69 6e 67 2d 6d 61 74 |xpand st|ring-mat|
|000063a0| 63 68 20 22 5b 21 5e 5d | 22 20 74 65 72 6d 2d 67 |ch "[!^]|" term-g|
|000063b0| 65 74 2d 6f 6c 64 2d 69 | 6e 70 75 74 20 30 20 6c |et-old-i|nput 0 l|
|000063c0| 6f 6f 6b 69 6e 67 2d 61 | 74 20 74 65 72 6d 2d 70 |ooking-a|t term-p|
|000063d0| 72 6f 6d 70 74 2d 72 65 | 67 65 78 70 20 62 75 66 |rompt-re|gexp buf|
|000063e0| 66 65 72 2d 6d 6f 64 69 | 66 69 65 64 2d 74 69 63 |fer-modi|fied-tic|
|000063f0| 6b 20 70 72 65 76 69 6f | 75 73 2d 6d 6f 64 69 66 |k previo|us-modif|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.