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

Support piping into a terminal instance of Emacs #2

Merged
merged 1 commit into from Apr 25, 2017

Conversation

2 participants
@iqbalansari
Contributor

iqbalansari commented Apr 25, 2017

This pull request redirects /dev/tty to Emacs' stdin, so the "input is not tty" error does not happen when using a terminal instance of Emacs. For some reason the redirection does not work if Emacs is invoked directly (as opposed to execing it like this pull request does).

I am always redirecting the tty to Emacs even if the GUI mode is used. From my limited testing, this seems to work without any issues.

Thanks

@kaushalmodi

This comment has been minimized.

Owner

kaushalmodi commented Apr 25, 2017

Thanks! This looks great!

@kaushalmodi kaushalmodi merged commit abfe22c into kaushalmodi:master Apr 25, 2017

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details

kaushalmodi added a commit that referenced this pull request Apr 25, 2017

Update README
Thanks to Iqbal Ansari for adding support for reading piped data in `emacs -Q
-nw`.

https://www.reddit.com/r/emacs/comments/67aiv4/a_better_less_using_emacs_viewmode_as_substitute/dgqkj1q/

#2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment