I am drawing a TUI using ncurses. The trouble is that whenever my program gets seg-fault, my terminal is left in mess. I can not see what I am typing. Its a pain since I am
The command
reset
also worked for me on Ubuntu, probably overkill though. What worked best was setting an alias like:
alias 'clean'='stty sane;clear;'
in my .bash_aliases as I found myself needing to do this alot in debugging.