Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
m0nhawk opened this issue Jul 5, 2024 · 0 comments
Open

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

m0nhawk opened this issue Jul 5, 2024 · 0 comments

Comments

@m0nhawk
Copy link

m0nhawk commented Jul 5, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant