You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(* if we press `q` or the escape key, we exit *)|Event.KeyDown ((Key"q" | Escape), _modifier) ->
( { model with exit =true },
Command.(Seq [ Exit_alt_screen; Show_cursor; Quit ]) )
However, if exit with Ctrl+C, then I'm still stuck in an alt screen with a hidden cursor.
I tried to exit gracefully myself by installing a signal handler like this:
This handles the signal but for some reason breaks my terminal completely (can't type anything, can't run anything).
I assume that Mint Tea wants to do some other clean up that I'm missing, so it would be really nice if this clean up functionality was exposed or if Mint Tea provided a way to configure graceful shutdown handlers.
The text was updated successfully, but these errors were encountered:
When starting a Mint Tea app, I enter the alt screen and hide the cursor like this:
When exiting, I restore their behaviour:
However, if exit with Ctrl+C, then I'm still stuck in an alt screen with a hidden cursor.
I tried to exit gracefully myself by installing a signal handler like this:
This handles the signal but for some reason breaks my terminal completely (can't type anything, can't run anything).
I assume that Mint Tea wants to do some other clean up that I'm missing, so it would be really nice if this clean up functionality was exposed or if Mint Tea provided a way to configure graceful shutdown handlers.
The text was updated successfully, but these errors were encountered: