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

Strange behaviour on exit #7

Open
michaelmior opened this issue Jun 25, 2015 · 5 comments
Open

Strange behaviour on exit #7

michaelmior opened this issue Jun 25, 2015 · 5 comments

Comments

@michaelmior
Copy link

After exiting a program using multibar, I get ;1R entered into my shell prompt and some control characters (e.g. Control+C) stop working until I reset my terminal. Not sure what's going on here.

@jamra
Copy link

jamra commented Jan 26, 2017

I have the same issue. In general, ctrl+c does not work consistently. I either get weird characters, repeated prints of strings, or just plain freezing.

@sethgrid
Copy link
Owner

sethgrid commented Jan 27, 2017 via email

@michaelmior
Copy link
Author

Unfortunately I'm not currently using multibar and I won't have the time to look at this in the near future. Thanks for the response though! If I do have a chance to get back to this, I will update.

@infgeoax
Copy link

Same issue here. I think you can also restore the terminal using the following command after app exits:

stty sane

After reading the code, I am a little bit confused by how multibar interacts with curse and curse interacts with terminal. E.g. Multibar will create a new Cursor instance whenever it needs to do something, and I think curse is doing something similar. And I don't see Restore/Close called on application exit.

IMHO there should be only one Cursor+Term instance per application, and we properly restore the terminal after application exits.

@daniel-hutao
Copy link

Same issue here

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

5 participants