Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hackerb9 opened this issue Apr 11, 2024 · 2 comments
Open

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

hackerb9 opened this issue Apr 11, 2024 · 2 comments

Comments

@hackerb9
Copy link

hackerb9 commented Apr 11, 2024

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.
@taviso
Copy link
Owner

taviso commented Apr 12, 2024

I'll take a look, but if you don't want to wait for me, you can actually update the sequences interactively, the wpterm command let's you edit the trs files (it's not great, but it does work).

@taviso
Copy link
Owner

taviso commented Apr 12, 2024

I think I might have added the alternate screen support and called it done, I didn't realize anyone disabled that 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants