1 |
On Tue, Apr 03, 2018 at 05:19:27PM -0600, Grant Taylor wrote |
2 |
|
3 |
> "mtr", "vim", and "less" all three use what Xterm calls the "Alternate |
4 |
> Screen". You can see this while the programs are running by looking at |
5 |
> the VT Options menu (Ctrl+Middle Click) and seeing that the "Show |
6 |
> Alternate Screen" is checked. |
7 |
|
8 |
The option was checked. I unchecked it, and now less/mtr/vim do not |
9 |
clear the screen on exit. YAAAAY!!! So why has the default changed, |
10 |
and how can I get xterm to come up with alternate screen disabled? |
11 |
|
12 |
> There may be a way to disable the "Alternate Screen", but I don't know |
13 |
> for sure, muchless what it would be. I'd suggest Reading the ""Fine |
14 |
> Manpage. (Or at least searching said manpage.) |
15 |
|
16 |
TFM says to use "titeInhibit" |
17 |
|
18 |
> |
19 |
> > A long time ago I ran into this problem and was advised to add |
20 |
> > "XTerm*titeInhibit: true" in .Xresources. It seems to have stopped |
21 |
> > working recently. Last night on a web forum people were comparing |
22 |
> > response times from 1.1.1.1 DNS server. I ran "mtr" in xterm but the |
23 |
> > output would disapper entirely when I hit "q". I managed to freeze the |
24 |
> > output with {CTRL}{S} so I could do a copy/paste into a post. But I'd |
25 |
> > like a clean solution rather than a clunky workaround. |
26 |
> |
27 |
> I would be shocked to learn that a title (bar?) related setting would |
28 |
> have anything to do with the "Alternate Screen". - If this worked, I'm |
29 |
> guessing that it did so by breaking something else that would trigger |
30 |
> the "Alternate Screen". (There's a 1000% chance that I'm wrong here.) |
31 |
|
32 |
That's "titeInhibit" (nothing to do with title). See |
33 |
https://www.x.org/archive/X11R6.7.0/doc/xterm.1.html |
34 |
|
35 |
> titeInhibit (class TiteInhibit) |
36 |
> Specifies whether or not xterm should remove ti and te termcap |
37 |
> entries (used to switch between alternate screens on startup of |
38 |
> many screen-oriented programs) from the TERMCAP string. If set, |
39 |
> xterm also ignores the escape sequence to switch to the alternate |
40 |
> screen. Xterm supports terminfo in a different way, supporting |
41 |
> composite control sequences (also known as private modes) 1047, |
42 |
> 1048 and 1049 which have the same effect as the original 47 |
43 |
> control sequence. The default for this resource is ``false.'' |
44 |
|
45 |
-- |
46 |
Walter Dnes <waltdnes@××××××××.org> |
47 |
I don't run "desktop environments"; I run useful applications |