Function: telnet-mode
telnet-mode is an interactive and byte-compiled function defined in
telnet.el.gz.
Signature
(telnet-mode)
Documentation
This mode is for using telnet from a buffer to another host.
It has most of the same commands as comint-mode.
There is a variable telnet-interrupt-string which is the character
sent to try to stop execution of a job on the remote host.
Data is sent to the remote host when RET is typed.
In addition to any hooks its parent mode might have run, this mode
runs the hook telnet-mode-hook, as the final or penultimate step
during initialization.
<delete> delete-forward-char
<kp-delete> delete-forward-char
<mouse-2> comint-insert-input
C-<down> comint-next-input
C-<up> comint-previous-input
C-M-l comint-show-output
C-c . comint-insert-previous-argument
C-c C-\ comint-quit-subjob
C-c C-a comint-bol-or-process-mark
C-c C-c comint-interrupt-subjob
C-c C-c telnet-interrupt-subjob
C-c C-d comint-send-eof
C-c C-e comint-show-maximum-output
C-c C-l comint-dynamic-list-input-ring
C-c C-n comint-next-prompt
C-c C-o comint-delete-output
C-c C-p comint-previous-prompt
C-c C-q send-process-next-char
C-c C-r comint-show-output
C-c C-s comint-write-output
C-c C-u comint-kill-input
C-c C-w backward-kill-word
C-c C-x comint-get-next-from-history
C-c C-z comint-stop-subjob
C-c C-z telnet-c-z
C-c M-o comint-clear-buffer
C-c M-r comint-previous-matching-input-from-input
C-c M-s comint-next-matching-input-from-input
C-c RET comint-copy-old-input
C-c SPC comint-accumulate
C-d comint-delchar-or-maybe-eof
M-n comint-next-input
M-p comint-previous-input
M-r comint-history-isearch-backward-regexp
RET comint-send-input
RET telnet-send-input
Probably introduced at or before Emacs version 27.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/net/telnet.el.gz
(define-derived-mode telnet-mode comint-mode "Telnet"
"This mode is for using telnet from a buffer to another host.
It has most of the same commands as `comint-mode'.
There is a variable `telnet-interrupt-string' which is the character
sent to try to stop execution of a job on the remote host.
Data is sent to the remote host when RET is typed."
(setq-local revert-buffer-function 'telnet-revert-buffer)
(setq-local window-point-insertion-type t)
(setq-local comint-prompt-regexp telnet-prompt-pattern)
(setq-local comint-use-prompt-regexp t))