diff options
author | Michael Gattozzi <mgattozzi@gmail.com> | 2020-01-05 23:10:49 -0500 |
---|---|---|
committer | Michael Gattozzi <mgattozzi@gmail.com> | 2020-01-05 23:10:49 -0500 |
commit | 03238ddf40330db173b00439139e6e74958b7eb1 (patch) | |
tree | 232b66befa09878b3762949bc88e2ecb19fd6d43 /.dev-suite/ticket/closed | |
parent | c8e11a8f9817bc780cb5858a946e5845788badd5 (diff) |
Create a panic handler for ticket tui
In ticket 9b344c00-2e3d-11ea-bc2d-b4e1317c6ecc 'Create a panic handler
for ticket tui' it became clear that ticket needed it's own way to
handle panics since crashing the tui without cleaning up after itself
leaves the terminal in a completely garbled state. This commit now
has the tui clean up properly after itself then run the normal hook
which means it panics like any other Rust program and can get a
backtrace with the panic as usual with RUST_BACKTRACE=1
Diffstat (limited to '.dev-suite/ticket/closed')
-rw-r--r-- | .dev-suite/ticket/closed/create-a-panic-handler-for-ticket-tui.toml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/.dev-suite/ticket/closed/create-a-panic-handler-for-ticket-tui.toml b/.dev-suite/ticket/closed/create-a-panic-handler-for-ticket-tui.toml new file mode 100644 index 0000000..9847148 --- /dev/null +++ b/.dev-suite/ticket/closed/create-a-panic-handler-for-ticket-tui.toml @@ -0,0 +1,17 @@ +title = 'Create a panic handler for ticket tui' +status = 'Closed' +id = '9b344c00-2e3d-11ea-bc2d-b4e1317c6ecc' +assignees = [[ + '64c00ccc-761e-4484-86ac-904e461bb300', + 'Michael Gattozzi', +]] +description = ''' +When the ticket tui has a panic it garbles up the terminal and leaves it in an +awful state. This is because it never sets the terminal back to it's previous +state like it can when it fails gracefully. When the tui is run it should have +a custom panic handler to reset the terminal to it's proper state, then continue +with it's normal unwinding behavior. +''' +version = 'V1' + +[comments] |