altsem / gitu

A TUI Git client inspired by Magit
MIT License
1.7k stars 88 forks source link

Getting "Standard input is not a terminal" with nano #215

Open m0nhawk opened 1 month ago

m0nhawk commented 1 month ago

I am not sure how to configure this.

When EDITOR is configured to nano, gitu is failing to open tracked/untracked files:

$ nano changed_file.txt
! Couldn't open editor nano due to: exited with code: 1

And after exiting gitu:

Standard input is not a terminal

I was able to narrow it down to:

$ echo "echo" | nano
Standard input is not a terminal
$ echo "echo" | nano -
# nano editor

This is happening with GNU nano, version 8.0, but, for example, works with default "nano" (which is pico) in macOS: Pico 5.09.

Happening in both fish and zsh, so to me it looks like an issue with how gitu sends input to nano.