Article View: comp.windows.x
Article #23828Re: disabling xterm alternate screen mode
From: David McQueen
Date: Tue, 18 Jun 1991 17:34
Date: Tue, 18 Jun 1991 17:34
35 lines
2031 bytes
2031 bytes
In a previous posting I asked: > As I understand the documentation, the xterm default behavior is to emulate > a VT102 terminal. In particular, xterm uses an 'alternate screen' when > starting up vi, so that upon exiting from vi the user sees the screen as it > was before starting vi. I find this disconcerting and would like to disable > this feature, if possible. The documentation seems to indicate that invoking > xterm via: > > xterm -xrm 'xterm*TiteInhibit: true' & > > from another xterm (for example, the console window) should start an xterm > with alternate screen use disabled, but in fact it does not. My question is: > should the above invocation of xterm do what I want? If not, what (if > anything) should I do instead? > I have received several email messages pointing out that the above invocation only does what I want on systems which employ termcap entries; systems which employ terminfo entries are oblivious. My solution is to create my own terminfo entries for xterm and xterms with the smcup and rmcup capabilities deleted. (This requires using infocmp, vi and tic to create the modified terminfo files and requires setting the TERMINFO environment variable so that those files can be found.) This appears to work just fine. Thanks to everyone who helped with this: dce@smsc.sony.com (David Elliott) thorinn@skinfaxe.diku.dk (Lars Henrik Mathiesen) swick@ATHENA.MIT.EDU (Ralph Swick) tpw@mtgzy.att.com (T. P. Walsh) --Dave McQueen mcqueen@acf3.nyu.edu mcqueen@mcqueen.cims.nyu.edu
Technical Details
Message-ID:
<22980002@acf3.NYU.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!samsung!think.com!yale.edu!cmcl2!acf3!mcqueenReferences:
<22980001@acf3.NYU.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!samsung!think.com!yale.edu!cmcl2!acf3!mcqueen From: mcqueen@acf3.NYU.EDU (David McQueen) Newsgroups: comp.windows.x Subject: Re: disabling xterm alternate screen mode Message-ID: <22980002@acf3.NYU.EDU> Date: 18 Jun 91 17:34:00 GMT References: <22980001@acf3.NYU.EDU> Sender: notes@cmcl2.nyu.edu (Notes Person) Organization: New York University Lines: 35 Nntp-Posting-Host: acf3.nyu.edu