Saltar al contenido

~ / windows / how-to-fix-cygwin-warning-input-is-not-from-a-terminal

How to fix Cygwin Warning: Input is not from a terminal

windows · 1 min · windows

If you are experiencing this messages:

vim
cygwin Warning: Input is not from a terminal
cygwin Warning: Output is not from a terminal

Using GIT or just vim only, here’s a couple of things you can try:

If you get those errors using vim only maybe you want to try bash instead mintty. This is usually the default value in cygwin’s shortcut properties:

código
C:\cygwin\bin\mintty.exe -i /Cygwin-Terminal.ico -

Change it for:

código
C:\cygwin\bin\bash.exe --login -i

If you experience the problem when using GIT and there’s a warning about vim then just open a terminal and execute this:

código
git config --global core.editor "C:/cygwin/bin/vim.exe"

Be careful with paths if you’re using the 32 or 64 version:

código
C:/cygwin/bin/vim.exe
C:/cygwin64/bin/vim.exe

That’s it, enjoy vim 🙂

Dejá un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *