From owner-freebsd-questions@FreeBSD.ORG Wed Dec 7 14:28:16 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 9CB8116A420 for ; Wed, 7 Dec 2005 14:28:16 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail22.sea5.speakeasy.net (mail22.sea5.speakeasy.net [69.17.117.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F0E143D90 for ; Wed, 7 Dec 2005 14:27:53 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 4116 invoked from network); 7 Dec 2005 14:27:49 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail22.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 7 Dec 2005 14:27:49 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 0CD692841D; Wed, 7 Dec 2005 09:27:49 -0500 (EST) Sender: lowell@be-well.ilk.org To: "Constantine A. Murenin" References: From: Lowell Gilbert Date: 07 Dec 2005 09:27:48 -0500 In-Reply-To: Message-ID: <447jah3rtn.fsf@be-well.ilk.org> Lines: 24 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: ee(1): why Backspace doesn't work as expected if $TERM=xterm? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2005 14:28:16 -0000 "Constantine A. Murenin" writes: > Hello, > > When I ssh my FreeBSD 4.8 machine and try to use ee(1), I always > notice that Backspace erases the following character, not the previous > one. On the contrary, I've noticed that it does not do that when I > login via console. > > So I decided to play with the value of $TERM. > > By default, when I ssh FreeBSD via PuTTY or Apple Terminal, I have the > TERM variable set to "xterm" or "xterm-color". When I tried to > manually change $TERM on FreeBSD and run ee, using "setenv TERM vt102 > && ee test.txt", then Backspace key in ee(1) did behave as expected. > > Please, notice that Backspace does behave as expected in tcsh, it's > only ee(1) that shows this problem. > > How do I fix it without changing $TERM? Offhand, it sounds as though your terminal programs aren't really emulating xterms perfectly. Look for adjustments on how they map the backspace key...