I want to use emacs in git bash, but when I run:
emacs -nw file.c
It gives me some error saying:
emacs: standard input is not a tty
However When I run the same command to open a file in cmd(Windows Terminal) it works fine
Considering that emacs.exe
(Windows native) would talk to the console TTY, not mingW tty, you can try:
winpty emacs -nw file.c
That would be compatible with your git bash session.
As noted by daveloyall in the comments:
For msys2 users, install
winpty
first with:$ pacman -S msys/winpty
For Git for Windows users, winpty.exe is already there in C:\Program Files\Git\usr\bin
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With