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

Bug fix: Ensure original terminal state is not overwritten #244

Closed
wants to merge 1 commit into from

Conversation

imander
Copy link

@imander imander commented Oct 4, 2021

This should fix #233

It appears that returning a pointer from getOriginalTermios was causing subsequent calls to termios.Tcsetattr to overwrite the original terminal state and breaking control character sequences when the program exited. Returning a copy of saveTermios seems to fix this problem.

@imander
Copy link
Author

imander commented Oct 4, 2021

Sorry, just realized this is a duplicate of #239

@imander imander closed this Oct 4, 2021
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

Successfully merging this pull request may close these issues.

[Bug] After exiting the program, ctrl+c is invalid
1 participant