From owner-freebsd-questions@FreeBSD.ORG Wed Dec 7 14:37:31 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 7A28316A41F for ; Wed, 7 Dec 2005 14:37:31 +0000 (GMT) (envelope-from mureninc@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id C07C043D93 for ; Wed, 7 Dec 2005 14:37:05 +0000 (GMT) (envelope-from mureninc@gmail.com) Received: by zproxy.gmail.com with SMTP id k1so366664nzf for ; Wed, 07 Dec 2005 06:37:01 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=CvIHR56c8Y9gntql0V842+OP7vi7kPtLqOi3fqe3S3HopGpXhHeP5dMmAmQD7YyoJsRigf0l/sCmT1QGDlA1lZ4VID29oBuDLZnBf7vBFb4R/n3mExLg2VTEAWYVvPcsXF8/9mDDFXAgxBNTeNe0K6PXwv2JckFzmceYw4DSL7A= Received: by 10.64.210.7 with SMTP id i7mr1797207qbg; Wed, 07 Dec 2005 06:37:01 -0800 (PST) Received: by 10.65.73.19 with HTTP; Wed, 7 Dec 2005 06:37:01 -0800 (PST) Message-ID: Date: Wed, 7 Dec 2005 14:37:01 +0000 From: "Constantine A. Murenin" To: freebsd-questions@freebsd.org In-Reply-To: <447jah3rtn.fsf@be-well.ilk.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <447jah3rtn.fsf@be-well.ilk.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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2005 14:37:31 -0000 On 07 Dec 2005 09:27:48 -0500, Lowell Gilbert wrote: > "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... They map it perfectly fine as 127, it's only FreeBSD's ee(1) that has this problem, tcsh and others work fine. Notice that ee(1) on OpenBSD from ports works fine from the very same terminals (PuTTY etc). Problem exists only with FreeBSD's ee(1). Cheers, Constantine.