wpunix
wpunix copied to clipboard
terminal is left in a strange state when wp exits
I've noticed glitches after exiting wp that cause my terminal to not function correctly. I have to type reset
and to get it back to normal. I'd prefer to not have to do that as it clears the screen and I can't see what I was just working on in wp.¹
The bugs I've noticed so far:
- Long lines are truncated when they go past the right margin; they should wrap to the next row. Wp disables autowrap mode at the end of a line (DECAWM) but forgets to reenable it. This is fixable by typing
tput smam
which sendsEsc [ ? 7 h
. (Seeman 5 terminfo
for info on automargins). - The screen does not always update on certain actions until I hit a key. I haven't tracked this one down yet.
¹ I have alternate screens disabled in xterm via titeInhibit and tiXtraScroll, so wordperfect does not clear the screen when I exit.