On 04/03/2018 02:50 PM, Walter Dnes wrote:
Lately, I've noticed that text apps under xterm snap back to the original screen after the app finishes. This doesn't happen with all apps. When I hit "q" in "top", the output stays on the screen. But other apps like "mtr" and "vim" and "less" restore the screen from which they were launched, which is extremely annoying.

"mtr", "vim", and "less" all three use what Xterm calls the "Alternate Screen". You can see this while the programs are running by looking at the VT Options menu (Ctrl+Middle Click) and seeing that the "Show Alternate Screen" is checked.

"top" on the otherhand does not use the "Alternate Screen".

There may be a way to disable the "Alternate Screen", but I don't know for sure, muchless what it would be. I'd suggest Reading the ""Fine Manpage. (Or at least searching said manpage.)

A long time ago I ran into this problem and was advised to add "XTerm*titeInhibit: true" in .Xresources. It seems to have stopped working recently. Last night on a web forum people were comparing response times from 1.1.1.1 DNS server. I ran "mtr" in xterm but the output would disapper entirely when I hit "q". I managed to freeze the output with {CTRL}{S} so I could do a copy/paste into a post. But I'd like a clean solution rather than a clunky workaround.

I would be shocked to learn that a title (bar?) related setting would have anything to do with the "Alternate Screen". - If this worked, I'm guessing that it did so by breaking something else that would trigger the "Alternate Screen". (There's a 1000% chance that I'm wrong here.)

Please let us know what you find.



--
Grant. . . .
unix || die

Reply via email to