From owner-freebsd-questions@FreeBSD.ORG Sat Sep 15 11:21:56 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AFC7116A419 for ; Sat, 15 Sep 2007 11:21:56 +0000 (UTC) (envelope-from perrin@apotheon.com) Received: from outbound-mail-70.bluehost.com (outbound-mail-70.bluehost.com [69.89.21.30]) by mx1.freebsd.org (Postfix) with SMTP id 8259D13C480 for ; Sat, 15 Sep 2007 11:21:56 +0000 (UTC) (envelope-from perrin@apotheon.com) Received: (qmail 3355 invoked by uid 0); 15 Sep 2007 11:21:56 -0000 Received: from unknown (HELO box183.bluehost.com) (69.89.25.183) by mailproxy4.bluehost.com with SMTP; 15 Sep 2007 11:21:56 -0000 Received: from c-24-9-123-251.hsd1.co.comcast.net ([24.9.123.251] helo=demeter.hydra) by box183.bluehost.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.66) (envelope-from ) id 1IWVil-0004zB-G4 for freebsd-questions@freebsd.org; Sat, 15 Sep 2007 05:21:55 -0600 Received: from demeter.hydra (localhost [127.0.0.1]) by demeter.hydra (8.13.6/8.13.6) with ESMTP id l8EDfT25033253 for ; Fri, 14 Sep 2007 07:41:29 -0600 (MDT) (envelope-from perrin@apotheon.com) Received: (from ren@localhost) by demeter.hydra (8.13.6/8.13.6/Submit) id l8EDfTQo033252 for freebsd-questions@freebsd.org; Fri, 14 Sep 2007 07:41:29 -0600 (MDT) (envelope-from perrin@apotheon.com) X-Authentication-Warning: demeter.hydra: ren set sender to perrin@apotheon.com using -f Date: Fri, 14 Sep 2007 07:41:28 -0600 From: Chad Perrin To: FreeBSD Mailing List Message-ID: <20070914134128.GB33051@demeter.hydra> Mail-Followup-To: FreeBSD Mailing List References: <20070915010103.GA54302@thought.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070915010103.GA54302@thought.org> User-Agent: Mutt/1.4.2.3i X-Identified-User: {737:box183.bluehost.com:apotheon:apotheon.net} {sentby:bopbeforesmtp 24.9.123.251 authed with apotheon.com} X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box183.bluehost.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [737 12] / [47 12] X-AntiAbuse: Sender Address Domain - apotheon.com Subject: Re: remote [ssh] Backspace] key gives me "^?" 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: Sat, 15 Sep 2007 11:21:56 -0000 On Fri, Sep 14, 2007 at 06:01:03PM -0700, Gary Kline wrote: > > Sometimes when I ssh from a remote server and edit a file with > vi, my [Backspace keys] are not interpretered correctly. > Instead of erasing characters and backing up one byte and > clearing that character my cursor moves forward. > > Example: typing "This" as "thos" and backspacing to the 'o' > I'll see "thos^?^?" Can anybody 'splain what idiot thing i'm > doing wrong and how to fix it? > > tia, > > gary I tend to guess you're using a terminal emulator from within X when logging in remotely -- probably aterm or another rxvt-based terminal emulator. I had similar problems. I don't recall my exact fix, but it involved a two-tiered approach: 1. set a behavior using stty 2. change a setting in the aterm makefile before installing from ports My reference to the aterm makefile in part of the solution is because I suffered this problem when I used aterm as my terminal emulator of choice. I have since then switched to rxvt-unicode (also known as urxvt) as my preferred terminal emulator, however, and no longer have this problem (as well as no longer having funny broken ASCII spew on my screen when reading email that contains unicode characters). Best o' luck. Let us know if you think this pseudo-solution doesn't apply to you so we can help you brainstorm other diagnoses of your problem. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] Thomas McCauley: "The measure of a man's real character is what he would do if he knew he would never be found out."