From owner-freebsd-questions@FreeBSD.ORG Sat Sep 15 22:14:24 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 F25A916A418 for ; Sat, 15 Sep 2007 22:14:24 +0000 (UTC) (envelope-from ckeladis@gmail.com) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.189]) by mx1.freebsd.org (Postfix) with ESMTP id 6D99D13C4A8 for ; Sat, 15 Sep 2007 22:14:24 +0000 (UTC) (envelope-from ckeladis@gmail.com) Received: by mu-out-0910.google.com with SMTP id w9so1421358mue for ; Sat, 15 Sep 2007 15:14:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=4tJcFWKtcoxPzUiVIHaO1SPeKbsg3sEg8hTHg0CjCFI=; b=jn0lmBPffa+U+dvhxTZV3res5HjGSei0qY6DeQpXnbr/IgxrzCbkO6q1PdRXbNiSYS9asmXsKov4I2SUxMUEkGQfESwumouTmTnysAlKQFORp0M64ZK4eMZ+K5LesCiPc5DfcXJForTNPgH8eyujz5hNfxoAgYN8YRQOofeg0g4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hm80ukTqxIKTQaGKouCF28q3PGXI1Sz48oB7biWn50daGLU5loPXo9s3PHPBAgKD1Fv09dNLWt/xrcWknqHjIr2uk4omZLOYTwhD478DQsL0OH2eSUjtGPw41QUmTZtenv7J3g/4HOomYP9qujoLYM5Gzzapu/8sYpoo7uwRA3w= Received: by 10.86.74.15 with SMTP id w15mr2392782fga.1189892813304; Sat, 15 Sep 2007 14:46:53 -0700 (PDT) Received: by 10.86.80.8 with HTTP; Sat, 15 Sep 2007 14:46:53 -0700 (PDT) Message-ID: <268f570d0709151446h59f464c0uedbb0c27a2b9c6c6@mail.gmail.com> Date: Sun, 16 Sep 2007 07:46:53 +1000 From: "Chris Keladis" To: "Gary Kline" In-Reply-To: <20070915202822.GA61976@thought.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070915010103.GA54302@thought.org> <20070914134128.GB33051@demeter.hydra> <46EC1D5C.3000208@u.washington.edu> <20070915202822.GA61976@thought.org> Cc: freebsd-questions@freebsd.org 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 22:14:25 -0000 On 9/16/07, Gary Kline wrote: Hi Gary, > On Sat, Sep 15, 2007 at 10:58:52AM -0700, Garrett Cooper wrote: > > Chad Perrin wrote: > > >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? When in a problematic SSH session try entering 'stty erase ' Then hit the backspace key and see if it behaves as normal. If that works, then you have a terminal emulation problem, and need to try some other terms to find one that works for your keyboard (must be set both client AND server-side). If you think you really need to edit the keyboard mappings then the file is /etc/termcap but i strongly recommend trying a few different terminals (try vt100, linux, xterm, etc) before editing that file. Remember, they need to be set in pairs, so change the term on both sides, disconnect, reconnect with the new term, and do your tests. Hope it helps, Chris.