【问题标题】:How can I issue a telnet command in emacs telnet mode?如何在 emacs telnet 模式下发出 telnet 命令?
【发布时间】:2012-06-02 00:07:30
【问题描述】:

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

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

【问题讨论】:

    标签: emacs telnet


    【解决方案1】:

    通过 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-]

    【讨论】:

      猜你喜欢
      • 2012-11-05
      • 2015-03-05
      • 2018-12-13
      • 2019-11-06
      • 2015-12-16
      • 1970-01-01
      • 2014-01-30
      • 2017-04-13
      • 2015-02-19
      相关资源
      最近更新 更多