Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Mar 2005 13:46:35 +0200
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        "Jeremy C. Reed" <reed@reedmedia.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: vt220 and wrong pgup, pgdn, home and end keys
Message-ID:  <20050308114635.GB1640@orion.daedalusnetworks.priv>
In-Reply-To: <Pine.LNX.4.43.0503071929270.24741-100000@pilchuck.reedmedia.net>
References:  <Pine.LNX.4.43.0503071929270.24741-100000@pilchuck.reedmedia.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2005-03-07 19:31, "Jeremy C. Reed" <reed@reedmedia.net> wrote:
> Please cc me on replies.
>
> My /etc/ttys uses vt220 for one of my consoles. (Because I am logging
> into a host that doesn't know cons25.)

That's not a good idea.  Your console is not a vt220 terminal, so some
keys will act in funny ways.

I usually run screen to do what you're trying to accomplish.

Setting TERM=vt220 inside screen is not a problem.  In fact, it's the
best way I've found so far for SSH'ing into arbitrary remote hosts
(which may not have 'cons25' in their termcap or terminfo).

Both my .screenrc and .bashrc know about this and set TERM=vt220 inside
screen windows:

( .screenrc )

	term vt220

( .bashrc )

	# Terminal hacks for screen(1).
	case $TERM in
	screen*|vt220*)
	        stty status '^T'
	        export TERM='vt220'
	        unset TERMCAP
	        unset DISPLAY
	        ;;
	esac



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050308114635.GB1640>