emacs - 如何在 emacs telnet 模式下发出 telnet 命令?

标签 emacs telnet

我需要发出 telnet close 命令,通常,^] (Ctrl-]) 应该可以工作。(找不到任何 emacs 特定的 telnet 文档)

当我在 emacs 中使用 M-x telnet 连接时,如何获得 telnet> 提示符?

最佳答案

通过M-x查看库注释 find-library RET telnet RET 显示以下内容:

;; Normally, input is sent to the remote telnet/rsh line-by-line, as you
;; type RET or LFD.  C-c C-c sends a C-c to the remote immediately;
;; C-c C-z sends C-z immediately.  C-c C-q followed by any character
;; sends that character immediately.

因此您可以使用以下方式发送转义字符:

C-cC-qC-]

关于emacs - 如何在 emacs telnet 模式下发出 telnet 命令?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10852616/

相关文章:

vim - Emacs 和 Vim 的区别

emacs - Emacs Lisp 和 Common Lisp 之间的主要区别是什么?

android - 强制关闭 TCP/IP (Telnet) 连接

bash - 使用 shell 脚本将来自 telnet 的 SMTP session 保存在日志中

c - 在 Emacs 中缩进 C block 注释

emacs - "script name symbol"对emacs set-fontset-font函数意味着什么?

Emacs:使用数字键盘为命令参数添加前缀

安卓模拟器 : Telnet does not show the Sensor feature in my Android Studio version (2. 2.1)

android - 无法使用telnet localhost 5554连接安卓模拟器

java - 使用纯 Java 与 SSH 服务器通信以进行文件访问