From mboxrd@z Thu Jan 1 00:00:00 1970 From: dds@aueb.gr (Diomidis Spinellis) Date: Sun, 11 Jan 2015 11:16:21 +0200 Subject: [TUHS] Termcap vs terminfo In-Reply-To: References: <1FD28B19-FA50-4581-BB0A-257B5DDE1890@kdbarto.org> <30E98281-D4A7-424D-A757-2EF50A0BFC65@kdbarto.org> Message-ID: <54B23F65.2090104@aueb.gr> On 11/01/2015 04:06, Dave Horsfall wrote: > On Sat, 10 Jan 2015, Lyndon Nerenberg wrote: > >> This drives me insane! When I 'man foo' and find the relevant bits in >> the document, when I quit out of the pager I want those bits to stay on >> the screen so I can refer to them, dammit! There are two shortcuts to >> this, both involving custom termcap/terminfo entries. > > I'm glad I'm not the only one annoyed by this "feature". I agree it's maddening! This is what I have on my .bashrc file to avoid this behavior. # Don't restore screen, quit at EOF, more-like prompt, pass color control chars export LESS=-XEmR This problem, and the desire to use the vi key bindings instead of the Emacs ones for command-line editing, are the reason I invested effort to place my login configuration under Git control, and replicate it on the tens of hosts I find myself logged in over a working day. Now a simple "git clone" restores sanity to my working environment.