/termfix

Terminal fixer based on https://gist.github.com/joerick/9e2d244f456c2431619e7063eda62e1d, see also https://unix.stackexchange.com/questions/401023/linux-framebuffer-not-reverting-to-text-console-when-netsurf-crashes

Primary LanguageC

termfix

Ever found yourself with a broken terminal after an SDL framebuffer app crashes?

This small application can be run after any SDL framebuffer app to at least leave the console in a position where you can interact with it enough to run commands (probably at least a reset).

Fix a broken terminal:

termfix [/dev/tty]

It may require some experimentation to find the correct terminal to use.

Suggestions and improvements welcome!