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)
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)