home *** CD-ROM | disk | FTP | other *** search
Emacs Compiled Lisp | 1992-10-23 | 5.3 KB |
view JSON data
|
view as text
|
open on a Mac
|
open on a PC
This file was processed as: Emacs Compiled Lisp
(other/emacsCompiledLisp).
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| Emacs Compiled Lisp (other/emacsCompiledLisp)
| magic
| Unsupported |
100%
| file
| Emacs v18 byte-compiled Lisp data
| default
| |
99%
| file
| data
| default
| |
100%
| gt2
| Kopftext: '(defvar telnet-new-line '
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 0a 28 64 65 66 76 61 72 | 20 74 65 6c 6e 65 74 2d |.(defvar| telnet-|
|00000010| 6e 65 77 2d 6c 69 6e 65 | 20 22 0d 22 29 0a 0a 28 |new-line| ".")..(|
|00000020| 64 65 66 76 61 72 20 74 | 65 6c 6e 65 74 2d 6d 6f |defvar t|elnet-mo|
|00000030| 64 65 2d 6d 61 70 20 6e | 69 6c 29 0a 0a 28 64 65 |de-map n|il)..(de|
|00000040| 66 76 61 72 20 74 65 6c | 6e 65 74 2d 70 72 6f 6d |fvar tel|net-prom|
|00000050| 70 74 2d 70 61 74 74 65 | 72 6e 20 22 5e 5b 5e 23 |pt-patte|rn "^[^#|
|00000060| 24 25 3e 5d 2a 5b 23 24 | 25 3e 5d 20 2a 22 29 0a |$%>]*[#$|%>] *").|
|00000070| 0a 28 64 65 66 76 61 72 | 20 74 65 6c 6e 65 74 2d |.(defvar| telnet-|
|00000080| 69 6e 74 65 72 72 75 70 | 74 2d 73 74 72 69 6e 67 |interrup|t-string|
|00000090| 20 22 03 22 20 22 5c 0a | 53 74 72 69 6e 67 20 73 | "." "\.|String s|
|000000a0| 65 6e 74 20 62 79 20 43 | 2d 63 2e 22 29 0a 0a 28 |ent by C|-c.")..(|
|000000b0| 64 65 66 76 61 72 20 74 | 65 6c 6e 65 74 2d 63 6f |defvar t|elnet-co|
|000000c0| 75 6e 74 20 30 29 0a 0a | 28 64 65 66 76 61 72 20 |unt 0)..|(defvar |
|000000d0| 74 65 6c 6e 65 74 2d 72 | 65 70 6c 61 63 65 2d 63 |telnet-r|eplace-c|
|000000e0| 2d 67 20 6e 69 6c 29 0a | 0a 28 64 65 66 76 61 72 |-g nil).|.(defvar|
|000000f0| 20 74 65 6c 6e 65 74 2d | 72 65 6d 6f 74 65 2d 65 | telnet-|remote-e|
|00000100| 63 68 6f 65 73 20 6e 69 | 6c 29 0a 0a 28 64 65 66 |choes ni|l)..(def|
|00000110| 75 6e 20 74 65 6c 6e 65 | 74 2d 69 6e 74 65 72 72 |un telne|t-interr|
|00000120| 75 70 74 2d 73 75 62 6a | 6f 62 20 6e 69 6c 20 28 |upt-subj|ob nil (|
|00000130| 69 6e 74 65 72 61 63 74 | 69 76 65 29 20 28 62 79 |interact|ive) (by|
|00000140| 74 65 2d 63 6f 64 65 20 | 22 c0 88 c2 88 c3 c0 09 |te-code |".......|
|00000150| 5c 22 87 22 20 5b 6e 69 | 6c 20 74 65 6c 6e 65 74 |\"." [ni|l telnet|
|00000160| 2d 69 6e 74 65 72 72 75 | 70 74 2d 73 74 72 69 6e |-interru|pt-strin|
|00000170| 67 20 22 49 6e 74 65 72 | 72 75 70 74 20 74 68 65 |g "Inter|rupt the|
|00000180| 20 70 72 6f 67 72 61 6d | 20 72 75 6e 6e 69 6e 67 | program| running|
|00000190| 20 74 68 72 6f 75 67 68 | 20 74 65 6c 6e 65 74 20 | through| telnet |
|000001a0| 6f 6e 20 74 68 65 20 72 | 65 6d 6f 74 65 20 68 6f |on the r|emote ho|
|000001b0| 73 74 2e 22 20 73 65 6e | 64 2d 73 74 72 69 6e 67 |st." sen|d-string|
|000001c0| 5d 20 33 29 29 0a 0a 28 | 64 65 66 75 6e 20 74 65 |] 3))..(|defun te|
|000001d0| 6c 6e 65 74 2d 63 2d 7a | 20 6e 69 6c 20 28 69 6e |lnet-c-z| nil (in|
|000001e0| 74 65 72 61 63 74 69 76 | 65 29 20 28 62 79 74 65 |teractiv|e) (byte|
|000001f0| 2d 63 6f 64 65 20 22 c0 | 88 c1 c0 c2 5c 22 87 22 |-code ".|....\"."|
|00000200| 20 5b 6e 69 6c 20 73 65 | 6e 64 2d 73 74 72 69 6e | [nil se|nd-strin|
|00000210| 67 20 22 1a 22 5d 20 33 | 29 29 0a 0a 28 64 65 66 |g "."] 3|))..(def|
|00000220| 75 6e 20 73 65 6e 64 2d | 70 72 6f 63 65 73 73 2d |un send-|process-|
|00000230| 6e 65 78 74 2d 63 68 61 | 72 20 6e 69 6c 20 28 69 |next-cha|r nil (i|
|00000240| 6e 74 65 72 61 63 74 69 | 76 65 29 20 28 62 79 74 |nteracti|ve) (byt|
|00000250| 65 2d 63 6f 64 65 20 22 | c0 88 c4 c0 c5 c2 19 72 |e-code "|.......r|
|00000260| c0 89 13 88 29 21 5c 22 | 87 22 20 5b 6e 69 6c 20 |....)!\"|." [nil |
|00000270| 69 6e 68 69 62 69 74 2d | 71 75 69 74 20 74 20 71 |inhibit-|quit t q|
|00000280| 75 69 74 2d 66 6c 61 67 | 20 73 65 6e 64 2d 73 74 |uit-flag| send-st|
|00000290| 72 69 6e 67 20 63 68 61 | 72 2d 74 6f 2d 73 74 72 |ring cha|r-to-str|
|000002a0| 69 6e 67 5d 20 36 29 29 | 0a 0a 28 73 65 74 71 20 |ing] 6))|..(setq |
|000002b0| 74 65 6c 6e 65 74 2d 6d | 6f 64 65 2d 6d 61 70 20 |telnet-m|ode-map |
|000002c0| 28 6d 61 6b 65 2d 73 70 | 61 72 73 65 2d 6b 65 79 |(make-sp|arse-key|
|000002d0| 6d 61 70 29 29 0a 0a 28 | 70 72 6f 67 6e 20 28 64 |map))..(|progn (d|
|000002e0| 65 66 69 6e 65 2d 6b 65 | 79 20 74 65 6c 6e 65 74 |efine-ke|y telnet|
|000002f0| 2d 6d 6f 64 65 2d 6d 61 | 70 20 22 0d 22 20 28 71 |-mode-ma|p "." (q|
|00000300| 75 6f 74 65 20 74 65 6c | 6e 65 74 2d 73 65 6e 64 |uote tel|net-send|
|00000310| 2d 69 6e 70 75 74 29 29 | 20 28 64 65 66 69 6e 65 |-input))| (define|
|00000320| 2d 6b 65 79 20 74 65 6c | 6e 65 74 2d 6d 6f 64 65 |-key tel|net-mode|
|00000330| 2d 6d 61 70 20 22 0a 22 | 20 28 71 75 6f 74 65 20 |-map "."| (quote |
|00000340| 74 65 6c 6e 65 74 2d 73 | 65 6e 64 2d 69 6e 70 75 |telnet-s|end-inpu|
|00000350| 74 29 29 20 28 64 65 66 | 69 6e 65 2d 6b 65 79 20 |t)) (def|ine-key |
|00000360| 74 65 6c 6e 65 74 2d 6d | 6f 64 65 2d 6d 61 70 20 |telnet-m|ode-map |
|00000370| 22 03 04 22 20 28 71 75 | 6f 74 65 20 73 68 65 6c |".." (qu|ote shel|
|00000380| 6c 2d 73 65 6e 64 2d 65 | 6f 66 29 29 20 28 64 65 |l-send-e|of)) (de|
|00000390| 66 69 6e 65 2d 6b 65 79 | 20 74 65 6c 6e 65 74 2d |fine-key| telnet-|
|000003a0| 6d 6f 64 65 2d 6d 61 70 | 20 22 03 11 22 20 28 71 |mode-map| ".." (q|
|000003b0| 75 6f 74 65 20 73 65 6e | 64 2d 70 72 6f 63 65 73 |uote sen|d-proces|
|000003c0| 73 2d 6e 65 78 74 2d 63 | 68 61 72 29 29 20 28 64 |s-next-c|har)) (d|
|000003d0| 65 66 69 6e 65 2d 6b 65 | 79 20 74 65 6c 6e 65 74 |efine-ke|y telnet|
|000003e0| 2d 6d 6f 64 65 2d 6d 61 | 70 20 22 03 03 22 20 28 |-mode-ma|p ".." (|
|000003f0| 71 75 6f 74 65 20 74 65 | 6c 6e 65 74 2d 69 6e 74 |quote te|lnet-int|
|00000400| 65 72 72 75 70 74 2d 73 | 75 62 6a 6f 62 29 29 20 |errupt-s|ubjob)) |
|00000410| 28 64 65 66 69 6e 65 2d | 6b 65 79 20 74 65 6c 6e |(define-|key teln|
|00000420| 65 74 2d 6d 6f 64 65 2d | 6d 61 70 20 22 03 1a 22 |et-mode-|map ".."|
|00000430| 20 28 71 75 6f 74 65 20 | 74 65 6c 6e 65 74 2d 63 | (quote |telnet-c|
|00000440| 2d 7a 29 29 20 28 64 65 | 66 69 6e 65 2d 6b 65 79 |-z)) (de|fine-key|
|00000450| 20 74 65 6c 6e 65 74 2d | 6d 6f 64 65 2d 6d 61 70 | telnet-|mode-map|
|00000460| 20 22 03 15 22 20 28 71 | 75 6f 74 65 20 6b 69 6c | ".." (q|uote kil|
|00000470| 6c 2d 73 68 65 6c 6c 2d | 69 6e 70 75 74 29 29 20 |l-shell-|input)) |
|00000480| 28 64 65 66 69 6e 65 2d | 6b 65 79 20 74 65 6c 6e |(define-|key teln|
|00000490| 65 74 2d 6d 6f 64 65 2d | 6d 61 70 20 22 03 17 22 |et-mode-|map ".."|
|000004a0| 20 28 71 75 6f 74 65 20 | 62 61 63 6b 77 61 72 64 | (quote |backward|
|000004b0| 2d 6b 69 6c 6c 2d 77 6f | 72 64 29 29 20 28 64 65 |-kill-wo|rd)) (de|
|000004c0| 66 69 6e 65 2d 6b 65 79 | 20 74 65 6c 6e 65 74 2d |fine-key| telnet-|
|000004d0| 6d 6f 64 65 2d 6d 61 70 | 20 22 03 0f 22 20 28 71 |mode-map| ".." (q|
|000004e0| 75 6f 74 65 20 6b 69 6c | 6c 2d 6f 75 74 70 75 74 |uote kil|l-output|
|000004f0| 2d 66 72 6f 6d 2d 73 68 | 65 6c 6c 29 29 20 28 64 |-from-sh|ell)) (d|
|00000500| 65 66 69 6e 65 2d 6b 65 | 79 20 74 65 6c 6e 65 74 |efine-ke|y telnet|
|00000510| 2d 6d 6f 64 65 2d 6d 61 | 70 20 22 03 12 22 20 28 |-mode-ma|p ".." (|
|00000520| 71 75 6f 74 65 20 73 68 | 6f 77 2d 6f 75 74 70 75 |quote sh|ow-outpu|
|00000530| 74 2d 66 72 6f 6d 2d 73 | 68 65 6c 6c 29 29 29 0a |t-from-s|hell))).|
|00000540| 0a 28 64 65 66 75 6e 20 | 74 65 6c 6e 65 74 2d 63 |.(defun |telnet-c|
|00000550| 68 65 63 6b 2d 73 6f 66 | 74 77 61 72 65 2d 74 79 |heck-sof|tware-ty|
|00000560| 70 65 2d 69 6e 69 74 69 | 61 6c 69 7a 65 20 28 73 |pe-initi|alize (s|
|00000570| 74 72 69 6e 67 29 20 22 | 5c 0a 54 72 69 65 73 20 |tring) "|\.Tries |
|00000580| 74 6f 20 70 75 74 20 63 | 6f 72 72 65 63 74 20 69 |to put c|orrect i|
|00000590| 6e 69 74 69 61 6c 69 7a | 61 74 69 6f 6e 73 20 69 |nitializ|ations i|
|000005a0| 6e 2e 20 20 4e 65 65 64 | 73 20 77 6f 72 6b 2e 22 |n. Need|s work."|
|000005b0| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c5 c6 08 | (byte-c|ode "...|
|000005c0| 5c 22 83 11 00 0a 89 11 | 88 c7 89 13 82 35 00 c5 |\"......|.....5..|
|000005d0| c8 08 5c 22 83 1e 00 c9 | 89 11 82 35 00 c5 ca 08 |..\"....|...5....|
|000005e0| 5c 22 83 2b 00 cb 89 11 | 82 35 00 c5 cc 08 5c 22 |\".+....|.5....\"|
|000005f0| 85 35 00 cd 89 14 87 22 | 20 5b 73 74 72 69 6e 67 |.5....."| [string|
|00000600| 20 74 65 6c 6e 65 74 2d | 70 72 6f 6d 70 74 2d 70 | telnet-|prompt-p|
|00000610| 61 74 74 65 72 6e 20 73 | 68 65 6c 6c 2d 70 72 6f |attern s|hell-pro|
|00000620| 6d 70 74 2d 70 61 74 74 | 65 72 6e 20 74 65 6c 6e |mpt-patt|ern teln|
|00000630| 65 74 2d 6e 65 77 2d 6c | 69 6e 65 20 74 65 6c 6e |et-new-l|ine teln|
|00000640| 65 74 2d 72 65 70 6c 61 | 63 65 2d 63 2d 67 20 73 |et-repla|ce-c-g s|
|00000650| 74 72 69 6e 67 2d 6d 61 | 74 63 68 20 22 75 6e 69 |tring-ma|tch "uni|
|00000660| 78 22 20 22 0a 22 20 22 | 74 6f 70 73 2d 32 30 22 |x" "." "|tops-20"|
|00000670| 20 22 5b 40 3e 5d 2a 22 | 20 22 69 74 73 22 20 22 | "[@>]*"| "its" "|
|00000680| 5e 5b 5e 2a 3e 5d 2a 5b | 2a 3e 5d 20 2a 22 20 22 |^[^*>]*[|*>] *" "|
|00000690| 65 78 70 6c 6f 72 65 72 | 22 20 31 30 5d 20 36 29 |explorer|" 10] 6)|
|000006a0| 29 0a 0a 28 64 65 66 75 | 6e 20 74 65 6c 6e 65 74 |)..(defu|n telnet|
|000006b0| 2d 69 6e 69 74 69 61 6c | 2d 66 69 6c 74 65 72 20 |-initial|-filter |
|000006c0| 28 70 72 6f 63 20 73 74 | 72 69 6e 67 29 20 28 62 |(proc st|ring) (b|
|000006d0| 79 74 65 2d 63 6f 64 65 | 20 22 c7 c8 08 5c 22 83 |yte-code| "...\".|
|000006e0| 13 00 c9 ca 09 21 21 88 | cb cc 21 82 4c 00 c7 cd |.....!!.|..!.L...|
|000006f0| 08 5c 22 83 32 00 ce 09 | 08 5c 22 88 cf 1a d0 20 |.\".2...|.\".... |
|00000700| 1b cf 89 14 88 d1 09 0b | 0d 50 5c 22 2a 82 4c 00 |........|.P\"*.L.|
|00000710| d2 08 21 88 ce 09 08 5c | 22 88 0c d3 56 83 48 00 |..!....\|"...V.H.|
|00000720| d4 09 ce 5c 22 82 4c 00 | 0c 54 89 14 87 22 20 5b |...\".L.|.T..." [|
|00000730| 73 74 72 69 6e 67 20 70 | 72 6f 63 20 65 63 68 6f |string p|roc echo|
|00000740| 2d 6b 65 79 73 74 72 6f | 6b 65 73 20 70 61 73 73 |-keystro|kes pass|
|00000750| 77 6f 72 64 20 74 65 6c | 6e 65 74 2d 63 6f 75 6e |word tel|net-coun|
|00000760| 74 20 74 65 6c 6e 65 74 | 2d 6e 65 77 2d 6c 69 6e |t telnet|-new-lin|
|00000770| 65 20 74 20 73 74 72 69 | 6e 67 2d 6d 61 74 63 68 |e t stri|ng-match|
|00000780| 20 22 4e 6f 20 73 75 63 | 68 20 68 6f 73 74 22 20 | "No suc|h host" |
|00000790| 6b 69 6c 6c 2d 62 75 66 | 66 65 72 20 70 72 6f 63 |kill-buf|fer proc|
|000007a0| 65 73 73 2d 62 75 66 66 | 65 72 20 65 72 72 6f 72 |ess-buff|er error|
|000007b0| 20 22 4e 6f 20 73 75 63 | 68 20 68 6f 73 74 2e 22 | "No suc|h host."|
|000007c0| 20 22 70 61 73 73 77 22 | 20 74 65 6c 6e 65 74 2d | "passw"| telnet-|
|000007d0| 66 69 6c 74 65 72 20 30 | 20 72 65 61 64 2d 70 61 |filter 0| read-pa|
|000007e0| 73 73 77 6f 72 64 20 73 | 65 6e 64 2d 73 74 72 69 |ssword s|end-stri|
|000007f0| 6e 67 20 74 65 6c 6e 65 | 74 2d 63 68 65 63 6b 2d |ng telne|t-check-|
|00000800| 73 6f 66 74 77 61 72 65 | 2d 74 79 70 65 2d 69 6e |software|-type-in|
|00000810| 69 74 69 61 6c 69 7a 65 | 20 34 20 73 65 74 2d 70 |itialize| 4 set-p|
|00000820| 72 6f 63 65 73 73 2d 66 | 69 6c 74 65 72 5d 20 31 |rocess-f|ilter] 1|
|00000830| 33 29 29 0a 0a 28 64 65 | 66 75 6e 20 74 65 6c 6e |3))..(de|fun teln|
|00000840| 65 74 2d 66 69 6c 74 65 | 72 20 28 70 72 6f 63 20 |et-filte|r (proc |
|00000850| 73 74 72 69 6e 67 29 20 | 28 62 79 74 65 2d 63 6f |string) |(byte-co|
|00000860| 64 65 20 22 8a c7 08 21 | 71 88 64 62 88 60 19 0a |de "...!|q.db.`..|
|00000870| 63 88 c8 09 60 c9 ca 24 | 88 0b 85 1f 00 c8 09 60 |c...`..$|.......`|
|00000880| cb 0b 24 29 88 cc 08 21 | 85 2d 00 cd cc 08 21 60 |..$)...!|.-....!`|
|00000890| 5c 22 88 ce 0c 21 85 3b | 00 cf 0c 21 85 3b 00 0d |\"...!.;|...!.;..|
|000008a0| 85 43 00 d0 0c 0e 06 5c | 22 29 88 c7 08 21 70 3d |.C.....\|")...!p=|
|000008b0| 85 4f 00 64 62 87 22 20 | 5b 70 72 6f 63 20 6e 6f |.O.db." |[proc no|
|000008c0| 77 20 73 74 72 69 6e 67 | 20 74 65 6c 6e 65 74 2d |w string| telnet-|
|000008d0| 72 65 70 6c 61 63 65 2d | 63 2d 67 20 6c 61 73 74 |replace-|c-g last|
|000008e0| 2d 69 6e 70 75 74 2d 73 | 74 61 72 74 20 74 65 6c |-input-s|tart tel|
|000008f0| 6e 65 74 2d 72 65 6d 6f | 74 65 2d 65 63 68 6f 65 |net-remo|te-echoe|
|00000900| 73 20 6c 61 73 74 2d 69 | 6e 70 75 74 2d 65 6e 64 |s last-i|nput-end|
|00000910| 20 70 72 6f 63 65 73 73 | 2d 62 75 66 66 65 72 20 | process|-buffer |
|00000920| 73 75 62 73 74 2d 63 68 | 61 72 2d 69 6e 2d 72 65 |subst-ch|ar-in-re|
|00000930| 67 69 6f 6e 20 31 33 20 | 33 32 20 37 20 70 72 6f |gion 13 |32 7 pro|
|00000940| 63 65 73 73 2d 6d 61 72 | 6b 20 73 65 74 2d 6d 61 |cess-mar|k set-ma|
|00000950| 72 6b 65 72 20 69 6e 74 | 65 67 65 72 2d 6f 72 2d |rker int|eger-or-|
|00000960| 6d 61 72 6b 65 72 2d 70 | 20 6d 61 72 6b 65 72 2d |marker-p| marker-|
|00000970| 70 6f 73 69 74 69 6f 6e | 20 64 65 6c 65 74 65 2d |position| delete-|
|00000980| 72 65 67 69 6f 6e 5d 20 | 31 32 29 29 0a 0a 28 64 |region] |12))..(d|
|00000990| 65 66 75 6e 20 64 65 6c | 65 74 65 2d 63 68 61 72 |efun del|ete-char|
|000009a0| 2d 6f 72 2d 73 65 6e 64 | 2d 65 6f 66 20 28 61 72 |-or-send|-eof (ar|
|000009b0| 67 20 6b 69 6c 6c 70 29 | 20 22 5c 0a 41 74 20 65 |g killp)| "\.At e|
|000009c0| 6e 64 20 6f 66 20 62 75 | 66 66 65 72 2c 20 73 65 |nd of bu|ffer, se|
|000009d0| 6e 64 20 65 6f 66 20 74 | 6f 20 73 75 62 73 68 65 |nd eof t|o subshe|
|000009e0| 6c 6c 2e 20 20 4f 74 68 | 65 72 77 69 73 65 20 64 |ll. Oth|erwise d|
|000009f0| 65 6c 65 74 65 20 63 68 | 61 72 61 63 74 65 72 2e |elete ch|aracter.|
|00000a00| 22 20 28 69 6e 74 65 72 | 61 63 74 69 76 65 20 22 |" (inter|active "|
|00000a10| 70 0a 50 22 29 20 28 62 | 79 74 65 2d 63 6f 64 65 |p.P") (b|yte-code|
|00000a20| 20 22 c2 88 6d 85 08 00 | 08 3f 83 10 00 c3 20 82 | "..m...|.?.... .|
|00000a30| 14 00 c4 09 08 5c 22 87 | 22 20 5b 6b 69 6c 6c 70 |.....\".|" [killp|
|00000a40| 20 61 72 67 20 6e 69 6c | 20 70 72 6f 63 65 73 73 | arg nil| process|
|00000a50| 2d 73 65 6e 64 2d 65 6f | 66 20 64 65 6c 65 74 65 |-send-eo|f delete|
|00000a60| 2d 63 68 61 72 5d 20 34 | 29 29 0a 0a 28 64 65 66 |-char] 4|))..(def|
|00000a70| 75 6e 20 74 65 6c 6e 65 | 74 2d 73 65 6e 64 2d 69 |un telne|t-send-i|
|00000a80| 6e 70 75 74 20 6e 69 6c | 20 22 5c 0a 53 65 6e 64 |nput nil| "\.Send|
|00000a90| 20 69 6e 70 75 74 20 74 | 6f 20 72 65 6d 6f 74 65 | input t|o remote|
|00000aa0| 20 68 6f 73 74 0a 41 74 | 20 65 6e 64 20 6f 66 20 | host.At| end of |
|00000ab0| 62 75 66 66 65 72 2c 20 | 73 65 6e 64 73 20 61 6c |buffer, |sends al|
|00000ac0| 6c 20 74 65 78 74 20 61 | 66 74 65 72 20 6c 61 73 |l text a|fter las|
|00000ad0| 74 20 6f 75 74 70 75 74 | 0a 61 73 20 69 6e 70 75 |t output|.as inpu|
|00000ae0| 74 20 74 6f 20 74 68 65 | 20 74 65 6c 6e 65 74 2c |t to the| telnet,|
|00000af0| 20 69 6e 63 6c 75 64 69 | 6e 67 20 61 20 74 65 6c | includi|ng a tel|
|00000b00| 6e 65 74 2d 6e 65 77 2d | 6c 69 6e 65 20 69 6e 73 |net-new-|line ins|
|00000b10| 65 72 74 65 64 20 61 74 | 20 74 68 65 20 65 6e 64 |erted at| the end|
|00000b20| 2e 0a 4e 6f 74 20 61 74 | 20 65 6e 64 2c 20 63 6f |..Not at| end, co|
|00000b30| 70 69 65 73 20 63 75 72 | 72 65 6e 74 20 6c 69 6e |pies cur|rent lin|
|00000b40| 65 20 74 6f 20 74 68 65 | 20 65 6e 64 20 6f 66 20 |e to the| end of |
|00000b50| 74 68 65 20 62 75 66 66 | 65 72 20 61 6e 64 20 73 |the buff|er and s|
|00000b60| 65 6e 64 73 20 69 74 2c | 0a 61 66 74 65 72 20 66 |ends it,|.after f|
|00000b70| 69 72 73 74 20 61 74 74 | 65 6d 70 74 69 6e 67 20 |irst att|empting |
|00000b80| 74 6f 20 64 69 73 63 61 | 72 64 20 61 6e 79 20 70 |to disca|rd any p|
|00000b90| 72 6f 6d 70 74 20 61 74 | 20 74 68 65 20 62 65 67 |rompt at| the beg|
|00000ba0| 69 6e 6e 69 6e 67 20 6f | 66 20 74 68 65 20 6c 69 |inning o|f the li|
|00000bb0| 6e 65 0a 62 79 20 6d 61 | 74 63 68 69 6e 67 20 74 |ne.by ma|tching t|
|00000bc0| 68 65 20 72 65 67 65 78 | 70 20 74 68 61 74 20 69 |he regex|p that i|
|00000bd0| 73 20 74 68 65 20 76 61 | 6c 75 65 20 6f 66 20 74 |s the va|lue of t|
|00000be0| 65 6c 6e 65 74 2d 70 72 | 6f 6d 70 74 2d 70 61 74 |elnet-pr|ompt-pat|
|00000bf0| 74 65 72 6e 20 69 66 20 | 70 6f 73 73 69 62 6c 65 |tern if |possible|
|00000c00| 2e 22 20 28 69 6e 74 65 | 72 61 63 74 69 76 65 29 |." (inte|ractive)|
|00000c10| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c4 88 c4 | (byte-c|ode "...|
|00000c20| 18 c9 20 88 6d 83 1b 00 | ca 09 cb cc 70 21 21 5c |.. .m...|....p!!\|
|00000c30| 22 88 ca 0a 60 5c 22 82 | 43 00 cd 20 88 ce 0b c4 |"...`\".|C.. ....|
|00000c40| c5 23 88 cf 60 d0 d1 21 | 88 60 5c 22 1e 06 64 62 |.#..`..!|.`\"..db|
|00000c50| 88 ca 09 60 5c 22 88 0e | 06 63 88 c5 89 10 88 ca |...`\"..|.c......|
|00000c60| 0a 60 5c 22 29 88 8a 09 | 62 88 cc 70 21 1e 07 d2 |.`\")...|b..p!...|
|00000c70| 0e 07 09 0a 23 88 08 3f | 85 5f 00 d3 0e 07 0e 08 |....#..?|._......|
|00000c80| 5c 22 88 d4 cb 0e 07 21 | 60 5c 22 29 29 29 87 22 |\".....!|`\")))."|
|00000c90| 20 5b 63 6f 70 69 65 64 | 20 6c 61 73 74 2d 69 6e | [copied| last-in|
|00000ca0| 70 75 74 2d 73 74 61 72 | 74 20 6c 61 73 74 2d 69 |put-star|t last-i|
|00000cb0| 6e 70 75 74 2d 65 6e 64 | 20 74 65 6c 6e 65 74 2d |nput-end| telnet-|
|00000cc0| 70 72 6f 6d 70 74 2d 70 | 61 74 74 65 72 6e 20 6e |prompt-p|attern n|
|00000cd0| 69 6c 20 74 20 63 6f 70 | 79 20 70 72 6f 63 65 73 |il t cop|y proces|
|00000ce0| 73 20 74 65 6c 6e 65 74 | 2d 6e 65 77 2d 6c 69 6e |s telnet|-new-lin|
|00000cf0| 65 20 65 6e 64 2d 6f 66 | 2d 6c 69 6e 65 20 6d 6f |e end-of|-line mo|
|00000d00| 76 65 2d 6d 61 72 6b 65 | 72 20 70 72 6f 63 65 73 |ve-marke|r proces|
|00000d10| 73 2d 6d 61 72 6b 20 67 | 65 74 2d 62 75 66 66 65 |s-mark g|et-buffe|
|00000d20| 72 2d 70 72 6f 63 65 73 | 73 20 62 65 67 69 6e 6e |r-proces|s beginn|
|00000d30| 69 6e 67 2d 6f 66 2d 6c | 69 6e 65 20 72 65 2d 73 |ing-of-l|ine re-s|
|00000d40| 65 61 72 63 68 2d 66 6f | 72 77 61 72 64 20 62 75 |earch-fo|rward bu|
|00000d50| 66 66 65 72 2d 73 75 62 | 73 74 72 69 6e 67 20 66 |ffer-sub|string f|
|00000d60| 6f 72 77 61 72 64 2d 6c | 69 6e 65 20 31 20 73 65 |orward-l|ine 1 se|
|00000d70| 6e 64 2d 72 65 67 69 6f | 6e 20 73 65 6e 64 2d 73 |nd-regio|n send-s|
|00000d80| 74 72 69 6e 67 20 73 65 | 74 2d 6d 61 72 6b 65 72 |tring se|t-marker|
|00000d90| 5d 20 31 38 29 29 0a 0a | 28 64 65 66 75 6e 20 74 |] 18))..|(defun t|
|00000da0| 65 6c 6e 65 74 20 28 61 | 72 67 29 20 22 5c 0a 4f |elnet (a|rg) "\.O|
|00000db0| 70 65 6e 20 61 20 6e 65 | 74 77 6f 72 6b 20 6c 6f |pen a ne|twork lo|
|00000dc0| 67 69 6e 20 63 6f 6e 6e | 65 63 74 69 6f 6e 20 74 |gin conn|ection t|
|00000dd0| 6f 20 68 6f 73 74 20 6e | 61 6d 65 64 20 48 4f 53 |o host n|amed HOS|
|00000de0| 54 20 28 61 20 73 74 72 | 69 6e 67 29 2e 0a 43 6f |T (a str|ing)..Co|
|00000df0| 6d 6d 75 6e 69 63 61 74 | 69 6f 6e 20 77 69 74 68 |mmunicat|ion with|
|00000e00| 20 48 4f 53 54 20 69 73 | 20 72 65 63 6f 72 64 65 | HOST is| recorde|
|00000e10| 64 20 69 6e 20 61 20 62 | 75 66 66 65 72 20 2a 48 |d in a b|uffer *H|
|00000e20| 4f 53 54 2d 74 65 6c 6e | 65 74 2a 2e 0a 4e 6f 72 |OST-teln|et*..Nor|
|00000e30| 6d 61 6c 6c 79 20 69 6e | 70 75 74 20 69 73 20 65 |mally in|put is e|
|00000e40| 64 69 74 65 64 20 69 6e | 20 45 6d 61 63 73 20 61 |dited in| Emacs a|
|00000e50| 6e 64 20 73 65 6e 74 20 | 61 20 6c 69 6e 65 20 61 |nd sent |a line a|
|00000e60| 74 20 61 20 74 69 6d 65 | 2e 22 20 28 69 6e 74 65 |t a time|." (inte|
|00000e70| 72 61 63 74 69 76 65 20 | 22 73 4f 70 65 6e 20 74 |ractive |"sOpen t|
|00000e80| 65 6c 6e 65 74 20 63 6f | 6e 6e 65 63 74 69 6f 6e |elnet co|nnection|
|00000e90| 20 74 6f 20 68 6f 73 74 | 3a 20 22 29 20 28 62 79 | to host|: ") (by|
|00000ea0| 74 65 2d 63 6f 64 65 20 | 22 c3 88 c4 c5 21 88 09 |te-code |"....!..|
|00000eb0| c6 50 18 c7 c8 08 c9 5c | 22 21 88 ca cb 08 21 cc |.P.....\|"!....!.|
|00000ec0| 5c 22 88 cd cb 08 21 21 | 88 ce 20 88 cf 08 d0 09 |\"....!!|.. .....|
|00000ed0| d1 51 5c 22 88 d2 20 88 | d3 89 12 29 87 22 20 5b |.Q\".. .|...)." [|
|00000ee0| 6e 61 6d 65 20 61 72 67 | 20 74 65 6c 6e 65 74 2d |name arg| telnet-|
|00000ef0| 63 6f 75 6e 74 20 6e 69 | 6c 20 72 65 71 75 69 72 |count ni|l requir|
|00000f00| 65 20 73 68 65 6c 6c 20 | 22 2d 74 65 6c 6e 65 74 |e shell |"-telnet|
|00000f10| 22 20 73 77 69 74 63 68 | 2d 74 6f 2d 62 75 66 66 |" switch|-to-buff|
|00000f20| 65 72 20 6d 61 6b 65 2d | 73 68 65 6c 6c 20 22 74 |er make-|shell "t|
|00000f30| 65 6c 6e 65 74 22 20 73 | 65 74 2d 70 72 6f 63 65 |elnet" s|et-proce|
|00000f40| 73 73 2d 66 69 6c 74 65 | 72 20 67 65 74 2d 70 72 |ss-filte|r get-pr|
|00000f50| 6f 63 65 73 73 20 74 65 | 6c 6e 65 74 2d 69 6e 69 |ocess te|lnet-ini|
|00000f60| 74 69 61 6c 2d 66 69 6c | 74 65 72 20 61 63 63 65 |tial-fil|ter acce|
|00000f70| 70 74 2d 70 72 6f 63 65 | 73 73 2d 6f 75 74 70 75 |pt-proce|ss-outpu|
|00000f80| 74 20 65 72 61 73 65 2d | 62 75 66 66 65 72 20 73 |t erase-|buffer s|
|00000f90| 65 6e 64 2d 73 74 72 69 | 6e 67 20 22 6f 70 65 6e |end-stri|ng "open|
|00000fa0| 20 22 20 22 0a 22 20 74 | 65 6c 6e 65 74 2d 6d 6f | " "." t|elnet-mo|
|00000fb0| 64 65 20 2d 31 36 5d 20 | 31 33 29 29 0a 0a 28 64 |de -16] |13))..(d|
|00000fc0| 65 66 75 6e 20 72 65 61 | 64 2d 70 61 73 73 77 6f |efun rea|d-passwo|
|00000fd0| 72 64 20 6e 69 6c 20 28 | 62 79 74 65 2d 63 6f 64 |rd nil (|byte-cod|
|00000fe0| 65 20 22 c4 c3 19 18 72 | 89 11 c5 3e 3f c3 89 12 |e "....r|...>?...|
|00000ff0| 88 85 1c 00 08 c6 09 21 | 50 89 10 88 82 04 00 88 |.......!|P.......|
|00001000| 08 2a 87 22 20 5b 61 6e | 73 77 20 74 65 6d 20 71 |.*." [an|sw tem q|
|00001010| 75 69 74 2d 66 6c 61 67 | 20 6e 69 6c 20 22 22 20 |uit-flag| nil "" |
|00001020| 28 31 33 20 31 30 20 37 | 29 20 63 68 61 72 2d 74 |(13 10 7|) char-t|
|00001030| 6f 2d 73 74 72 69 6e 67 | 5d 20 34 29 29 0a 0a 28 |o-string|] 4))..(|
|00001040| 64 65 66 75 6e 20 74 65 | 6c 6e 65 74 2d 6d 6f 64 |defun te|lnet-mod|
|00001050| 65 20 6e 69 6c 20 22 5c | 0a 54 68 69 73 20 6d 6f |e nil "\|.This mo|
|00001060| 64 65 20 69 73 20 66 6f | 72 20 75 73 65 20 64 75 |de is fo|r use du|
|00001070| 72 69 6e 67 20 74 65 6c | 6e 65 74 20 66 72 6f 6d |ring tel|net from|
|00001080| 20 61 20 62 75 66 66 65 | 72 20 74 6f 20 61 6e 6f | a buffe|r to ano|
|00001090| 74 68 65 72 0a 68 6f 73 | 74 2e 20 49 74 20 68 61 |ther.hos|t. It ha|
|000010a0| 73 20 6d 6f 73 74 20 6f | 66 20 74 68 65 20 73 61 |s most o|f the sa|
|000010b0| 6d 65 20 63 6f 6d 6d 61 | 6e 64 73 20 61 73 20 73 |me comma|nds as s|
|000010c0| 68 65 6c 6c 20 6d 6f 64 | 65 2e 0a 54 68 65 72 65 |hell mod|e..There|
|000010d0| 20 69 73 20 61 20 76 61 | 72 69 61 62 6c 65 20 60 | is a va|riable `|
|000010e0| 74 65 6c 6e 65 74 2d 69 | 6e 74 65 72 72 75 70 74 |telnet-i|nterrupt|
|000010f0| 2d 73 74 72 69 6e 67 27 | 20 77 68 69 63 68 20 69 |-string'| which i|
|00001100| 73 20 74 68 65 20 63 68 | 61 72 61 63 74 65 72 0a |s the ch|aracter.|
|00001110| 73 65 6e 74 20 74 6f 20 | 74 72 79 20 74 6f 20 73 |sent to |try to s|
|00001120| 74 6f 70 20 65 78 65 63 | 75 74 69 6f 6e 20 6f 66 |top exec|ution of|
|00001130| 20 61 20 6a 6f 62 20 6f | 6e 20 74 68 65 20 72 65 | a job o|n the re|
|00001140| 6d 6f 74 65 20 68 6f 73 | 74 2e 0a 44 61 74 61 20 |mote hos|t..Data |
|00001150| 69 73 20 73 65 6e 74 20 | 74 6f 20 74 68 65 20 72 |is sent |to the r|
|00001160| 65 6d 6f 74 65 20 68 6f | 73 74 20 77 68 65 6e 20 |emote ho|st when |
|00001170| 60 72 65 74 75 72 6e 27 | 20 69 73 20 74 79 70 65 |`return'| is type|
|00001180| 64 2e 0a 54 68 75 73 20 | 69 66 20 79 6f 75 20 6d |d..Thus |if you m|
|00001190| 61 79 20 6e 65 65 64 20 | 74 6f 20 65 64 69 74 20 |ay need |to edit |
|000011a0| 74 68 65 20 64 61 74 61 | 20 62 65 66 6f 72 65 20 |the data| before |
|000011b0| 73 65 6e 64 69 6e 67 20 | 79 6f 75 0a 73 68 6f 75 |sending |you.shou|
|000011c0| 6c 64 20 75 73 65 20 63 | 2d 6e 20 74 6f 20 6d 6f |ld use c|-n to mo|
|000011d0| 76 65 20 64 6f 77 6e 20 | 61 20 6c 69 6e 65 2e 20 |ve down |a line. |
|000011e0| 20 54 68 65 6e 20 79 6f | 75 20 63 61 6e 20 72 65 | Then yo|u can re|
|000011f0| 74 75 72 6e 0a 74 6f 20 | 61 6c 74 65 72 20 61 20 |turn.to |alter a |
|00001200| 70 72 65 76 69 6f 75 73 | 20 6c 69 6e 65 2e 20 20 |previous| line. |
|00001210| 4f 66 20 63 6f 75 72 73 | 65 20 79 6f 75 20 73 68 |Of cours|e you sh|
|00001220| 6f 75 6c 64 20 6e 6f 74 | 20 75 73 65 20 74 68 69 |ould not| use thi|
|00001230| 73 0a 6d 6f 64 65 20 6f | 66 20 74 65 6c 6e 65 74 |s.mode o|f telnet|
|00001240| 20 69 66 20 79 6f 75 20 | 77 61 6e 74 20 74 6f 20 | if you |want to |
|00001250| 72 75 6e 20 65 6d 61 63 | 73 20 6c 69 6b 65 20 70 |run emac|s like p|
|00001260| 72 6f 67 72 61 6d 73 20 | 6f 6e 20 74 68 65 0a 72 |rograms |on the.r|
|00001270| 65 6d 6f 74 65 20 68 6f | 73 74 20 28 61 74 20 6c |emote ho|st (at l|
|00001280| 65 61 73 74 20 6e 6f 74 | 20 79 65 74 21 29 2e 0a |east not| yet!)..|
|00001290| 0a 54 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 63 |.The fol|lowing c|
|000012a0| 6f 6d 6d 61 6e 64 73 20 | 69 6d 69 74 61 74 65 20 |ommands |imitate |
|000012b0| 74 68 65 20 75 73 75 61 | 6c 20 55 6e 69 78 20 69 |the usua|l Unix i|
|000012c0| 6e 74 65 72 72 75 70 74 | 20 61 6e 64 0a 65 64 69 |nterrupt| and.edi|
|000012d0| 74 69 6e 67 20 63 6f 6e | 74 72 6f 6c 20 63 68 61 |ting con|trol cha|
|000012e0| 72 61 63 74 65 72 73 3a | 0a 5c 5c 7b 74 65 6c 6e |racters:|.\\{teln|
|000012f0| 65 74 2d 6d 6f 64 65 2d | 6d 61 70 7d 0a 0a 42 75 |et-mode-|map}..Bu|
|00001300| 67 73 3a 0a 2d 2d 52 65 | 70 6c 61 63 65 20 0d 20 |gs:.--Re|place . |
|00001310| 62 79 20 61 20 73 70 61 | 63 65 2c 20 72 65 61 6c |by a spa|ce, real|
|00001320| 6c 79 20 73 68 6f 75 6c | 64 20 72 65 6d 6f 76 65 |ly shoul|d remove|
|00001330| 2e 0a 2d 2d 46 6f 72 20 | 55 6e 69 78 20 69 6e 74 |..--For |Unix int|
|00001340| 65 72 61 63 74 73 20 70 | 6f 6f 72 6c 79 20 77 69 |eracts p|oorly wi|
|00001350| 74 68 20 74 63 73 68 20 | 61 6c 74 68 6f 75 67 68 |th tcsh |although|
|00001360| 20 63 73 68 2c 73 68 2c | 6b 73 68 20 61 72 65 20 | csh,sh,|ksh are |
|00001370| 6f 6b 2e 22 20 28 69 6e | 74 65 72 61 63 74 69 76 |ok." (in|teractiv|
|00001380| 65 29 20 28 62 79 74 65 | 2d 63 6f 64 65 20 22 cd |e) (byte|-code ".|
|00001390| 88 ce 20 88 cf 89 10 88 | d0 89 11 88 d1 89 12 88 |.. .....|........|
|000013a0| d2 c8 21 88 d3 0b 21 88 | 0d 1c d2 c5 21 88 0c 89 |..!...!.|....!...|
|000013b0| 15 29 88 d2 c6 21 88 d4 | 89 16 06 88 d2 c7 21 88 |.)...!..|......!.|
|000013c0| d5 89 16 07 88 d2 c8 21 | 88 d6 20 89 16 08 88 d2 |.......!|.. .....|
|000013d0| c9 21 88 d6 20 89 16 09 | 88 d2 ca 21 88 cb 89 16 |.!.. ...|...!....|
|000013e0| 0a 88 d2 cc 21 88 cd 89 | 16 0c 87 22 20 5b 6d 61 |....!...|..." [ma|
|000013f0| 6a 6f 72 2d 6d 6f 64 65 | 20 6d 6f 64 65 2d 6e 61 |jor-mode| mode-na|
|00001400| 6d 65 20 6d 6f 64 65 2d | 6c 69 6e 65 2d 70 72 6f |me mode-|line-pro|
|00001410| 63 65 73 73 20 74 65 6c | 6e 65 74 2d 6d 6f 64 65 |cess tel|net-mode|
|00001420| 2d 6d 61 70 20 74 65 6d | 20 74 65 6c 6e 65 74 2d |-map tem| telnet-|
|00001430| 70 72 6f 6d 70 74 2d 70 | 61 74 74 65 72 6e 20 74 |prompt-p|attern t|
|00001440| 65 6c 6e 65 74 2d 69 6e | 74 65 72 72 75 70 74 2d |elnet-in|terrupt-|
|00001450| 73 74 72 69 6e 67 20 74 | 65 6c 6e 65 74 2d 6e 65 |string t|elnet-ne|
|00001460| 77 2d 6c 69 6e 65 20 6c | 61 73 74 2d 69 6e 70 75 |w-line l|ast-inpu|
|00001470| 74 2d 73 74 61 72 74 20 | 6c 61 73 74 2d 69 6e 70 |t-start |last-inp|
|00001480| 75 74 2d 65 6e 64 20 74 | 65 6c 6e 65 74 2d 72 65 |ut-end t|elnet-re|
|00001490| 6d 6f 74 65 2d 65 63 68 | 6f 65 73 20 74 20 74 65 |mote-ech|oes t te|
|000014a0| 6c 6e 65 74 2d 72 65 70 | 6c 61 63 65 2d 63 2d 67 |lnet-rep|lace-c-g|
|000014b0| 20 6e 69 6c 20 6b 69 6c | 6c 2d 61 6c 6c 2d 6c 6f | nil kil|l-all-lo|
|000014c0| 63 61 6c 2d 76 61 72 69 | 61 62 6c 65 73 20 74 65 |cal-vari|ables te|
|000014d0| 6c 6e 65 74 2d 6d 6f 64 | 65 20 22 54 65 6c 6e 65 |lnet-mod|e "Telne|
|000014e0| 74 22 20 28 22 3a 20 25 | 73 22 29 20 6d 61 6b 65 |t" (": %|s") make|
|000014f0| 2d 6c 6f 63 61 6c 2d 76 | 61 72 69 61 62 6c 65 20 |-local-v|ariable |
|00001500| 75 73 65 2d 6c 6f 63 61 | 6c 2d 6d 61 70 20 22 03 |use-loca|l-map ".|
|00001510| 22 20 22 0d 22 20 6d 61 | 6b 65 2d 6d 61 72 6b 65 |" "." ma|ke-marke|
|00001520| 72 5d 20 31 34 29 29 0a | |r] 14)).| |
+--------+-------------------------+-------------------------+--------+--------+