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

Issue when using emacs eshell ($TERM dumb) #95

Open
babusri opened this issue Jan 15, 2020 · 2 comments
Open

Issue when using emacs eshell ($TERM dumb) #95

babusri opened this issue Jan 15, 2020 · 2 comments
Labels

Comments

@babusri
Copy link

babusri commented Jan 15, 2020

Environment

  • OS: MacOS
  • age version: Built from source

What were you trying to do

In an emacs eshell, I typed

./age -p LICENSE > out.age

What happened

There was no prompt for password. No errors.
When I opened out.age, it reads
Error: refusing to output binary to the terminal.
Did you mean to use -a/--armor? Force with "-o -".
[ Did age not do what you expected? Could an error be more useful? Tell us: https://filippo.io/age/report ]

echo $TERM
dumb

Note: emacs has 2 shells.
ESC-x shell and ESC-x eshell

I don't see this problem on shell, only on eshell, if that helps.

<insert terminal transcript here>

@benjojo
Copy link

benjojo commented Jan 19, 2020

This would be a issue in: https://godoc.org/golang.org/x/crypto/ssh/terminal#IsTerminal I strongly suspect

@polynomialspace
Copy link

It looks like IsTerminal reports correctly; tty(1) reports not a tty from emacs' eshell.

eshell does not "communicate with a terminal like most command shells", other commands that depend on tty functions may also fail but some workarounds have been made.

Additionally, redirection via > in eshell behaves differently, which is what's causing the error to be written to the file.

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

No branches or pull requests

4 participants