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

less / more not working #8

Closed
lmorg opened this issue Jul 8, 2017 · 1 comment
Closed

less / more not working #8

lmorg opened this issue Jul 8, 2017 · 1 comment

Comments

@lmorg
Copy link
Owner

lmorg commented Jul 8, 2017

I don't think this issue is related to PTYs but I will need to do more research on the issue but in the meantime if anyone has any insights as to how terminal pagers work then I would welcome the feedback.

@lmorg
Copy link
Owner Author

lmorg commented Sep 28, 2017

Turns out it was a really easy fix due to some unrelated clean up of code I did a while back:

if p.Stdout.IsTTY() {
	cmd.Stdout = os.Stdout
} else {
	cmd.Stdout = p.Stdout
}

@lmorg lmorg closed this as completed Sep 28, 2017
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