【问题标题】:emacs: standard input is not a ttyemacs:标准输入不是 tty
【发布时间】:2020-10-28 00:33:48
【问题描述】:

我想在 git bash 中使用 emacs,但是当我运行时:

emacs -nw 文件.c

它给了我一些错误说:

emacs:标准输入不是 tty

但是,当我运行相同的命令在 cmd(Windows 终端)中打开文件时,它工作正常

【问题讨论】:

    标签: windows emacs git-bash


    【解决方案1】:

    考虑到emacs.exe(Windows 原生)会与控制台 TTY 而不是 mingW tty 对话,您可以尝试:

    winpty emacs  -nw file.c
    

    这将与您的 git bash 会话兼容。

    【讨论】:

      猜你喜欢
      • 2012-12-16
      • 1970-01-01
      • 1970-01-01
      • 2016-02-10
      • 1970-01-01
      • 2013-11-26
      • 2017-08-23
      • 2021-04-06
      相关资源
      最近更新 更多