DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: ┃ t

⟦76508a568⟧

    Length: 8060 (0x1f7c)
    Names: »telnet.el«

Derivation

└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki
    └─ ⟦this⟧ »EUUGD11/gnu-31mar87/emacs/lisp/telnet.el« 

Hex Dump

0x0000…0020 3b 3b 20 43 6f 70 79 72 69 67 68 74 20 28 43 29 20 31 39 38 35 20 46 72 65 65 20 53 6f 66 74 77   ┆;; Copyright (C) 1985 Free Softw┆
0x0020…0040 61 72 65 20 46 6f 75 6e 64 61 74 69 6f 6e 0a 0a 3b 3b 20 54 68 69 73 20 66 69 6c 65 20 69 73 20   ┆are Foundation  ;; This file is ┆
0x0040…0060 70 61 72 74 20 6f 66 20 47 4e 55 20 45 6d 61 63 73 2e 0a 0a 3b 3b 20 47 4e 55 20 45 6d 61 63 73   ┆part of GNU Emacs.  ;; GNU Emacs┆
0x0060…0080 20 69 73 20 64 69 73 74 72 69 62 75 74 65 64 20 69 6e 20 74 68 65 20 68 6f 70 65 20 74 68 61 74   ┆ is distributed in the hope that┆
0x0080…00a0 20 69 74 20 77 69 6c 6c 20 62 65 20 75 73 65 66 75 6c 2c 0a 3b 3b 20 62 75 74 20 57 49 54 48 4f   ┆ it will be useful, ;; but WITHO┆
0x00a0…00c0 55 54 20 41 4e 59 20 57 41 52 52 41 4e 54 59 2e 20 20 4e 6f 20 61 75 74 68 6f 72 20 6f 72 20 64   ┆UT ANY WARRANTY.  No author or d┆
0x00c0…00e0 69 73 74 72 69 62 75 74 6f 72 0a 3b 3b 20 61 63 63 65 70 74 73 20 72 65 73 70 6f 6e 73 69 62 69   ┆istributor ;; accepts responsibi┆
0x00e0…0100 6c 69 74 79 20 74 6f 20 61 6e 79 6f 6e 65 20 66 6f 72 20 74 68 65 20 63 6f 6e 73 65 71 75 65 6e   ┆lity to anyone for the consequen┆
0x0100…0120 63 65 73 20 6f 66 20 75 73 69 6e 67 20 69 74 0a 3b 3b 20 6f 72 20 66 6f 72 20 77 68 65 74 68 65   ┆ces of using it ;; or for whethe┆
0x0120…0140 72 20 69 74 20 73 65 72 76 65 73 20 61 6e 79 20 70 61 72 74 69 63 75 6c 61 72 20 70 75 72 70 6f   ┆r it serves any particular purpo┆
0x0140…0160 73 65 20 6f 72 20 77 6f 72 6b 73 20 61 74 20 61 6c 6c 2c 0a 3b 3b 20 75 6e 6c 65 73 73 20 68 65   ┆se or works at all, ;; unless he┆
0x0160…0180 20 73 61 79 73 20 73 6f 20 69 6e 20 77 72 69 74 69 6e 67 2e 20 20 52 65 66 65 72 20 74 6f 20 74   ┆ says so in writing.  Refer to t┆
0x0180…01a0 68 65 20 47 4e 55 20 45 6d 61 63 73 20 47 65 6e 65 72 61 6c 20 50 75 62 6c 69 63 0a 3b 3b 20 4c   ┆he GNU Emacs General Public ;; L┆
0x01a0…01c0 69 63 65 6e 73 65 20 66 6f 72 20 66 75 6c 6c 20 64 65 74 61 69 6c 73 2e 0a 0a 3b 3b 20 45 76 65   ┆icense for full details.  ;; Eve┆
0x01c0…01e0 72 79 6f 6e 65 20 69 73 20 67 72 61 6e 74 65 64 20 70 65 72 6d 69 73 73 69 6f 6e 20 74 6f 20 63   ┆ryone is granted permission to c┆
0x01e0…0200 6f 70 79 2c 20 6d 6f 64 69 66 79 20 61 6e 64 20 72 65 64 69 73 74 72 69 62 75 74 65 0a 3b 3b 20   ┆opy, modify and redistribute ;; ┆
0x0200…0220 47 4e 55 20 45 6d 61 63 73 2c 20 62 75 74 20 6f 6e 6c 79 20 75 6e 64 65 72 20 74 68 65 20 63 6f   ┆GNU Emacs, but only under the co┆
0x0220…0240 6e 64 69 74 69 6f 6e 73 20 64 65 73 63 72 69 62 65 64 20 69 6e 20 74 68 65 0a 3b 3b 20 47 4e 55   ┆nditions described in the ;; GNU┆
0x0240…0260 20 45 6d 61 63 73 20 47 65 6e 65 72 61 6c 20 50 75 62 6c 69 63 20 4c 69 63 65 6e 73 65 2e 20 20   ┆ Emacs General Public License.  ┆
0x0260…0280 20 41 20 63 6f 70 79 20 6f 66 20 74 68 69 73 20 6c 69 63 65 6e 73 65 20 69 73 0a 3b 3b 20 73 75   ┆ A copy of this license is ;; su┆
0x0280…02a0 70 70 6f 73 65 64 20 74 6f 20 68 61 76 65 20 62 65 65 6e 20 67 69 76 65 6e 20 74 6f 20 79 6f 75   ┆pposed to have been given to you┆
0x02a0…02c0 20 61 6c 6f 6e 67 20 77 69 74 68 20 47 4e 55 20 45 6d 61 63 73 20 73 6f 20 79 6f 75 0a 3b 3b 20   ┆ along with GNU Emacs so you ;; ┆
0x02c0…02e0 63 61 6e 20 6b 6e 6f 77 20 79 6f 75 72 20 72 69 67 68 74 73 20 61 6e 64 20 72 65 73 70 6f 6e 73   ┆can know your rights and respons┆
0x02e0…0300 69 62 69 6c 69 74 69 65 73 2e 20 20 49 74 20 73 68 6f 75 6c 64 20 62 65 20 69 6e 20 61 0a 3b 3b   ┆ibilities.  It should be in a ;;┆
0x0300…0320 20 66 69 6c 65 20 6e 61 6d 65 64 20 43 4f 50 59 49 4e 47 2e 20 20 41 6d 6f 6e 67 20 6f 74 68 65   ┆ file named COPYING.  Among othe┆
0x0320…0340 72 20 74 68 69 6e 67 73 2c 20 74 68 65 20 63 6f 70 79 72 69 67 68 74 20 6e 6f 74 69 63 65 0a 3b   ┆r things, the copyright notice ;┆
0x0340…0360 3b 20 61 6e 64 20 74 68 69 73 20 6e 6f 74 69 63 65 20 6d 75 73 74 20 62 65 20 70 72 65 73 65 72   ┆; and this notice must be preser┆
0x0360…0380 76 65 64 20 6f 6e 20 61 6c 6c 20 63 6f 70 69 65 73 2e 0a 0a 0a 3b 3b 20 41 75 74 68 6f 72 20 57   ┆ved on all copies.   ;; Author W┆
0x0380…03a0 69 6c 6c 69 61 6d 20 46 2e 20 53 63 68 65 6c 74 65 72 0a 0a 3b 3b 74 6f 20 64 6f 20 66 69 78 20   ┆illiam F. Schelter  ;;to do fix ┆
0x03a0…03c0 73 6f 66 74 77 61 72 65 20 74 79 70 65 73 20 66 6f 72 20 6c 69 73 70 6d 3a 0a 3b 3b 74 6f 20 65   ┆software types for lispm: ;;to e┆
0x03c0…03e0 76 61 6c 20 63 75 72 72 65 6e 74 20 65 78 70 72 65 73 73 69 6f 6e 2e 20 20 41 6c 73 6f 20 74 6f   ┆val current expression.  Also to┆
0x03e0…0400 20 74 72 79 20 74 6f 20 73 65 6e 64 20 65 73 63 61 70 65 20 6b 65 79 73 20 63 6f 72 72 65 63 74   ┆ try to send escape keys correct┆
0x0400…0420 6c 79 2e 0a 3b 3b 65 73 73 65 6e 74 69 61 6c 6c 79 20 77 65 27 6c 6c 20 77 61 6e 74 20 74 68 65   ┆ly. ;;essentially we'll want the┆
0x0420…0440 20 72 75 62 6f 75 74 2d 68 61 6e 64 6c 65 72 20 6f 66 66 2e 0a 0a 28 64 65 66 76 61 72 20 74 65   ┆ rubout-handler off.  (defvar te┆
0x0440…0460 6c 6e 65 74 2d 6e 65 77 2d 6c 69 6e 65 20 22 5c 72 22 29 0a 28 64 65 66 76 61 72 20 74 65 6c 6e   ┆lnet-new-line "\r") (defvar teln┆
0x0460…0480 65 74 2d 6d 6f 64 65 2d 6d 61 70 20 6e 69 6c 29 0a 28 64 65 66 76 61 72 20 74 65 6c 6e 65 74 2d   ┆et-mode-map nil) (defvar telnet-┆
0x0480…04a0 70 72 6f 6d 70 74 2d 70 61 74 74 65 72 6e 20 22 5e 5b 5e 23 24 25 3e 5d 2a 5b 23 24 25 3e 5d 20   ┆prompt-pattern "^[^#$%>]*[#$%>] ┆
0x04a0…04c0 2a 22 29 0a 28 64 65 66 76 61 72 20 74 65 6c 6e 65 74 2d 69 6e 74 65 72 72 75 70 74 2d 73 74 72   ┆*") (defvar telnet-interrupt-str┆
0x04c0…04e0 69 6e 67 20 22 5c 5e 63 22 20 22 53 74 72 69 6e 67 20 73 65 6e 74 20 62 79 20 43 2d 63 2e 22 29   ┆ing "\^c" "String sent by C-c.")┆
0x04e0…0500 0a 28 64 65 66 76 61 72 20 74 65 6c 6e 65 74 2d 63 6f 75 6e 74 20 30 29 0a 28 64 65 66 76 61 72   ┆ (defvar telnet-count 0) (defvar┆
0x0500…0520 20 74 65 6c 6e 65 74 2d 72 65 70 6c 61 63 65 2d 63 2d 67 20 6e 69 6c 29 0a 28 64 65 66 76 61 72   ┆ telnet-replace-c-g nil) (defvar┆
0x0520…0540 20 74 65 6c 6e 65 74 2d 72 65 6d 6f 74 65 2d 65 63 68 6f 65 73 20 6e 69 6c 29 0a 0a 28 64 65 66   ┆ telnet-remote-echoes nil)  (def┆
0x0540…0560 75 6e 20 74 65 6c 6e 65 74 2d 69 6e 74 65 72 72 75 70 74 2d 73 75 62 6a 6f 62 20 28 29 0a 20 20   ┆un telnet-interrupt-subjob ()   ┆
0x0560…0580 28 69 6e 74 65 72 61 63 74 69 76 65 29 0a 20 20 22 49 6e 74 65 72 72 75 70 74 20 74 68 65 20 70   ┆(interactive)   "Interrupt the p┆
0x0580…05a0 72 6f 67 72 61 6d 20 72 75 6e 6e 69 6e 67 20 74 68 72 6f 75 67 68 20 74 65 6c 6e 65 74 20 6f 6e   ┆rogram running through telnet on┆
0x05a0…05c0 20 74 68 65 20 72 65 6d 6f 74 65 20 68 6f 73 74 2e 22 0a 20 20 28 73 65 6e 64 2d 73 74 72 69 6e   ┆ the remote host."   (send-strin┆
0x05c0…05e0 67 20 6e 69 6c 20 74 65 6c 6e 65 74 2d 69 6e 74 65 72 72 75 70 74 2d 73 74 72 69 6e 67 29 29 0a   ┆g nil telnet-interrupt-string)) ┆
0x05e0…0600 0a 28 64 65 66 75 6e 20 74 65 6c 6e 65 74 2d 63 2d 7a 20 28 29 0a 20 20 28 69 6e 74 65 72 61 63   ┆ (defun telnet-c-z ()   (interac┆
0x0600…0620 74 69 76 65 29 0a 20 20 28 73 65 6e 64 2d 73 74 72 69 6e 67 20 6e 69 6c 20 22 1a 22 29 29 0a 0a   ┆tive)   (send-string nil " "))  ┆
0x0620…0640 28 64 65 66 75 6e 20 73 65 6e 64 2d 70 72 6f 63 65 73 73 2d 6e 65 78 74 2d 63 68 61 72 20 28 29   ┆(defun send-process-next-char ()┆
0x0640…0660 0a 20 20 28 69 6e 74 65 72 61 63 74 69 76 65 29 0a 20 20 28 73 65 6e 64 2d 73 74 72 69 6e 67 20   ┆   (interactive)   (send-string ┆
0x0660…0680 6e 69 6c 0a 09 20 20 20 20 20 20 20 28 63 68 61 72 2d 74 6f 2d 73 74 72 69 6e 67 0a 09 09 28 6c   ┆nil         (char-to-string   (l┆
0x0680…06a0 65 74 20 28 28 69 6e 68 69 62 69 74 2d 71 75 69 74 20 74 29 29 0a 09 09 20 20 28 70 72 6f 67 31   ┆et ((inhibit-quit t))     (prog1┆
0x06a0…06c0 20 28 72 65 61 64 2d 63 68 61 72 29 0a 09 09 20 20 20 20 28 73 65 74 71 20 71 75 69 74 2d 66 6c   ┆ (read-char)       (setq quit-fl┆
0x06c0…06e0 61 67 20 6e 69 6c 29 29 29 29 29 29 0a 0a 28 69 66 20 74 65 6c 6e 65 74 2d 6d 6f 64 65 2d 6d 61   ┆ag nil))))))  (if telnet-mode-ma┆
0x06e0…0700 70 0a 20 20 20 20 6e 69 6c 0a 20 20 28 73 65 74 71 20 74 65 6c 6e 65 74 2d 6d 6f 64 65 2d 6d 61   ┆p     nil   (setq telnet-mode-ma┆
0x0700…0720 70 20 28 6d 61 6b 65 2d 73 70 61 72 73 65 2d 6b 65 79 6d 61 70 29 29 0a 20 20 28 64 65 66 69 6e   ┆p (make-sparse-keymap))   (defin┆
0x0720…0740 65 2d 6b 65 79 20 74 65 6c 6e 65 74 2d 6d 6f 64 65 2d 6d 61 70 20 22 5c 43 2d 6d 22 20 27 74 65   ┆e-key telnet-mode-map "\C-m" 'te┆
0x0740…0760 6c 6e 65 74 2d 73 65 6e 64 2d 69 6e 70 75 74 29 0a 20 20 28 64 65 66 69 6e 65 2d 6b 65 79 20 74   ┆lnet-send-input)   (define-key t┆
0x0760…0780 65 6c 6e 65 74 2d 6d 6f 64 65 2d 6d 61 70 20 22 5c 43 2d 63 5c 43 2d 64 22 20 27 73 68 65 6c 6c   ┆elnet-mode-map "\C-c\C-d" 'shell┆
0x0780…07a0 2d 73 65 6e 64 2d 65 6f 66 29 0a 20 20 28 64 65 66 69 6e 65 2d 6b 65 79 20 74 65 6c 6e 65 74 2d   ┆-send-eof)   (define-key telnet-┆
0x07a0…07c0 6d 6f 64 65 2d 6d 61 70 20 22 5c 43 2d 63 5c 43 2d 71 22 20 27 73 65 6e 64 2d 70 72 6f 63 65 73   ┆mode-map "\C-c\C-q" 'send-proces┆
0x07c0…07e0 73 2d 6e 65 78 74 2d 63 68 61 72 29 0a 20 20 28 64 65 66 69 6e 65 2d 6b 65 79 20 74 65 6c 6e 65   ┆s-next-char)   (define-key telne┆
0x07e0…0800 74 2d 6d 6f 64 65 2d 6d 61 70 20 22 5c 43 2d 63 5c 43 2d 63 22 20 27 74 65 6c 6e 65 74 2d 69 6e   ┆t-mode-map "\C-c\C-c" 'telnet-in┆
0x0800…0820 74 65 72 72 75 70 74 2d 73 75 62 6a 6f 62 29 20 0a 20 20 28 64 65 66 69 6e 65 2d 6b 65 79 20 74   ┆terrupt-subjob)    (define-key t┆
0x0820…0840 65 6c 6e 65 74 2d 6d 6f 64 65 2d 6d 61 70 20 22 5c 43 2d 63 5c 43 2d 7a 22 20 20 27 74 65 6c 6e   ┆elnet-mode-map "\C-c\C-z"  'teln┆
0x0840…0860 65 74 2d 63 2d 7a 29 0a 20 20 28 64 65 66 69 6e 65 2d 6b 65 79 20 74 65 6c 6e 65 74 2d 6d 6f 64   ┆et-c-z)   (define-key telnet-mod┆
0x0860…0880 65 2d 6d 61 70 20 22 5c 43 2d 63 5c 43 2d 75 22 20 27 6b 69 6c 6c 2d 73 68 65 6c 6c 2d 69 6e 70   ┆e-map "\C-c\C-u" 'kill-shell-inp┆
0x0880…08a0 75 74 29 0a 20 20 28 64 65 66 69 6e 65 2d 6b 65 79 20 74 65 6c 6e 65 74 2d 6d 6f 64 65 2d 6d 61   ┆ut)   (define-key telnet-mode-ma┆
0x08a0…08c0 70 20 22 5c 43 2d 63 5c 43 2d 77 22 20 27 62 61 63 6b 77 61 72 64 2d 6b 69 6c 6c 2d 77 6f 72 64   ┆p "\C-c\C-w" 'backward-kill-word┆
0x08c0…08e0 29 0a 20 20 28 64 65 66 69 6e 65 2d 6b 65 79 20 74 65 6c 6e 65 74 2d 6d 6f 64 65 2d 6d 61 70 20   ┆)   (define-key telnet-mode-map ┆
0x08e0…0900 22 5c 43 2d 63 5c 43 2d 6f 22 20 27 6b 69 6c 6c 2d 6f 75 74 70 75 74 2d 66 72 6f 6d 2d 73 68 65   ┆"\C-c\C-o" 'kill-output-from-she┆
0x0900…0920 6c 6c 29 0a 20 20 28 64 65 66 69 6e 65 2d 6b 65 79 20 74 65 6c 6e 65 74 2d 6d 6f 64 65 2d 6d 61   ┆ll)   (define-key telnet-mode-ma┆
0x0920…0940 70 20 22 5c 43 2d 63 5c 43 2d 72 22 20 27 73 68 6f 77 2d 6f 75 74 70 75 74 2d 66 72 6f 6d 2d 73   ┆p "\C-c\C-r" 'show-output-from-s┆
0x0940…0960 68 65 6c 6c 29 0a 20 20 28 64 65 66 69 6e 65 2d 6b 65 79 20 74 65 6c 6e 65 74 2d 6d 6f 64 65 2d   ┆hell)   (define-key telnet-mode-┆
0x0960…0980 6d 61 70 20 22 5c 43 2d 63 5c 43 2d 79 22 20 27 63 6f 70 79 2d 6c 61 73 74 2d 73 68 65 6c 6c 2d   ┆map "\C-c\C-y" 'copy-last-shell-┆
0x0980…09a0 69 6e 70 75 74 29 29 0a 0a 3b 3b 6d 61 79 62 65 20 73 68 6f 75 6c 64 20 68 61 76 65 20 61 20 66   ┆input))  ;;maybe should have a f┆
0x09a0…09c0 6c 61 67 20 66 6f 72 20 77 68 65 6e 20 68 61 76 65 20 66 6f 75 6e 64 20 74 79 70 65 0a 28 64 65   ┆lag for when have found type (de┆
0x09c0…09e0 66 75 6e 20 74 65 6c 6e 65 74 2d 63 68 65 63 6b 2d 73 6f 66 74 77 61 72 65 2d 74 79 70 65 2d 69   ┆fun telnet-check-software-type-i┆
0x09e0…0a00 6e 69 74 69 61 6c 69 7a 65 20 28 73 74 72 69 6e 67 29 0a 20 20 22 54 72 69 65 73 20 74 6f 20 70   ┆nitialize (string)   "Tries to p┆
0x0a00…0a20 75 74 20 63 6f 72 72 65 63 74 20 69 6e 69 74 69 61 6c 69 7a 61 74 69 6f 6e 73 20 69 6e 2e 20 20   ┆ut correct initializations in.  ┆
0x0a20…0a40 4e 65 65 64 73 20 77 6f 72 6b 2e 22 0a 20 20 28 63 6f 6e 64 20 28 28 73 74 72 69 6e 67 2d 6d 61   ┆Needs work."   (cond ((string-ma┆
0x0a40…0a60 74 63 68 20 22 75 6e 69 78 22 20 73 74 72 69 6e 67 29 0a 09 20 28 73 65 74 71 20 74 65 6c 6e 65   ┆tch "unix" string)   (setq telne┆
0x0a60…0a80 74 2d 70 72 6f 6d 70 74 2d 70 61 74 74 65 72 6e 20 73 68 65 6c 6c 2d 70 72 6f 6d 70 74 2d 70 61   ┆t-prompt-pattern shell-prompt-pa┆
0x0a80…0aa0 74 74 65 72 6e 29 0a 09 20 28 73 65 74 71 20 74 65 6c 6e 65 74 2d 6e 65 77 2d 6c 69 6e 65 20 22   ┆ttern)   (setq telnet-new-line "┆
0x0aa0…0ac0 5c 6e 22 29 29 0a 09 28 28 73 74 72 69 6e 67 2d 6d 61 74 63 68 20 22 74 6f 70 73 2d 32 30 22 20   ┆\n"))  ((string-match "tops-20" ┆
0x0ac0…0ae0 73 74 72 69 6e 67 29 20 3b 3b 6d 61 79 62 65 20 61 64 64 20 74 65 6c 6e 65 74 2d 72 65 70 6c 61   ┆string) ;;maybe add telnet-repla┆
0x0ae0…0b00 63 65 2d 63 2d 67 0a 09 20 28 73 65 74 71 20 74 65 6c 6e 65 74 2d 70 72 6f 6d 70 74 2d 70 61 74   ┆ce-c-g   (setq telnet-prompt-pat┆
0x0b00…0b20 74 65 72 6e 20 20 22 5b 40 3e 5d 2a 22 29 29 0a 09 28 28 73 74 72 69 6e 67 2d 6d 61 74 63 68 20   ┆tern  "[@>]*"))  ((string-match ┆
0x0b20…0b40 22 69 74 73 22 20 73 74 72 69 6e 67 29 0a 09 20 28 73 65 74 71 20 74 65 6c 6e 65 74 2d 70 72 6f   ┆"its" string)   (setq telnet-pro┆
0x0b40…0b60 6d 70 74 2d 70 61 74 74 65 72 6e 20 20 22 5e 5b 5e 2a 3e 5d 2a 5b 2a 3e 5d 20 2a 22 29 29 0a 09   ┆mpt-pattern  "^[^*>]*[*>] *"))  ┆
0x0b60…0b80 28 28 73 74 72 69 6e 67 2d 6d 61 74 63 68 20 22 65 78 70 6c 6f 72 65 72 22 20 73 74 72 69 6e 67   ┆((string-match "explorer" string┆
0x0b80…0ba0 29 20 20 3b 3b 65 78 70 6c 6f 72 65 72 20 74 65 6c 6e 65 74 20 6e 65 65 64 73 20 77 6f 72 6b 0a   ┆)  ;;explorer telnet needs work ┆
0x0ba0…0bc0 09 20 28 73 65 74 71 20 74 65 6c 6e 65 74 2d 72 65 70 6c 61 63 65 2d 63 2d 67 20 3f 5c 6e 29 29   ┆  (setq telnet-replace-c-g ?\n))┆
0x0bc0…0be0 0a 09 29 29 0a 0a 28 64 65 66 75 6e 20 74 65 6c 6e 65 74 2d 69 6e 69 74 69 61 6c 2d 66 69 6c 74   ┆  ))  (defun telnet-initial-filt┆
0x0be0…0c00 65 72 20 28 70 72 6f 63 20 73 74 72 69 6e 67 29 0a 20 20 3b 46 6f 72 20 72 65 61 64 69 6e 67 20   ┆er (proc string)   ;For reading ┆
0x0c00…0c20 75 70 20 74 6f 20 61 6e 64 20 69 6e 63 6c 75 64 69 6e 67 20 70 61 73 73 77 6f 72 64 3b 20 61 6c   ┆up to and including password; al┆
0x0c20…0c40 73 6f 20 77 69 6c 6c 20 67 65 74 20 6d 61 63 68 69 6e 65 20 74 79 70 65 2e 0a 20 20 28 63 6f 6e   ┆so will get machine type.   (con┆
0x0c40…0c60 64 20 28 28 73 74 72 69 6e 67 2d 6d 61 74 63 68 20 22 4e 6f 20 73 75 63 68 20 68 6f 73 74 22 20   ┆d ((string-match "No such host" ┆
0x0c60…0c80 73 74 72 69 6e 67 29 0a 09 20 28 6b 69 6c 6c 2d 62 75 66 66 65 72 20 28 70 72 6f 63 65 73 73 2d   ┆string)   (kill-buffer (process-┆
0x0c80…0ca0 62 75 66 66 65 72 20 70 72 6f 63 29 29 0a 09 20 28 65 72 72 6f 72 20 22 4e 6f 20 73 75 63 68 20   ┆buffer proc))   (error "No such ┆
0x0ca0…0cc0 68 6f 73 74 2e 22 29 29 0a 09 28 28 73 74 72 69 6e 67 2d 6d 61 74 63 68 20 22 70 61 73 73 77 22   ┆host."))  ((string-match "passw"┆
0x0cc0…0ce0 20 73 74 72 69 6e 67 29 0a 09 20 28 74 65 6c 6e 65 74 2d 66 69 6c 74 65 72 20 70 72 6f 63 20 73   ┆ string)   (telnet-filter proc s┆
0x0ce0…0d00 74 72 69 6e 67 29 0a 09 20 28 73 65 74 71 20 70 61 73 73 77 6f 72 64 20 28 72 65 61 64 2d 70 61   ┆tring)   (setq password (read-pa┆
0x0d00…0d20 73 73 77 6f 72 64 29 29 0a 09 20 28 73 65 74 71 20 74 65 6c 6e 65 74 2d 63 6f 75 6e 74 20 30 29   ┆ssword))   (setq telnet-count 0)┆
0x0d20…0d40 0a 09 20 28 73 65 6e 64 2d 73 74 72 69 6e 67 20 70 72 6f 63 20 28 63 6f 6e 63 61 74 20 70 61 73   ┆   (send-string proc (concat pas┆
0x0d40…0d60 73 77 6f 72 64 20 20 74 65 6c 6e 65 74 2d 6e 65 77 2d 6c 69 6e 65 29 29 29 0a 09 28 74 20 28 74   ┆sword  telnet-new-line)))  (t (t┆
0x0d60…0d80 65 6c 6e 65 74 2d 63 68 65 63 6b 2d 73 6f 66 74 77 61 72 65 2d 74 79 70 65 2d 69 6e 69 74 69 61   ┆elnet-check-software-type-initia┆
0x0d80…0da0 6c 69 7a 65 20 73 74 72 69 6e 67 29 0a 09 20 20 20 28 74 65 6c 6e 65 74 2d 66 69 6c 74 65 72 20   ┆lize string)     (telnet-filter ┆
0x0da0…0dc0 70 72 6f 63 20 73 74 72 69 6e 67 29 0a 09 20 20 20 28 63 6f 6e 64 20 28 28 3e 20 74 65 6c 6e 65   ┆proc string)     (cond ((> telne┆
0x0dc0…0de0 74 2d 63 6f 75 6e 74 20 34 29 0a 09 09 20 20 28 73 65 74 2d 70 72 6f 63 65 73 73 2d 66 69 6c 74   ┆t-count 4)     (set-process-filt┆
0x0de0…0e00 65 72 20 70 72 6f 63 20 27 74 65 6c 6e 65 74 2d 66 69 6c 74 65 72 29 29 0a 09 09 20 28 74 20 28   ┆er proc 'telnet-filter))    (t (┆
0x0e00…0e20 73 65 74 71 20 74 65 6c 6e 65 74 2d 63 6f 75 6e 74 20 28 31 2b 20 74 65 6c 6e 65 74 2d 63 6f 75   ┆setq telnet-count (1+ telnet-cou┆
0x0e20…0e40 6e 74 29 29 29 29 29 29 29 0a 0a 28 64 65 66 75 6e 20 74 65 6c 6e 65 74 2d 66 69 6c 74 65 72 20   ┆nt)))))))  (defun telnet-filter ┆
0x0e40…0e60 28 70 72 6f 63 20 73 74 72 69 6e 67 29 0a 20 20 28 73 61 76 65 2d 65 78 63 75 72 73 69 6f 6e 0a   ┆(proc string)   (save-excursion ┆
0x0e60…0e80 20 20 20 20 28 73 65 74 2d 62 75 66 66 65 72 20 28 70 72 6f 63 65 73 73 2d 62 75 66 66 65 72 20   ┆    (set-buffer (process-buffer ┆
0x0e80…0ea0 70 72 6f 63 29 29 0a 20 20 20 20 28 67 6f 74 6f 2d 63 68 61 72 20 28 70 6f 69 6e 74 2d 6d 61 78   ┆proc))     (goto-char (point-max┆
0x0ea0…0ec0 29 29 0a 20 20 20 20 28 6c 65 74 20 28 28 6e 6f 77 20 28 70 6f 69 6e 74 29 29 29 0a 20 20 20 20   ┆))     (let ((now (point)))     ┆
0x0ec0…0ee0 20 20 28 69 6e 73 65 72 74 20 73 74 72 69 6e 67 29 0a 20 20 20 20 20 20 28 73 75 62 73 74 2d 63   ┆  (insert string)       (subst-c┆
0x0ee0…0f00 68 61 72 2d 69 6e 2d 72 65 67 69 6f 6e 20 6e 6f 77 20 28 70 6f 69 6e 74 29 20 3f 5c 5e 6d 20 3f   ┆har-in-region now (point) ?\^m ?┆
0x0f00…0f20 5c 20 29 0a 20 20 20 20 20 20 28 61 6e 64 20 74 65 6c 6e 65 74 2d 72 65 70 6c 61 63 65 2d 63 2d   ┆\ )       (and telnet-replace-c-┆
0x0f20…0f40 67 20 28 73 75 62 73 74 2d 63 68 61 72 2d 69 6e 2d 72 65 67 69 6f 6e 20 6e 6f 77 20 28 70 6f 69   ┆g (subst-char-in-region now (poi┆
0x0f40…0f60 6e 74 29 20 3f 5c 5e 67 20 74 65 6c 6e 65 74 2d 72 65 70 6c 61 63 65 2d 63 2d 67 29 29 29 0a 20   ┆nt) ?\^g telnet-replace-c-g)))  ┆
0x0f60…0f80 20 20 20 28 69 66 20 28 70 72 6f 63 65 73 73 2d 6d 61 72 6b 20 70 72 6f 63 29 0a 09 28 73 65 74   ┆   (if (process-mark proc)  (set┆
0x0f80…0fa0 2d 6d 61 72 6b 65 72 20 28 70 72 6f 63 65 73 73 2d 6d 61 72 6b 20 70 72 6f 63 29 20 28 70 6f 69   ┆-marker (process-mark proc) (poi┆
0x0fa0…0fc0 6e 74 29 29 29 0a 20 20 20 20 28 69 66 20 28 61 6e 64 20 28 69 6e 74 65 67 65 72 2d 6f 72 2d 6d   ┆nt)))     (if (and (integer-or-m┆
0x0fc0…0fe0 61 72 6b 65 72 2d 70 20 6c 61 73 74 2d 69 6e 70 75 74 2d 73 74 61 72 74 29 0a 09 20 20 20 20 20   ┆arker-p last-input-start)       ┆
0x0fe0…1000 28 6d 61 72 6b 65 72 2d 70 6f 73 69 74 69 6f 6e 20 6c 61 73 74 2d 69 6e 70 75 74 2d 73 74 61 72   ┆(marker-position last-input-star┆
0x1000…1020 74 29 0a 09 20 20 20 20 20 74 65 6c 6e 65 74 2d 72 65 6d 6f 74 65 2d 65 63 68 6f 65 73 29 0a 09   ┆t)       telnet-remote-echoes)  ┆
0x1020…1040 28 64 65 6c 65 74 65 2d 72 65 67 69 6f 6e 20 6c 61 73 74 2d 69 6e 70 75 74 2d 73 74 61 72 74 20   ┆(delete-region last-input-start ┆
0x1040…1060 6c 61 73 74 2d 69 6e 70 75 74 2d 65 6e 64 29 29 29 0a 20 20 28 69 66 20 28 65 71 20 28 70 72 6f   ┆last-input-end)))   (if (eq (pro┆
0x1060…1080 63 65 73 73 2d 62 75 66 66 65 72 20 70 72 6f 63 29 0a 09 20 20 28 63 75 72 72 65 6e 74 2d 62 75   ┆cess-buffer proc)    (current-bu┆
0x1080…10a0 66 66 65 72 29 29 0a 20 20 20 20 20 20 28 67 6f 74 6f 2d 63 68 61 72 20 28 70 6f 69 6e 74 2d 6d   ┆ffer))       (goto-char (point-m┆
0x10a0…10c0 61 78 29 29 29 29 0a 0a 28 64 65 66 75 6e 20 64 65 6c 65 74 65 2d 63 68 61 72 2d 6f 72 2d 73 65   ┆ax))))  (defun delete-char-or-se┆
0x10c0…10e0 6e 64 2d 65 6f 66 20 28 61 72 67 20 6b 69 6c 6c 70 29 0a 20 20 22 41 74 20 65 6e 64 20 6f 66 20   ┆nd-eof (arg killp)   "At end of ┆
0x10e0…1100 62 75 66 66 65 72 2c 20 73 65 6e 64 20 65 6f 66 20 74 6f 20 73 75 62 73 68 65 6c 6c 2e 20 20 4f   ┆buffer, send eof to subshell.  O┆
0x1100…1120 74 68 65 72 77 69 73 65 20 64 65 6c 65 74 65 20 63 68 61 72 61 63 74 65 72 2e 22 0a 20 20 28 69   ┆therwise delete character."   (i┆
0x1120…1140 6e 74 65 72 61 63 74 69 76 65 20 22 70 5c 6e 50 22 29 0a 20 20 28 69 66 20 28 61 6e 64 20 28 65   ┆nteractive "p\nP")   (if (and (e┆
0x1140…1160 6f 62 70 29 20 28 6e 6f 74 20 6b 69 6c 6c 70 29 29 0a 20 20 20 20 20 20 28 70 72 6f 63 65 73 73   ┆obp) (not killp))       (process┆
0x1160…1180 2d 73 65 6e 64 2d 65 6f 66 29 0a 20 20 20 20 28 64 65 6c 65 74 65 2d 63 68 61 72 20 61 72 67 20   ┆-send-eof)     (delete-char arg ┆
0x1180…11a0 6b 69 6c 6c 70 29 29 29 0a 0a 28 64 65 66 75 6e 20 74 65 6c 6e 65 74 2d 73 65 6e 64 2d 69 6e 70   ┆killp)))  (defun telnet-send-inp┆
0x11a0…11c0 75 74 20 28 29 0a 20 20 22 53 65 6e 64 20 69 6e 70 75 74 20 74 6f 20 72 65 6d 6f 74 65 20 68 6f   ┆ut ()   "Send input to remote ho┆
0x11c0…11e0 73 74 0a 41 74 20 65 6e 64 20 6f 66 20 62 75 66 66 65 72 2c 20 73 65 6e 64 73 20 61 6c 6c 20 74   ┆st At end of buffer, sends all t┆
0x11e0…1200 65 78 74 20 61 66 74 65 72 20 6c 61 73 74 20 6f 75 74 70 75 74 0a 61 73 20 69 6e 70 75 74 20 74   ┆ext after last output as input t┆
0x1200…1220 6f 20 74 68 65 20 74 65 6c 6e 65 74 2c 20 69 6e 63 6c 75 64 69 6e 67 20 61 20 74 65 6c 6e 65 74   ┆o the telnet, including a telnet┆
0x1220…1240 2d 6e 65 77 2d 6c 69 6e 65 20 69 6e 73 65 72 74 65 64 20 61 74 20 74 68 65 20 65 6e 64 2e 0a 4e   ┆-new-line inserted at the end. N┆
0x1240…1260 6f 74 20 61 74 20 65 6e 64 2c 20 63 6f 70 69 65 73 20 63 75 72 72 65 6e 74 20 6c 69 6e 65 20 74   ┆ot at end, copies current line t┆
0x1260…1280 6f 20 74 68 65 20 65 6e 64 20 6f 66 20 74 68 65 20 62 75 66 66 65 72 20 61 6e 64 20 73 65 6e 64   ┆o the end of the buffer and send┆
0x1280…12a0 73 20 69 74 2c 0a 61 66 74 65 72 20 66 69 72 73 74 20 61 74 74 65 6d 70 74 69 6e 67 20 74 6f 20   ┆s it, after first attempting to ┆
0x12a0…12c0 64 69 73 63 61 72 64 20 61 6e 79 20 70 72 6f 6d 70 74 20 61 74 20 74 68 65 20 62 65 67 69 6e 6e   ┆discard any prompt at the beginn┆
0x12c0…12e0 69 6e 67 20 6f 66 20 74 68 65 20 6c 69 6e 65 0a 62 79 20 6d 61 74 63 68 69 6e 67 20 74 68 65 20   ┆ing of the line by matching the ┆
0x12e0…1300 72 65 67 65 78 70 20 74 68 61 74 20 69 73 20 74 68 65 20 76 61 6c 75 65 20 6f 66 20 74 65 6c 6e   ┆regexp that is the value of teln┆
0x1300…1320 65 74 2d 70 72 6f 6d 70 74 2d 70 61 74 74 65 72 6e 20 69 66 20 70 6f 73 73 69 62 6c 65 2e 22 0a   ┆et-prompt-pattern if possible." ┆
0x1320…1340 20 28 69 6e 74 65 72 61 63 74 69 76 65 29 0a 20 28 6c 65 74 20 28 63 6f 70 69 65 64 29 0a 20 20   ┆ (interactive)  (let (copied)   ┆
0x1340…1360 28 65 6e 64 2d 6f 66 2d 6c 69 6e 65 29 0a 20 20 28 69 66 20 28 65 6f 62 70 29 0a 20 20 20 20 20   ┆(end-of-line)   (if (eobp)      ┆
0x1360…1380 20 28 70 72 6f 67 6e 0a 09 28 6d 6f 76 65 2d 6d 61 72 6b 65 72 20 6c 61 73 74 2d 69 6e 70 75 74   ┆ (progn  (move-marker last-input┆
0x1380…13a0 2d 73 74 61 72 74 0a 09 09 20 20 20 20 20 28 70 72 6f 63 65 73 73 2d 6d 61 72 6b 20 28 67 65 74   ┆-start        (process-mark (get┆
0x13a0…13c0 2d 62 75 66 66 65 72 2d 70 72 6f 63 65 73 73 20 28 63 75 72 72 65 6e 74 2d 62 75 66 66 65 72 29   ┆-buffer-process (current-buffer)┆
0x13c0…13e0 29 29 29 0a 09 28 6d 6f 76 65 2d 6d 61 72 6b 65 72 20 6c 61 73 74 2d 69 6e 70 75 74 2d 65 6e 64   ┆)))  (move-marker last-input-end┆
0x13e0…1400 20 28 70 6f 69 6e 74 29 29 29 0a 20 20 20 20 28 62 65 67 69 6e 6e 69 6e 67 2d 6f 66 2d 6c 69 6e   ┆ (point)))     (beginning-of-lin┆
0x1400…1420 65 29 0a 20 20 20 20 28 72 65 2d 73 65 61 72 63 68 2d 66 6f 72 77 61 72 64 20 74 65 6c 6e 65 74   ┆e)     (re-search-forward telnet┆
0x1420…1440 2d 70 72 6f 6d 70 74 2d 70 61 74 74 65 72 6e 20 6e 69 6c 20 74 29 0a 20 20 20 20 28 6c 65 74 20   ┆-prompt-pattern nil t)     (let ┆
0x1440…1460 28 28 63 6f 70 79 20 28 62 75 66 66 65 72 2d 73 75 62 73 74 72 69 6e 67 20 28 70 6f 69 6e 74 29   ┆((copy (buffer-substring (point)┆
0x1460…1480 0a 09 09 09 09 20 20 28 70 72 6f 67 6e 20 28 66 6f 72 77 61 72 64 2d 6c 69 6e 65 20 31 29 20 28   ┆       (progn (forward-line 1) (┆
0x1480…14a0 70 6f 69 6e 74 29 29 29 29 29 0a 20 20 20 20 20 20 28 67 6f 74 6f 2d 63 68 61 72 20 28 70 6f 69   ┆point)))))       (goto-char (poi┆
0x14a0…14c0 6e 74 2d 6d 61 78 29 29 0a 20 20 20 20 20 20 28 6d 6f 76 65 2d 6d 61 72 6b 65 72 20 6c 61 73 74   ┆nt-max))       (move-marker last┆
0x14c0…14e0 2d 69 6e 70 75 74 2d 73 74 61 72 74 20 28 70 6f 69 6e 74 29 29 0a 20 20 20 20 20 20 28 69 6e 73   ┆-input-start (point))       (ins┆
0x14e0…1500 65 72 74 20 63 6f 70 79 29 20 28 73 65 74 71 20 63 6f 70 69 65 64 20 74 29 0a 20 20 20 20 20 20   ┆ert copy) (setq copied t)       ┆
0x1500…1520 28 6d 6f 76 65 2d 6d 61 72 6b 65 72 20 6c 61 73 74 2d 69 6e 70 75 74 2d 65 6e 64 20 28 70 6f 69   ┆(move-marker last-input-end (poi┆
0x1520…1540 6e 74 29 29 29 29 0a 20 20 28 73 61 76 65 2d 65 78 63 75 72 73 69 6f 6e 0a 20 20 20 20 28 67 6f   ┆nt))))   (save-excursion     (go┆
0x1540…1560 74 6f 2d 63 68 61 72 20 6c 61 73 74 2d 69 6e 70 75 74 2d 73 74 61 72 74 29 0a 20 20 20 20 28 6c   ┆to-char last-input-start)     (l┆
0x1560…1580 65 74 20 28 28 70 72 6f 63 65 73 73 20 28 67 65 74 2d 62 75 66 66 65 72 2d 70 72 6f 63 65 73 73   ┆et ((process (get-buffer-process┆
0x1580…15a0 20 28 63 75 72 72 65 6e 74 2d 62 75 66 66 65 72 29 29 29 29 0a 20 20 20 20 20 20 28 73 65 6e 64   ┆ (current-buffer))))       (send┆
0x15a0…15c0 2d 72 65 67 69 6f 6e 20 70 72 6f 63 65 73 73 20 6c 61 73 74 2d 69 6e 70 75 74 2d 73 74 61 72 74   ┆-region process last-input-start┆
0x15c0…15e0 20 6c 61 73 74 2d 69 6e 70 75 74 2d 65 6e 64 29 0a 20 20 20 20 20 20 28 69 66 20 28 6e 6f 74 20   ┆ last-input-end)       (if (not ┆
0x15e0…1600 63 6f 70 69 65 64 29 20 28 73 65 6e 64 2d 73 74 72 69 6e 67 20 70 72 6f 63 65 73 73 20 74 65 6c   ┆copied) (send-string process tel┆
0x1600…1620 6e 65 74 2d 6e 65 77 2d 6c 69 6e 65 29 29 0a 20 20 20 20 20 20 28 73 65 74 2d 6d 61 72 6b 65 72   ┆net-new-line))       (set-marker┆
0x1620…1640 20 28 70 72 6f 63 65 73 73 2d 6d 61 72 6b 20 70 72 6f 63 65 73 73 29 20 28 70 6f 69 6e 74 29 29   ┆ (process-mark process) (point))┆
0x1640…1660 29 29 29 29 0a 0a 28 64 65 66 75 6e 20 74 65 6c 6e 65 74 20 28 61 72 67 29 0a 20 20 22 4f 70 65   ┆))))  (defun telnet (arg)   "Ope┆
0x1660…1680 6e 20 61 20 6e 65 74 77 6f 72 6b 20 6c 6f 67 69 6e 20 63 6f 6e 6e 65 63 74 69 6f 6e 20 74 6f 20   ┆n a network login connection to ┆
0x1680…16a0 68 6f 73 74 20 6e 61 6d 65 64 20 48 4f 53 54 20 28 61 20 73 74 72 69 6e 67 29 2e 0a 43 6f 6d 6d   ┆host named HOST (a string). Comm┆
0x16a0…16c0 75 6e 69 63 61 74 69 6f 6e 20 77 69 74 68 20 48 4f 53 54 20 69 73 20 72 65 63 6f 72 64 65 64 20   ┆unication with HOST is recorded ┆
0x16c0…16e0 69 6e 20 61 20 62 75 66 66 65 72 20 2a 48 4f 53 54 2d 74 65 6c 6e 65 74 2a 2e 0a 4e 6f 72 6d 61   ┆in a buffer *HOST-telnet*. Norma┆
0x16e0…1700 6c 6c 79 20 69 6e 70 75 74 20 69 73 20 65 64 69 74 65 64 20 69 6e 20 45 6d 61 63 73 20 61 6e 64   ┆lly input is edited in Emacs and┆
0x1700…1720 20 73 65 6e 74 20 61 20 6c 69 6e 65 20 61 74 20 61 20 74 69 6d 65 2e 22 0a 20 20 28 69 6e 74 65   ┆ sent a line at a time."   (inte┆
0x1720…1740 72 61 63 74 69 76 65 20 22 73 4f 70 65 6e 20 74 65 6c 6e 65 74 20 63 6f 6e 6e 65 63 74 69 6f 6e   ┆ractive "sOpen telnet connection┆
0x1740…1760 20 74 6f 20 68 6f 73 74 3a 20 22 29 0a 20 20 28 72 65 71 75 69 72 65 20 27 73 68 65 6c 6c 29 0a   ┆ to host: ")   (require 'shell) ┆
0x1760…1780 20 20 28 6c 65 74 20 28 28 6e 61 6d 65 20 28 63 6f 6e 63 61 74 20 61 72 67 20 22 2d 74 65 6c 6e   ┆  (let ((name (concat arg "-teln┆
0x1780…17a0 65 74 22 20 29 29 29 0a 20 20 20 20 28 73 77 69 74 63 68 2d 74 6f 2d 62 75 66 66 65 72 20 28 6d   ┆et" )))     (switch-to-buffer (m┆
0x17a0…17c0 61 6b 65 2d 73 68 65 6c 6c 20 6e 61 6d 65 20 22 74 65 6c 6e 65 74 22 29 29 0a 20 20 20 20 28 73   ┆ake-shell name "telnet"))     (s┆
0x17c0…17e0 65 74 2d 70 72 6f 63 65 73 73 2d 66 69 6c 74 65 72 20 28 67 65 74 2d 70 72 6f 63 65 73 73 20 6e   ┆et-process-filter (get-process n┆
0x17e0…1800 61 6d 65 29 20 27 74 65 6c 6e 65 74 2d 69 6e 69 74 69 61 6c 2d 66 69 6c 74 65 72 29 0a 20 20 20   ┆ame) 'telnet-initial-filter)    ┆
0x1800…1820 20 28 65 72 61 73 65 2d 62 75 66 66 65 72 29 0a 20 20 20 20 28 73 65 6e 64 2d 73 74 72 69 6e 67   ┆ (erase-buffer)     (send-string┆
0x1820…1840 20 20 6e 61 6d 65 20 28 63 6f 6e 63 61 74 20 22 6f 70 65 6e 20 22 20 61 72 67 20 22 5c 6e 22 29   ┆  name (concat "open " arg "\n")┆
0x1840…1860 29 0a 20 20 20 20 28 74 65 6c 6e 65 74 2d 6d 6f 64 65 29 0a 20 20 20 20 28 73 65 74 71 20 74 65   ┆)     (telnet-mode)     (setq te┆
0x1860…1880 6c 6e 65 74 2d 63 6f 75 6e 74 20 2d 31 36 29 29 29 0a 0a 28 64 65 66 75 6e 20 72 65 61 64 2d 70   ┆lnet-count -16)))  (defun read-p┆
0x1880…18a0 61 73 73 77 6f 72 64 20 28 29 0a 20 20 28 6c 65 74 20 28 28 61 6e 73 77 20 22 22 29 20 74 65 6d   ┆assword ()   (let ((answ "") tem┆
0x18a0…18c0 29 0a 20 20 20 20 28 77 68 69 6c 65 20 28 6e 6f 74 20 28 3d 20 28 73 65 74 71 20 74 65 6d 20 28   ┆)     (while (not (= (setq tem (┆
0x18c0…18e0 72 65 61 64 2d 63 68 61 72 29 29 20 3f 5c 5e 6d 29 29 0a 20 20 20 20 20 20 28 73 65 74 71 20 61   ┆read-char)) ?\^m))       (setq a┆
0x18e0…1900 6e 73 77 20 28 63 6f 6e 63 61 74 20 61 6e 73 77 20 28 63 68 61 72 2d 74 6f 2d 73 74 72 69 6e 67   ┆nsw (concat answ (char-to-string┆
0x1900…1920 20 74 65 6d 29 29 29 29 0a 20 20 20 20 61 6e 73 77 29 29 0a 0a 28 64 65 66 75 6e 20 74 65 6c 6e   ┆ tem))))     answ))  (defun teln┆
[…truncated at 200 lines…]