home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / emacs-19.16 / lisp / telnet.elc < prev    next >
Emacs Compiled Lisp  |  1993-07-05  |  4.9 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 6a 69 6d 62 40 67 65 |piled by| jimb@ge|
|00000020| 65 63 68 2e 67 6e 75 2e | 61 69 2e 6d 69 74 2e 65 |ech.gnu.|ai.mit.e|
|00000030| 64 75 20 6f 6e 20 54 75 | 65 20 4a 75 6c 20 20 36 |du on Tu|e Jul 6|
|00000040| 20 30 30 3a 30 37 3a 33 | 32 20 31 39 39 33 0a 3b | 00:07:3|2 1993.;|
|00000050| 3b 3b 20 66 72 6f 6d 20 | 66 69 6c 65 20 2f 67 64 |;; from |file /gd|
|00000060| 2f 67 6e 75 2f 65 6d 61 | 63 73 2f 31 39 2e 30 2f |/gnu/ema|cs/19.0/|
|00000070| 6c 69 73 70 2f 74 65 6c | 6e 65 74 2e 65 6c 0a 3b |lisp/tel|net.el.;|
|00000080| 3b 3b 20 65 6d 61 63 73 | 20 76 65 72 73 69 6f 6e |;; emacs| version|
|00000090| 20 31 39 2e 31 35 2e 31 | 36 2e 0a 3b 3b 3b 20 62 | 19.15.1|6..;;; b|
|000000a0| 79 74 65 63 6f 6d 70 20 | 76 65 72 73 69 6f 6e 20 |ytecomp |version |
|000000b0| 46 53 46 20 32 2e 31 30 | 0a 3b 3b 3b 20 6f 70 74 |FSF 2.10|.;;; opt|
|000000c0| 69 6d 69 7a 61 74 69 6f | 6e 20 69 73 20 6f 6e 2e |imizatio|n is on.|
|000000d0| 0a 3b 3b 3b 20 74 68 69 | 73 20 66 69 6c 65 20 75 |.;;; thi|s file u|
|000000e0| 73 65 73 20 6f 70 63 6f | 64 65 73 20 77 68 69 63 |ses opco|des whic|
|000000f0| 68 20 64 6f 20 6e 6f 74 | 20 65 78 69 73 74 20 69 |h do not| exist i|
|00000100| 6e 20 45 6d 61 63 73 20 | 31 38 2e 0a 0a 28 69 66 |n Emacs |18...(if|
|00000110| 20 28 61 6e 64 20 28 62 | 6f 75 6e 64 70 20 27 65 | (and (b|oundp 'e|
|00000120| 6d 61 63 73 2d 76 65 72 | 73 69 6f 6e 29 0a 09 20 |macs-ver|sion).. |
|00000130| 28 6f 72 20 28 61 6e 64 | 20 28 62 6f 75 6e 64 70 |(or (and| (boundp|
|00000140| 20 27 65 70 6f 63 68 3a | 3a 76 65 72 73 69 6f 6e | 'epoch:|:version|
|00000150| 29 20 65 70 6f 63 68 3a | 3a 76 65 72 73 69 6f 6e |) epoch:|:version|
|00000160| 29 0a 09 20 20 20 20 20 | 28 73 74 72 69 6e 67 2d |).. |(string-|
|00000170| 6c 65 73 73 70 20 65 6d | 61 63 73 2d 76 65 72 73 |lessp em|acs-vers|
|00000180| 69 6f 6e 20 22 31 39 22 | 29 29 29 0a 20 20 20 20 |ion "19"|))). |
|00000190| 28 65 72 72 6f 72 20 22 | 54 68 69 73 20 66 69 6c |(error "|This fil|
|000001a0| 65 20 77 61 73 20 63 6f | 6d 70 69 6c 65 64 20 66 |e was co|mpiled f|
|000001b0| 6f 72 20 45 6d 61 63 73 | 20 31 39 22 29 29 0a 0a |or Emacs| 19"))..|
|000001c0| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c0 c1 21 88 |(byte-co|de "..!.|
|000001d0| c2 c3 21 84 0c 00 c4 13 | c2 c5 21 84 14 00 c6 15 |..!.....|..!.....|
|000001e0| c2 c7 21 84 1d 00 c8 16 | 07 c2 c9 21 84 26 00 c6 |..!.....|...!.&..|
|000001f0| 16 09 ca c2 cb 21 84 30 | 00 cc 16 0b cd cb ce cf |.....!.0|........|
|00000200| 23 88 cb 21 88 ca c2 d0 | 21 84 43 00 d1 16 10 cd |#..!....|!.C.....|
|00000210| d0 ce d2 23 88 d0 21 87 | 22 20 5b 72 65 71 75 69 |...#..!.|" [requi|
|00000220| 72 65 20 63 6f 6d 69 6e | 74 20 62 6f 75 6e 64 70 |re comin|t boundp|
|00000230| 20 74 65 6c 6e 65 74 2d | 6e 65 77 2d 6c 69 6e 65 | telnet-|new-line|
|00000240| 20 22 0d 22 20 74 65 6c | 6e 65 74 2d 6d 6f 64 65 | "." tel|net-mode|
|00000250| 2d 6d 61 70 20 6e 69 6c | 20 74 65 6c 6e 65 74 2d |-map nil| telnet-|
|00000260| 70 72 6f 6d 70 74 2d 70 | 61 74 74 65 72 6e 20 22 |prompt-p|attern "|
|00000270| 5e 5b 5e 23 24 25 3e 5d | 2a 5b 23 24 25 3e 5d 20 |^[^#$%>]|*[#$%>] |
|00000280| 2a 22 20 74 65 6c 6e 65 | 74 2d 72 65 70 6c 61 63 |*" telne|t-replac|
|00000290| 65 2d 63 2d 67 20 6d 61 | 6b 65 2d 76 61 72 69 61 |e-c-g ma|ke-varia|
|000002a0| 62 6c 65 2d 62 75 66 66 | 65 72 2d 6c 6f 63 61 6c |ble-buff|er-local|
|000002b0| 20 74 65 6c 6e 65 74 2d | 72 65 6d 6f 74 65 2d 65 | telnet-|remote-e|
|000002c0| 63 68 6f 65 73 20 74 20 | 70 75 74 20 76 61 72 69 |choes t |put vari|
|000002d0| 61 62 6c 65 2d 64 6f 63 | 75 6d 65 6e 74 61 74 69 |able-doc|umentati|
|000002e0| 6f 6e 20 22 54 72 75 65 | 20 69 66 20 74 68 65 20 |on "True| if the |
|000002f0| 74 65 6c 6e 65 74 20 70 | 72 6f 63 65 73 73 20 77 |telnet p|rocess w|
|00000300| 69 6c 6c 20 65 63 68 6f | 20 69 6e 70 75 74 2e 22 |ill echo| input."|
|00000310| 20 74 65 6c 6e 65 74 2d | 69 6e 74 65 72 72 75 70 | telnet-|interrup|
|00000320| 74 2d 73 74 72 69 6e 67 | 20 22 03 22 20 22 53 74 |t-string| "." "St|
|00000330| 72 69 6e 67 20 73 65 6e | 74 20 62 79 20 43 2d 63 |ring sen|t by C-c|
|00000340| 2e 22 5d 20 35 29 0a 28 | 64 65 66 76 61 72 20 74 |."] 5).(|defvar t|
|00000350| 65 6c 6e 65 74 2d 63 6f | 75 6e 74 20 30 20 22 5c |elnet-co|unt 0 "\|
|00000360| 0a 4e 75 6d 62 65 72 20 | 6f 66 20 6f 75 74 70 75 |.Number |of outpu|
|00000370| 74 20 73 74 72 69 6e 67 | 73 20 72 65 61 64 20 66 |t string|s read f|
|00000380| 72 6f 6d 20 74 68 65 20 | 74 65 6c 6e 65 74 20 70 |rom the |telnet p|
|00000390| 72 6f 63 65 73 73 0a 77 | 68 69 6c 65 20 6c 6f 6f |rocess.w|hile loo|
|000003a0| 6b 69 6e 67 20 66 6f 72 | 20 74 68 65 20 69 6e 69 |king for| the ini|
|000003b0| 74 69 61 6c 20 70 61 73 | 73 77 6f 72 64 2e 22 29 |tial pas|sword.")|
|000003c0| 0a 28 64 65 66 76 61 72 | 20 74 65 6c 6e 65 74 2d |.(defvar| telnet-|
|000003d0| 69 6e 69 74 69 61 6c 2d | 63 6f 75 6e 74 20 2d 35 |initial-|count -5|
|000003e0| 30 20 22 5c 0a 49 6e 69 | 74 69 61 6c 20 76 61 6c |0 "\.Ini|tial val|
|000003f0| 75 65 20 6f 66 20 60 74 | 65 6c 6e 65 74 2d 63 6f |ue of `t|elnet-co|
|00000400| 75 6e 74 27 2e 20 20 53 | 68 6f 75 6c 64 20 62 65 |unt'. S|hould be|
|00000410| 20 73 65 74 20 74 6f 20 | 74 68 65 20 6e 65 67 61 | set to |the nega|
|00000420| 74 69 76 65 20 6f 66 20 | 74 68 65 0a 6e 75 6d 62 |tive of |the.numb|
|00000430| 65 72 20 6f 66 20 74 65 | 72 6d 69 6e 61 6c 20 77 |er of te|rminal w|
|00000440| 72 69 74 65 73 20 74 65 | 6c 6e 65 74 20 77 69 6c |rites te|lnet wil|
|00000450| 6c 20 6d 61 6b 65 20 73 | 65 74 74 69 6e 67 20 75 |l make s|etting u|
|00000460| 70 20 74 68 65 20 68 6f | 73 74 20 63 6f 6e 6e 65 |p the ho|st conne|
|00000470| 63 74 69 6f 6e 2e 22 29 | 0a 28 64 65 66 76 61 72 |ction.")|.(defvar|
|00000480| 20 74 65 6c 6e 65 74 2d | 6d 61 78 69 6d 75 6d 2d | telnet-|maximum-|
|00000490| 63 6f 75 6e 74 20 34 20 | 22 5c 0a 4d 61 78 69 6d |count 4 |"\.Maxim|
|000004a0| 75 6d 20 76 61 6c 75 65 | 20 60 74 65 6c 6e 65 74 |um value| `telnet|
|000004b0| 2d 63 6f 75 6e 74 27 20 | 63 61 6e 20 68 61 76 65 |-count' |can have|
|000004c0| 2e 0a 41 66 74 65 72 20 | 74 68 69 73 20 6d 61 6e |..After |this man|
|000004d0| 79 20 70 61 73 73 65 73 | 2c 20 77 65 20 73 74 6f |y passes|, we sto|
|000004e0| 70 20 6c 6f 6f 6b 69 6e | 67 20 66 6f 72 20 69 6e |p lookin|g for in|
|000004f0| 69 74 69 61 6c 20 73 65 | 74 75 70 20 64 61 74 61 |itial se|tup data|
|00000500| 2e 0a 53 68 6f 75 6c 64 | 20 62 65 20 73 65 74 20 |..Should| be set |
|00000510| 74 6f 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |to the n|umber of|
|00000520| 20 74 65 72 6d 69 6e 61 | 6c 20 77 72 69 74 65 73 | termina|l writes|
|00000530| 20 74 65 6c 6e 65 74 20 | 77 69 6c 6c 20 6d 61 6b | telnet |will mak|
|00000540| 65 0a 72 65 6a 65 63 74 | 69 6e 67 20 6f 6e 65 20 |e.reject|ing one |
|00000550| 6c 6f 67 69 6e 20 61 6e | 64 20 70 72 6f 6d 70 74 |login an|d prompt|
|00000560| 69 6e 67 20 66 6f 72 20 | 74 68 65 20 61 67 61 69 |ing for |the agai|
|00000570| 6e 20 66 6f 72 20 61 20 | 75 73 65 72 6e 61 6d 65 |n for a |username|
|00000580| 20 61 6e 64 20 70 61 73 | 73 77 6f 72 64 2e 22 29 | and pas|sword.")|
|00000590| 0a 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c0 c1 c2 |.(byte-c|ode "...|
|000005a0| 5c 22 88 c0 c3 c4 5c 22 | 88 c0 c5 c6 5c 22 88 0e |\"....\"|....\"..|
|000005b0| 07 84 36 00 c8 0e 09 21 | 16 07 ca 0e 07 cb cc 23 |..6....!|.......#|
|000005c0| 88 ca 0e 07 cd c5 23 88 | ca 0e 07 ce c1 23 88 ca |......#.|.....#..|
|000005d0| 0e 07 cf c3 23 88 c0 87 | 22 20 5b 64 65 66 61 6c |....#...|" [defal|
|000005e0| 69 61 73 20 74 65 6c 6e | 65 74 2d 69 6e 74 65 72 |ias teln|et-inter|
|000005f0| 72 75 70 74 2d 73 75 62 | 6a 6f 62 20 23 5b 6e 69 |rupt-sub|job #[ni|
|00000600| 6c 20 22 c0 c1 5c 6e 5c | 22 87 22 20 5b 73 65 6e |l "..\n\|"." [sen|
|00000610| 64 2d 73 74 72 69 6e 67 | 20 6e 69 6c 20 74 65 6c |d-string| nil tel|
|00000620| 6e 65 74 2d 69 6e 74 65 | 72 72 75 70 74 2d 73 74 |net-inte|rrupt-st|
|00000630| 72 69 6e 67 5d 20 33 20 | 6e 69 6c 20 6e 69 6c 5d |ring] 3 |nil nil]|
|00000640| 20 74 65 6c 6e 65 74 2d | 63 2d 7a 20 23 5b 6e 69 | telnet-|c-z #[ni|
|00000650| 6c 20 22 c0 c1 c2 5c 22 | 87 22 20 5b 73 65 6e 64 |l "...\"|." [send|
|00000660| 2d 73 74 72 69 6e 67 20 | 6e 69 6c 20 22 1a 22 5d |-string |nil "."]|
|00000670| 20 33 20 6e 69 6c 20 6e | 69 6c 5d 20 73 65 6e 64 | 3 nil n|il] send|
|00000680| 2d 70 72 6f 63 65 73 73 | 2d 6e 65 78 74 2d 63 68 |-process|-next-ch|
|00000690| 61 72 20 23 5b 6e 69 6c | 20 22 c0 c1 c2 c3 1c c5 |ar #[nil| "......|
|000006a0| 20 c1 16 06 29 21 5c 22 | 87 22 20 5b 73 65 6e 64 | ...)!\"|." [send|
|000006b0| 2d 73 74 72 69 6e 67 20 | 6e 69 6c 20 63 68 61 72 |-string |nil char|
|000006c0| 2d 74 6f 2d 73 74 72 69 | 6e 67 20 74 20 69 6e 68 |-to-stri|ng t inh|
|000006d0| 69 62 69 74 2d 71 75 69 | 74 20 72 65 61 64 2d 63 |ibit-qui|t read-c|
|000006e0| 68 61 72 20 71 75 69 74 | 2d 66 6c 61 67 5d 20 35 |har quit|-flag] 5|
|000006f0| 20 6e 69 6c 20 6e 69 6c | 5d 20 74 65 6c 6e 65 74 | nil nil|] telnet|
|00000700| 2d 6d 6f 64 65 2d 6d 61 | 70 20 63 6f 70 79 2d 6b |-mode-ma|p copy-k|
|00000710| 65 79 6d 61 70 20 63 6f | 6d 69 6e 74 2d 6d 6f 64 |eymap co|mint-mod|
|00000720| 65 2d 6d 61 70 20 64 65 | 66 69 6e 65 2d 6b 65 79 |e-map de|fine-key|
|00000730| 20 22 0d 22 20 74 65 6c | 6e 65 74 2d 73 65 6e 64 | "." tel|net-send|
|00000740| 2d 69 6e 70 75 74 20 22 | 03 11 22 20 22 03 03 22 |-input "|.." ".."|
|00000750| 20 22 03 1a 22 5d 20 34 | 29 0a 28 64 65 66 61 6c | ".."] 4|).(defal|
|00000760| 69 61 73 20 27 74 65 6c | 6e 65 74 2d 63 68 65 63 |ias 'tel|net-chec|
|00000770| 6b 2d 73 6f 66 74 77 61 | 72 65 2d 74 79 70 65 2d |k-softwa|re-type-|
|00000780| 69 6e 69 74 69 61 6c 69 | 7a 65 20 23 5b 28 73 74 |initiali|ze #[(st|
|00000790| 72 69 6e 67 29 20 22 c0 | 19 c2 c3 0c 5c 22 83 12 |ring) ".|....\"..|
|000007a0| 00 0d 16 06 c7 16 08 82 | 36 00 c2 c9 0c 5c 22 83 |........|6....\".|
|000007b0| 1f 00 ca 16 06 82 36 00 | c2 cb 0c 5c 22 83 2c 00 |......6.|...\".,.|
|000007c0| cc 16 06 82 36 00 c2 cd | 0c 5c 22 83 36 00 ce 16 |....6...|.\".6...|
|000007d0| 0f 29 0e 06 89 15 87 22 | 20 5b 74 20 63 61 73 65 |.)....."| [t case|
|000007e0| 2d 66 6f 6c 64 2d 73 65 | 61 72 63 68 20 73 74 72 |-fold-se|arch str|
|000007f0| 69 6e 67 2d 6d 61 74 63 | 68 20 22 75 6e 69 78 22 |ing-matc|h "unix"|
|00000800| 20 73 74 72 69 6e 67 20 | 63 6f 6d 69 6e 74 2d 70 | string |comint-p|
|00000810| 72 6f 6d 70 74 2d 72 65 | 67 65 78 70 20 74 65 6c |rompt-re|gexp tel|
|00000820| 6e 65 74 2d 70 72 6f 6d | 70 74 2d 70 61 74 74 65 |net-prom|pt-patte|
|00000830| 72 6e 20 22 5c 6e 22 20 | 74 65 6c 6e 65 74 2d 6e |rn "\n" |telnet-n|
|00000840| 65 77 2d 6c 69 6e 65 20 | 22 74 6f 70 73 2d 32 30 |ew-line |"tops-20|
|00000850| 22 20 22 5b 40 3e 5d 2a | 22 20 22 69 74 73 22 20 |" "[@>]*|" "its" |
|00000860| 22 5e 5b 5e 2a 3e 5d 2a | 5b 2a 3e 5d 20 2a 22 20 |"^[^*>]*|[*>] *" |
|00000870| 22 65 78 70 6c 6f 72 65 | 72 22 20 31 30 20 74 65 |"explore|r" 10 te|
|00000880| 6c 6e 65 74 2d 72 65 70 | 6c 61 63 65 2d 63 2d 67 |lnet-rep|lace-c-g|
|00000890| 5d 20 33 20 22 5c 0a 54 | 72 69 65 73 20 74 6f 20 |] 3 "\.T|ries to |
|000008a0| 70 75 74 20 63 6f 72 72 | 65 63 74 20 69 6e 69 74 |put corr|ect init|
|000008b0| 69 61 6c 69 7a 61 74 69 | 6f 6e 73 20 69 6e 2e 20 |ializati|ons in. |
|000008c0| 20 4e 65 65 64 73 20 77 | 6f 72 6b 2e 22 5d 29 0a | Needs w|ork."]).|
|000008d0| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c0 c1 c2 5c |(byte-co|de "...\|
|000008e0| 22 88 c0 c3 c4 5c 22 88 | c0 c5 c6 5c 22 88 c0 c7 |"....\".|...\"...|
|000008f0| c8 5c 22 87 22 20 5b 64 | 65 66 61 6c 69 61 73 20 |.\"." [d|efalias |
|00000900| 74 65 6c 6e 65 74 2d 69 | 6e 69 74 69 61 6c 2d 66 |telnet-i|nitial-f|
|00000910| 69 6c 74 65 72 20 23 5b | 28 70 72 6f 63 20 73 74 |ilter #[|(proc st|
|00000920| 72 69 6e 67 29 20 22 c0 | c1 5c 6e 5c 22 83 11 00 |ring) ".|.\n\"...|
|00000930| c3 c4 0d 21 21 88 c6 c7 | 21 87 c0 c8 5c 6e 5c 22 |...!!...|!...\n\"|
|00000940| 83 31 00 c9 0d 5c 6e 5c | 22 88 ca 1e 0b cc 20 1e |.1...\n\|"..... .|
|00000950| 0d ca 16 0e cf 0d 0e 0d | 0e 10 50 5c 22 2a 87 d1 |........|..P\"*..|
|00000960| 5c 6e 21 88 c9 0d 5c 6e | 5c 22 88 0e 0e 0e 12 56 |\n!...\n|\".....V|
|00000970| 83 47 00 d3 0d c9 5c 22 | 87 0e 0e 54 89 16 0e 87 |.G....\"|...T....|
|00000980| 22 20 5b 73 74 72 69 6e | 67 2d 6d 61 74 63 68 20 |" [strin|g-match |
|00000990| 22 4e 6f 20 73 75 63 68 | 20 68 6f 73 74 22 20 73 |"No such| host" s|
|000009a0| 74 72 69 6e 67 20 6b 69 | 6c 6c 2d 62 75 66 66 65 |tring ki|ll-buffe|
|000009b0| 72 20 70 72 6f 63 65 73 | 73 2d 62 75 66 66 65 72 |r proces|s-buffer|
|000009c0| 20 70 72 6f 63 20 65 72 | 72 6f 72 20 22 4e 6f 20 | proc er|ror "No |
|000009d0| 73 75 63 68 20 68 6f 73 | 74 2e 22 20 22 70 61 73 |such hos|t." "pas|
|000009e0| 73 77 22 20 74 65 6c 6e | 65 74 2d 66 69 6c 74 65 |sw" teln|et-filte|
|000009f0| 72 20 30 20 65 63 68 6f | 2d 6b 65 79 73 74 72 6f |r 0 echo|-keystro|
|00000a00| 6b 65 73 20 72 65 61 64 | 2d 70 61 73 73 77 6f 72 |kes read|-passwor|
|00000a10| 64 20 70 61 73 73 77 6f | 72 64 20 74 65 6c 6e 65 |d passwo|rd telne|
|00000a20| 74 2d 63 6f 75 6e 74 20 | 73 65 6e 64 2d 73 74 72 |t-count |send-str|
|00000a30| 69 6e 67 20 74 65 6c 6e | 65 74 2d 6e 65 77 2d 6c |ing teln|et-new-l|
|00000a40| 69 6e 65 20 74 65 6c 6e | 65 74 2d 63 68 65 63 6b |ine teln|et-check|
|00000a50| 2d 73 6f 66 74 77 61 72 | 65 2d 74 79 70 65 2d 69 |-softwar|e-type-i|
|00000a60| 6e 69 74 69 61 6c 69 7a | 65 20 74 65 6c 6e 65 74 |nitializ|e telnet|
|00000a70| 2d 6d 61 78 69 6d 75 6d | 2d 63 6f 75 6e 74 20 73 |-maximum|-count s|
|00000a80| 65 74 2d 70 72 6f 63 65 | 73 73 2d 66 69 6c 74 65 |et-proce|ss-filte|
|00000a90| 72 5d 20 34 5d 20 74 65 | 6c 6e 65 74 2d 73 69 6d |r] 4] te|lnet-sim|
|00000aa0| 70 6c 65 2d 73 65 6e 64 | 20 23 5b 28 70 72 6f 63 |ple-send| #[(proc|
|00000ab0| 20 73 74 72 69 6e 67 29 | 20 22 c0 09 5c 6e 5c 22 | string)| "..\n\"|
|00000ac0| 88 c0 09 0b 5c 22 87 22 | 20 5b 63 6f 6d 69 6e 74 |....\"."| [comint|
|00000ad0| 2d 73 65 6e 64 2d 73 74 | 72 69 6e 67 20 70 72 6f |-send-st|ring pro|
|00000ae0| 63 20 73 74 72 69 6e 67 | 20 74 65 6c 6e 65 74 2d |c string| telnet-|
|00000af0| 6e 65 77 2d 6c 69 6e 65 | 5d 20 33 5d 20 74 65 6c |new-line|] 3] tel|
|00000b00| 6e 65 74 2d 66 69 6c 74 | 65 72 20 23 5b 28 70 72 |net-filt|er #[(pr|
|00000b10| 6f 63 20 73 74 72 69 6e | 67 29 20 22 c0 09 21 70 |oc strin|g) "..!p|
|00000b20| 3d 85 0b 00 60 64 55 1a | 8a c0 09 21 71 88 c3 09 |=...`dU.|...!q...|
|00000b30| 21 62 88 60 1c c5 c6 1e | 07 1e 08 c9 ca 0e 0b 0e |!b.`....|........|
|00000b40| 08 23 89 16 07 83 3e 00 | cc 0e 0b 0e 08 0e 07 4f |.#....>.|.......O|
|00000b50| 21 88 0e 07 54 16 08 82 | 1f 00 cc 0e 0b 0e 08 c6 |!...T...|........|
|00000b60| 4f 21 88 2a 0e 0d 83 55 | 00 ce 0c 60 cf 0e 0d 24 |O!.*...U|...`...$|
|00000b70| 88 2a 5c 6e 85 5c 5c 00 | 64 62 29 87 22 20 5b 70 |.*\n.\\.|db)." [p|
|00000b80| 72 6f 63 65 73 73 2d 62 | 75 66 66 65 72 20 70 72 |rocess-b|uffer pr|
|00000b90| 6f 63 20 61 74 2d 65 6e | 64 20 70 72 6f 63 65 73 |oc at-en|d proces|
|00000ba0| 73 2d 6d 61 72 6b 20 6e | 6f 77 20 30 20 6e 69 6c |s-mark n|ow 0 nil|
|00000bb0| 20 63 2d 6d 20 69 6e 64 | 65 78 20 73 74 72 69 6e | c-m ind|ex strin|
|00000bc0| 67 2d 6d 61 74 63 68 20 | 22 0d 22 20 73 74 72 69 |g-match |"." stri|
|00000bd0| 6e 67 20 69 6e 73 65 72 | 74 2d 62 65 66 6f 72 65 |ng inser|t-before|
|00000be0| 2d 6d 61 72 6b 65 72 73 | 20 74 65 6c 6e 65 74 2d |-markers| telnet-|
|00000bf0| 72 65 70 6c 61 63 65 2d | 63 2d 67 20 73 75 62 73 |replace-|c-g subs|
|00000c00| 74 2d 63 68 61 72 2d 69 | 6e 2d 72 65 67 69 6f 6e |t-char-i|n-region|
|00000c10| 20 37 5d 20 35 5d 20 74 | 65 6c 6e 65 74 2d 73 65 | 7] 5] t|elnet-se|
|00000c20| 6e 64 2d 69 6e 70 75 74 | 20 23 5b 6e 69 6c 20 22 |nd-input| #[nil "|
|00000c30| c0 20 88 09 85 5c 6e 00 | 5c 6e 0b 7c 87 22 20 5b |. ...\n.|\n.|." [|
|00000c40| 63 6f 6d 69 6e 74 2d 73 | 65 6e 64 2d 69 6e 70 75 |comint-s|end-inpu|
|00000c50| 74 20 74 65 6c 6e 65 74 | 2d 72 65 6d 6f 74 65 2d |t telnet|-remote-|
|00000c60| 65 63 68 6f 65 73 20 63 | 6f 6d 69 6e 74 2d 6c 61 |echoes c|omint-la|
|00000c70| 73 74 2d 69 6e 70 75 74 | 2d 73 74 61 72 74 20 63 |st-input|-start c|
|00000c80| 6f 6d 69 6e 74 2d 6c 61 | 73 74 2d 69 6e 70 75 74 |omint-la|st-input|
|00000c90| 2d 65 6e 64 5d 20 32 20 | 6e 69 6c 20 6e 69 6c 5d |-end] 2 |nil nil]|
|00000ca0| 5d 20 33 29 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |] 3).(de|falias '|
|00000cb0| 74 65 6c 6e 65 74 20 23 | 5b 28 61 72 67 29 20 22 |telnet #|[(arg) "|
|00000cc0| 08 c1 50 1a c3 c4 5c 6e | c5 5c 22 21 88 c6 c7 5c |..P...\n|.\"!...\|
|00000cd0| 6e 21 c8 5c 22 88 c9 c7 | 5c 6e 21 21 88 ca 20 88 |n!.\"...|\n!!.. .|
|00000ce0| cb 5c 6e cc 08 cd 51 5c | 22 88 ce 20 88 cf 16 10 |.\n...Q\|".. ....|
|00000cf0| 0e 11 89 16 12 29 87 22 | 20 5b 61 72 67 20 22 2d |.....)."| [arg "-|
|00000d00| 74 65 6c 6e 65 74 22 20 | 6e 61 6d 65 20 73 77 69 |telnet" |name swi|
|00000d10| 74 63 68 2d 74 6f 2d 62 | 75 66 66 65 72 20 6d 61 |tch-to-b|uffer ma|
|00000d20| 6b 65 2d 63 6f 6d 69 6e | 74 20 22 74 65 6c 6e 65 |ke-comin|t "telne|
|00000d30| 74 22 20 73 65 74 2d 70 | 72 6f 63 65 73 73 2d 66 |t" set-p|rocess-f|
|00000d40| 69 6c 74 65 72 20 67 65 | 74 2d 70 72 6f 63 65 73 |ilter ge|t-proces|
|00000d50| 73 20 74 65 6c 6e 65 74 | 2d 69 6e 69 74 69 61 6c |s telnet|-initial|
|00000d60| 2d 66 69 6c 74 65 72 20 | 61 63 63 65 70 74 2d 70 |-filter |accept-p|
|00000d70| 72 6f 63 65 73 73 2d 6f | 75 74 70 75 74 20 65 72 |rocess-o|utput er|
|00000d80| 61 73 65 2d 62 75 66 66 | 65 72 20 73 65 6e 64 2d |ase-buff|er send-|
|00000d90| 73 74 72 69 6e 67 20 22 | 6f 70 65 6e 20 22 20 22 |string "|open " "|
|00000da0| 5c 6e 22 20 74 65 6c 6e | 65 74 2d 6d 6f 64 65 20 |\n" teln|et-mode |
|00000db0| 74 65 6c 6e 65 74 2d 73 | 69 6d 70 6c 65 2d 73 65 |telnet-s|imple-se|
|00000dc0| 6e 64 20 63 6f 6d 69 6e | 74 2d 69 6e 70 75 74 2d |nd comin|t-input-|
|00000dd0| 73 65 6e 64 65 72 20 74 | 65 6c 6e 65 74 2d 69 6e |sender t|elnet-in|
|00000de0| 69 74 69 61 6c 2d 63 6f | 75 6e 74 20 74 65 6c 6e |itial-co|unt teln|
|00000df0| 65 74 2d 63 6f 75 6e 74 | 5d 20 35 20 22 5c 0a 4f |et-count|] 5 "\.O|
|00000e00| 70 65 6e 20 61 20 6e 65 | 74 77 6f 72 6b 20 6c 6f |pen a ne|twork lo|
|00000e10| 67 69 6e 20 63 6f 6e 6e | 65 63 74 69 6f 6e 20 74 |gin conn|ection t|
|00000e20| 6f 20 68 6f 73 74 20 6e | 61 6d 65 64 20 48 4f 53 |o host n|amed HOS|
|00000e30| 54 20 28 61 20 73 74 72 | 69 6e 67 29 2e 0a 43 6f |T (a str|ing)..Co|
|00000e40| 6d 6d 75 6e 69 63 61 74 | 69 6f 6e 20 77 69 74 68 |mmunicat|ion with|
|00000e50| 20 48 4f 53 54 20 69 73 | 20 72 65 63 6f 72 64 65 | HOST is| recorde|
|00000e60| 64 20 69 6e 20 61 20 62 | 75 66 66 65 72 20 2a 48 |d in a b|uffer *H|
|00000e70| 4f 53 54 2d 74 65 6c 6e | 65 74 2a 2e 0a 4e 6f 72 |OST-teln|et*..Nor|
|00000e80| 6d 61 6c 6c 79 20 69 6e | 70 75 74 20 69 73 20 65 |mally in|put is e|
|00000e90| 64 69 74 65 64 20 69 6e | 20 45 6d 61 63 73 20 61 |dited in| Emacs a|
|00000ea0| 6e 64 20 73 65 6e 74 20 | 61 20 6c 69 6e 65 20 61 |nd sent |a line a|
|00000eb0| 74 20 61 20 74 69 6d 65 | 2e 22 20 22 73 4f 70 65 |t a time|." "sOpe|
|00000ec0| 6e 20 74 65 6c 6e 65 74 | 20 63 6f 6e 6e 65 63 74 |n telnet| connect|
|00000ed0| 69 6f 6e 20 74 6f 20 68 | 6f 73 74 3a 20 22 5d 29 |ion to h|ost: "])|
|00000ee0| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 74 65 6c 6e |.(defali|as 'teln|
|00000ef0| 65 74 2d 6d 6f 64 65 20 | 23 5b 6e 69 6c 20 22 c0 |et-mode |#[nil ".|
|00000f00| 20 88 c1 12 c3 14 0d 16 | 06 c7 0e 08 21 88 c9 ca | .......|....!...|
|00000f10| 21 87 22 20 5b 63 6f 6d | 69 6e 74 2d 6d 6f 64 65 |!." [com|int-mode|
|00000f20| 20 74 65 6c 6e 65 74 2d | 6d 6f 64 65 20 6d 61 6a | telnet-|mode maj|
|00000f30| 6f 72 2d 6d 6f 64 65 20 | 22 54 65 6c 6e 65 74 22 |or-mode |"Telnet"|
|00000f40| 20 6d 6f 64 65 2d 6e 61 | 6d 65 20 74 65 6c 6e 65 | mode-na|me telne|
|00000f50| 74 2d 70 72 6f 6d 70 74 | 2d 70 61 74 74 65 72 6e |t-prompt|-pattern|
|00000f60| 20 63 6f 6d 69 6e 74 2d | 70 72 6f 6d 70 74 2d 72 | comint-|prompt-r|
|00000f70| 65 67 65 78 70 20 75 73 | 65 2d 6c 6f 63 61 6c 2d |egexp us|e-local-|
|00000f80| 6d 61 70 20 74 65 6c 6e | 65 74 2d 6d 6f 64 65 2d |map teln|et-mode-|
|00000f90| 6d 61 70 20 72 75 6e 2d | 68 6f 6f 6b 73 20 74 65 |map run-|hooks te|
|00000fa0| 6c 6e 65 74 2d 6d 6f 64 | 65 2d 68 6f 6f 6b 5d 20 |lnet-mod|e-hook] |
|00000fb0| 32 20 22 5c 0a 54 68 69 | 73 20 6d 6f 64 65 20 69 |2 "\.Thi|s mode i|
|00000fc0| 73 20 66 6f 72 20 75 73 | 69 6e 67 20 74 65 6c 6e |s for us|ing teln|
|00000fd0| 65 74 20 28 6f 72 20 72 | 73 68 29 20 66 72 6f 6d |et (or r|sh) from|
|00000fe0| 20 61 20 62 75 66 66 65 | 72 20 74 6f 20 61 6e 6f | a buffe|r to ano|
|00000ff0| 74 68 65 72 20 68 6f 73 | 74 2e 0a 49 74 20 68 61 |ther hos|t..It ha|
|00001000| 73 20 6d 6f 73 74 20 6f | 66 20 74 68 65 20 73 61 |s most o|f the sa|
|00001010| 6d 65 20 63 6f 6d 6d 61 | 6e 64 73 20 61 73 20 63 |me comma|nds as c|
|00001020| 6f 6d 69 6e 74 2d 6d 6f | 64 65 2e 0a 54 68 65 72 |omint-mo|de..Ther|
|00001030| 65 20 69 73 20 61 20 76 | 61 72 69 61 62 6c 65 20 |e is a v|ariable |
|00001040| 60 60 74 65 6c 6e 65 74 | 2d 69 6e 74 65 72 72 75 |``telnet|-interru|
|00001050| 70 74 2d 73 74 72 69 6e | 67 27 27 20 77 68 69 63 |pt-strin|g'' whic|
|00001060| 68 20 69 73 20 74 68 65 | 20 63 68 61 72 61 63 74 |h is the| charact|
|00001070| 65 72 0a 73 65 6e 74 20 | 74 6f 20 74 72 79 20 74 |er.sent |to try t|
|00001080| 6f 20 73 74 6f 70 20 65 | 78 65 63 75 74 69 6f 6e |o stop e|xecution|
|00001090| 20 6f 66 20 61 20 6a 6f | 62 20 6f 6e 20 74 68 65 | of a jo|b on the|
|000010a0| 20 72 65 6d 6f 74 65 20 | 68 6f 73 74 2e 0a 44 61 | remote |host..Da|
|000010b0| 74 61 20 69 73 20 73 65 | 6e 74 20 74 6f 20 74 68 |ta is se|nt to th|
|000010c0| 65 20 72 65 6d 6f 74 65 | 20 68 6f 73 74 20 77 68 |e remote| host wh|
|000010d0| 65 6e 20 52 45 54 20 69 | 73 20 74 79 70 65 64 2e |en RET i|s typed.|
|000010e0| 0a 0a 5c 5c 7b 74 65 6c | 6e 65 74 2d 6d 6f 64 65 |..\\{tel|net-mode|
|000010f0| 2d 6d 61 70 7d 0a 22 20 | 6e 69 6c 5d 29 0a 28 64 |-map}." |nil]).(d|
|00001100| 65 66 61 6c 69 61 73 20 | 27 72 73 68 20 23 5b 28 |efalias |'rsh #[(|
|00001110| 61 72 67 29 20 22 c0 c1 | 21 88 5c 6e c3 50 1c c5 |arg) "..|!.\n.P..|
|00001120| c6 0c c7 5c 22 21 88 c8 | c9 0c 21 ca 5c 22 88 cb |...\"!..|..!.\"..|
|00001130| 20 88 cc 89 16 0d 29 87 | 22 20 5b 72 65 71 75 69 | .....).|" [requi|
|00001140| 72 65 20 73 68 65 6c 6c | 20 61 72 67 20 22 2d 72 |re shell| arg "-r|
|00001150| 73 68 22 20 6e 61 6d 65 | 20 73 77 69 74 63 68 2d |sh" name| switch-|
|00001160| 74 6f 2d 62 75 66 66 65 | 72 20 6d 61 6b 65 2d 63 |to-buffe|r make-c|
|00001170| 6f 6d 69 6e 74 20 22 72 | 73 68 22 20 73 65 74 2d |omint "r|sh" set-|
|00001180| 70 72 6f 63 65 73 73 2d | 66 69 6c 74 65 72 20 67 |process-|filter g|
|00001190| 65 74 2d 70 72 6f 63 65 | 73 73 20 74 65 6c 6e 65 |et-proce|ss telne|
|000011a0| 74 2d 69 6e 69 74 69 61 | 6c 2d 66 69 6c 74 65 72 |t-initia|l-filter|
|000011b0| 20 74 65 6c 6e 65 74 2d | 6d 6f 64 65 20 2d 31 36 | telnet-|mode -16|
|000011c0| 20 74 65 6c 6e 65 74 2d | 63 6f 75 6e 74 5d 20 34 | telnet-|count] 4|
|000011d0| 20 22 5c 0a 4f 70 65 6e | 20 61 20 6e 65 74 77 6f | "\.Open| a netwo|
|000011e0| 72 6b 20 6c 6f 67 69 6e | 20 63 6f 6e 6e 65 63 74 |rk login| connect|
|000011f0| 69 6f 6e 20 74 6f 20 68 | 6f 73 74 20 6e 61 6d 65 |ion to h|ost name|
|00001200| 64 20 48 4f 53 54 20 28 | 61 20 73 74 72 69 6e 67 |d HOST (|a string|
|00001210| 29 2e 0a 43 6f 6d 6d 75 | 6e 69 63 61 74 69 6f 6e |)..Commu|nication|
|00001220| 20 77 69 74 68 20 48 4f | 53 54 20 69 73 20 72 65 | with HO|ST is re|
|00001230| 63 6f 72 64 65 64 20 69 | 6e 20 61 20 62 75 66 66 |corded i|n a buff|
|00001240| 65 72 20 2a 48 4f 53 54 | 2d 72 73 68 2a 2e 0a 4e |er *HOST|-rsh*..N|
|00001250| 6f 72 6d 61 6c 6c 79 20 | 69 6e 70 75 74 20 69 73 |ormally |input is|
|00001260| 20 65 64 69 74 65 64 20 | 69 6e 20 45 6d 61 63 73 | edited |in Emacs|
|00001270| 20 61 6e 64 20 73 65 6e | 74 20 61 20 6c 69 6e 65 | and sen|t a line|
|00001280| 20 61 74 20 61 20 74 69 | 6d 65 2e 22 20 22 73 4f | at a ti|me." "sO|
|00001290| 70 65 6e 20 72 73 68 20 | 63 6f 6e 6e 65 63 74 69 |pen rsh |connecti|
|000012a0| 6f 6e 20 74 6f 20 68 6f | 73 74 3a 20 22 5d 29 0a |on to ho|st: "]).|
|000012b0| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c0 c1 c2 5c |(byte-co|de "...\|
|000012c0| 22 88 c3 c4 21 87 22 20 | 5b 64 65 66 61 6c 69 61 |"...!." |[defalia|
|000012d0| 73 20 72 65 61 64 2d 70 | 61 73 73 77 6f 72 64 20 |s read-p|assword |
|000012e0| 23 5b 6e 69 6c 20 22 c0 | c1 1a 1b c4 c5 21 88 c6 |#[nil ".|.....!..|
|000012f0| 20 89 12 c7 3e 3f c1 16 | 08 83 1e 00 0b c9 5c 6e | ...>?..|......\n|
|00001300| 21 50 13 82 08 00 0b 2a | 87 22 20 5b 22 22 20 6e |!P.....*|." ["" n|
|00001310| 69 6c 20 74 65 6d 20 61 | 6e 73 77 20 6d 65 73 73 |il tem a|nsw mess|
|00001320| 61 67 65 20 22 52 65 61 | 64 69 6e 67 20 70 61 73 |age "Rea|ding pas|
|00001330| 73 77 6f 72 64 2e 2e 2e | 22 20 72 65 61 64 2d 63 |sword...|" read-c|
|00001340| 68 61 72 20 28 31 33 20 | 31 30 20 37 29 20 71 75 |har (13 |10 7) qu|
|00001350| 69 74 2d 66 6c 61 67 20 | 63 68 61 72 2d 74 6f 2d |it-flag |char-to-|
|00001360| 73 74 72 69 6e 67 5d 20 | 33 5d 20 70 72 6f 76 69 |string] |3] provi|
|00001370| 64 65 20 74 65 6c 6e 65 | 74 5d 20 33 29 0a |de telne|t] 3). |
+--------+-------------------------+-------------------------+--------+--------+