bhutch29 / abv

Bar inventory tracking system
MIT License
6 stars 2 forks source link

Saving the terminal's state at the startup of ABV so that we can later restore to it after a panic #111

Closed ryanavella closed 5 years ago

ryanavella commented 5 years ago

Saving the terminal's state at the startup of ABV so that we can later restore to it after a panic. So if gocui forgets to restore from raw mode to terminal mode (which seems to be the case during some specific gocui-related panics), this will restore the mode regardless.

This should close #12 once it is merged into develop. I should note that I have not been able to reproduce issue #12 for a while, but this provides extra reassurance that we can always restore terminal mode regardless of where a panic originates (i.e. protecting against panics happening deep down in our gocui dependency)