Commit Graph

1 Commits (a6b25a487786534205d818a76acb3989658ae58c)

Author SHA1 Message Date
♫ Christian Krause ♫ a6b25a4877
chore: add panic hook example (#593)
Without a terminal-resetting panic hook there are two main problems when
an application panics:

1.  The report of the panic is distorted because the terminal has not
    properly left the alternate screen and is still in raw mode.

2.  The terminal needs to be manually reset with the `reset` command.

To avoid this, the standard panic hook can be extended to first reset
the terminal.
2 years ago