try to make the various terminals sane