Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Sep 2007 20:33:34 -0700
From:      Gary Kline <kline@tao.thought.org>
To:        Chris Keladis <ckeladis@gmail.com>
Cc:        Gary Kline <kline@tao.thought.org>, freebsd-questions@freebsd.org
Subject:   Re: remote [ssh] Backspace] key gives me "^?"
Message-ID:  <20070916033334.GB64079@thought.org>
In-Reply-To: <268f570d0709151446h59f464c0uedbb0c27a2b9c6c6@mail.gmail.com>
References:  <20070915010103.GA54302@thought.org> <20070914134128.GB33051@demeter.hydra> <46EC1D5C.3000208@u.washington.edu> <20070915202822.GA61976@thought.org> <268f570d0709151446h59f464c0uedbb0c27a2b9c6c6@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Sep 16, 2007 at 07:46:53AM +1000, Chris Keladis wrote:
> On 9/16/07, Gary Kline <kline@tao.thought.org> 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 <ctrl-v ctrl-?>'


	Hm.  I'm on tao2 now, ssh's into tao.  On a Konsole on tao2, 
	the [backspace] key works fine--from the CL.  Your suggestion of
	using the literal ^V^? makes no difference.  The only thing that
	does, is selection the "freebsd console" from the  Konsole
	Settings -> Keyboard drop-down, as I wrote to Chad a few minutes
	ago.  So closer.  

> 
> 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.


	I'm not touching the termcap file unless it's an (abs) last
	resort!
> 
> 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.
> 
> 

	Thanks for your help, gentleen.   I'll let you know when/if I
	figure this out!

	gary


> 
> Hope it helps,
> 
> Chris.

-- 
  Gary Kline  kline@thought.org   www.thought.org  Public Service Unix
      http://jottings.thought.org   http://transfinite.thought.org




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070916033334.GB64079>