Re: altscreen on + TERM=screen

Dan Nelson <[email protected]>
Newsgroups gmane.comp.gnu.screen
Message-ID <[email protected]>
In the last episode (Dec 23), ivan said:
> I'd like to use the altscreen feature. It seems to work only if I set
> TERM=xterm otherwise vim (...and others) doesn't use the alternate
> screen. Is it vim's fault or is it something in the terminfo ( which
> I don't really comprehend)? I'm using very recent glibc-2.3.3 branch
> snapshot so the terminfo should be most up to date as well. Screen
> version is 4.00.01 (FAU) 18-Sep-03. When I set TERM=xterm, ncurses
> apps ( make menuconfig) tend behave badly.

It works for me out of the box.  The screen termcap/info entries
include save/restore escape codes:

termcap  :ti=\E[?1049h:te=\E[?1049l:

terminfo smcup=\E[?1049h,rmcup=\E[?1049l,

If altscreen is off, the codes are simply ignored.  What happens if you
run "tput smcup", then "tput rmcup" (if you're running a termcap-based
system, try "tput ti" and "tput te")?  Do you flip between primary and
alternate screens?  If not, you may need to reinstall your terminfo
files if you had installed an older version of screen that didn't
support altscreen.  Termcap-based systems will get the correct terminal
description from sreen automatically.
 
> What TERM inside screen does everybody use? Do I need to do any
> changes to my terminfo tree?

You should use "screen" as your terminal type inside screen for
everything to work right.

-- 
	Dan Nelson
	[email protected]

 

Yahoo! Groups Links

To visit your group on the web, go to:
 http://groups.yahoo.com/group/gnu-screen/

To unsubscribe from this group, send an email to:
 [email protected]

Your use of Yahoo! Groups is subject to:
 http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.