UI: properly reset terminal settings after every message (fixes #45)