【发布时间】:2012-06-02 00:07:30
【问题描述】:
我需要发出 telnet close 命令,正常情况下,^] (Ctrl-]) 应该可以工作。(找不到任何特定于 emacs 的 telnet 文档)
当我在 emacs 中使用 M-x telnet 连接时,如何获得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-]
【讨论】: