All PRs
Bugfix: adds a panic hook to git-igitt project.
Git is an amazing tool. It is fast and lets you review the history of your repository to find important moments in time. But I always missed a good open source visual tool to see my commits.
When I learned about Go & Rust and saw some awesome TUI programs written in those languages, I asked myself: “Is there any TUI tool to view my commits”?
After surfing the web, I discovered git-igitt (written in Rust) and I liked it very much. But it had a problem: if an error appears, the application panicked and the terminal becomes a mess. Because it uses the tui
library, which creates a virtual terminal to let the developer have better control about what happens in the terminal used by the app. The problem is if the application crashes, the virtual terminal will not close properly, and you won’t be able to use that terminal window unless you execute the reset
command on the bash shell.
This article’s PR addresses the issue and fixes it by setting a panic hook that resets the terminal each time the application crashes