wpunix icon indicating copy to clipboard operation
wpunix copied to clipboard

terminal is left in a strange state when wp exits

Open hackerb9 opened this issue 10 months ago • 2 comments

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:

  1. 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 sends Esc [ ? 7 h. (See man 5 terminfo for info on automargins).
  2. 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.

hackerb9 avatar Apr 11 '24 16:04 hackerb9