If the TUI process is forcibly terminated then we're unable to restore the terminal to its original state.
This leads to the terminal being potentially borked, to prevent this like ncurses does, we should add handlers that clean up everything before exiting
using core:sys/posix and core:sys/windows.
If the TUI process is forcibly terminated then we're unable to restore the terminal to its original state.
This leads to the terminal being potentially borked, to prevent this like ncurses does, we should add handlers that clean up everything before exiting
using
core:sys/posixandcore:sys/windows.