Fix the age old problem of TTY cursor being reset on exit