Skip to content

terminal is left in a strange state when wp exits #49

@hackerb9

Description

@hackerb9

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions