Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!usc!samsung!sol.ctr.columbia.edu!emory!kd4nc!n4hgf!wht From: wht@n4hgf.Mt-Park.GA.US (Warren Tucker) Newsgroups: comp.unix.questions Subject: Re: Need to make "less" do a particular thing "right" Message-ID: <333@n4hgf.Mt-Park.GA.US> Date: 21 Feb 91 17:17:49 GMT References: <15903.27c29273@levels.sait.edu.au> <6435@idunno.Princeton.EDU> <1991Feb20.210427.26089@ux1.cso.uiuc.edu> Reply-To: wht@n4hgf.Mt-Park.GA.US (Warren Tucker) Organization: Amateur Radio Station N4HGF Lines: 33 In article <1991Feb20.210427.26089@ux1.cso.uiuc.edu> phil@ux1.cso.uiuc.edu (Phil Howard KA9WGN) writes: >I want to make the "less" command NOT switch over to the alterate screen. >This is so that when I press "q" to quit from less, it will NOT switch The terminal initialization string (termcap "ti") and deinit string (termcap "te") are sent by the following code in screen.c: /* * Initialize terminal */ public void init() { tputs(sc_init, sc_height, putchr); } /* * Deinitialize terminal */ public void deinit() { tputs(sc_deinit, sc_height, putchr); } I did not see the previous articles in this thread, but if you are using xterm, the titeInhibit resource controls whether or not xterm honors the ti and te sequences. ----------------------------------------------------------------------- Warren Tucker, TuckerWare gatech!n4hgf!wht or wht@n4hgf.Mt-Park.GA.US Many [Nobel physics] prizes have been given to people for telling us the universe is not as simple as we thought it was. -Stephen Hawking in A Brief History of Time In computing, there are no such prizes. -me