Skip to content

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

Closed
imander wants to merge 1 commit into
c-bata:masterfrom
imander:broken-prompt
Closed

imander wants to merge 1 commit into
c-bata:masterfrom
imander:broken-prompt

Conversation

@imander

@imander imander commented Oct 4, 2021

Copy link
Copy Markdown

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

imander commented Oct 4, 2021

Copy link
Copy Markdown
Author

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