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

Unix broken raw TTY if the input you feed is not comming from a TTY #24

Open
dzervas opened this issue Apr 10, 2019 · 2 comments
Open

Comments

@dzervas
Copy link

dzervas commented Apr 10, 2019

When I run "sh -i" and am in raw mode in the tty, I get broken output:
image
If I create an additional tty, spawn sh in it and redirect its output to my tty, it works.

For more check this

The solution was to comment out termios.Oflag &^= unix.OPOST in tty_unix.

@mattn
Copy link
Owner

mattn commented Apr 10, 2019

The solution was to comment out termios.Oflag &^= unix.OPOST in tty_unix.

Just for raw mode?

@dzervas
Copy link
Author

dzervas commented Apr 10, 2019

Yes!

tte added a commit to voices-team/go-tty that referenced this issue Jan 24, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
see mattn#24
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

2 participants