Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
more: Read keystrokes from stdout instead of trying to re-open it
If we're running more on a TTY that we don't have filesystem access to, we can't rely on open(ttyname(STDOUT_FILENO)). Since all the stdio fd's are opened read/write anyway, we can just read from stdout, even if it feels a bit weird. :^)
- Loading branch information