den*_*nys 14 emacs cygwin mingw msys
我正在使用mintty + msys.我想用它来使用emacs.但没有GUI.
我在cygwin中看到了这种行为.但我无法理解他们是如何做到的.
$ emacs -nw
emacs: standard input is not a tty
$ stty.exe -a
speed 38400 baud; rows 24; columns 80; line = 0;
intr = ^C; quit = ^\; erase = ^H; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; swtch = ^Z; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;
werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff
-iuclc ixany imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -tostop echoctl echoke
$ echo $TERM
xterm
Run Code Online (Sandbox Code Playgroud)
你应该使用winpty:
winpty emacs -nw
Run Code Online (Sandbox Code Playgroud)
winpty是一个Windows软件包,提供类似于Unix pty-master的界面,用于与Windows控制台程序通信.该软件包包含一个库(libwinpty)和一个Cygwin和MSYS工具,用于在Cygwin/MSYS pty中运行Windows控制台程序.
你的案例中的Emacs实际上是"Windows控制台程序".
| 归档时间: |
|
| 查看次数: |
4666 次 |
| 最近记录: |