From owner-freebsd-questions@FreeBSD.ORG Tue Mar 8 11:46:47 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B0AA116A4CE for ; Tue, 8 Mar 2005 11:46:47 +0000 (GMT) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4607E43D2D for ; Tue, 8 Mar 2005 11:46:42 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from orion.daedalusnetworks.priv (aris.bedc.ondsl.gr [62.103.39.226])j28BkLsl024386; Tue, 8 Mar 2005 13:46:24 +0200 Received: from orion.daedalusnetworks.priv (orion [127.0.0.1]) j28BkZpG001734; Tue, 8 Mar 2005 13:46:35 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost)j28BkZwa001733; Tue, 8 Mar 2005 13:46:35 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Tue, 8 Mar 2005 13:46:35 +0200 From: Giorgos Keramidas To: "Jeremy C. Reed" Message-ID: <20050308114635.GB1640@orion.daedalusnetworks.priv> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: cc: freebsd-questions@freebsd.org Subject: Re: vt220 and wrong pgup, pgdn, home and end keys X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Mar 2005 11:46:47 -0000 On 2005-03-07 19:31, "Jeremy C. Reed" 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