Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Sep 2007 19:24:29 -0700
From:      Gary Kline <kline@tao.thought.org>
To:        Jordan Gordeev <jgordeev@dir.bg>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: remote [ssh] Backspace] key gives me "^?"
Message-ID:  <20070917022429.GA72910@thought.org>
In-Reply-To: <46ED6A70.7080108@dir.bg>
References:  <20070915010103.GA54302@thought.org> <20070914134128.GB33051@demeter.hydra> <46EC1D5C.3000208@u.washington.edu> <20070915202822.GA61976@thought.org> <20070915011204.GD35321@demeter.hydra> <20070916031452.GA64079@thought.org> <46ED6A70.7080108@dir.bg>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Sep 16, 2007 at 08:40:00PM +0300, Jordan Gordeev wrote:
> Gary Kline wrote:
> >On Fri, Sep 14, 2007 at 07:12:04PM -0600, Chad Perrin wrote:
> >
> >>On Sat, Sep 15, 2007 at 01:28:22PM -0700, Gary Kline wrote:
> >>
> >>>	Trying to use stty failed... .
> >>
> >>What terminal emulator are you using?  It may be that, as was the case
> >>with me when I was using aterm, I needed to use stty *and* needed to
> >>change a configuration in the aterm makefile.  It's possible that stty
> >>alone won't do it, but stty in combination with something else *will*.
> >>
> >
> >
> >	Sounds entirely rational.  Because here and with CTWM I have
> >	simple xterms; on my "new tao" runnning Gnome as a manager, I use
> >	Konsole.  Entrely to get the BEL in vi/nvi.  
>                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> Are you getting audiable bell in vi/nvi when using xterm? I think I 
> didn't get that last sentence.
> >

	No.  For some reason, when I use Gnome or KDE, the system speaker
	goes dead.  Hitting ESC in nvi does not work, and because I only
	watch the keyboard and not te screen, I rely on the audio
	feedback.   (I used to use Suns at work and turned on "click" to
	make certain that I actually hit a key.   It drove my co-workers
	batty, but that was just until we moved into offices!)  Nutshell,
	I will either buy a fancyy clicky keyboard or write a CLICK
	Driver.    Meanehile, unless I set Konsole to ring the WAV belll,
	no *ding*.


> 
> >	I find that if I use Settings -> Keyboard and then select 
> >	"FreeBSD Console", I come fairly close.  Then [Backspace] 
> >	backs up, but the characters are not erased as I space 
> >	backways.  UsingTerminal, it defaults to this.
> Characters are not erased for me when I hit backspace in vi. In vim, 
> they are.
> 
	Zounds! same here.  I'm working in my old tao running ctwm, and
	yup, same thing with vi/nvi.  vim does erase.  '\b' ' ' '\b'
	was how I coded it tone time.  The thing I don't like about vim
	is that I foul up with 'u' undo's.  Is there some magic to makr
	vim behave more like the old vi?  Hmph!

> >
> >	Anther indicator thata Garrett is right is that by doing an
> >	"ssh -X tao", X gives me 
> >
> >X Error of failed request:  BadAccess (attempt to access private resource 
> >denied)
> >  Major opcode of failed request:  100 (X_ChangeKeyboardMapping)
> >  Serial number of failed request:  7
> >  Current serial number in output stream:  12
> >q3 20:06 <tao> [5032] 
> >
> >
> >	If this gives annybody a clue, I'd be much obliged for some
> >	insights.  .....
> 
> 
> Would you please try running "stty erase '^H' erase2 '^?'" in Konsole 
> with default terminal settings and tell me how it behaves?
> >


	Well, in the dfault mode with keyboard == Xterm 4, it backs up
	and erases in command-ln mode, but both vi and vi still run into
	the "^?" characters.  Even given  you stty cms.  However, if I
	set the keyboard to "freebsd", the first in the list, it erases 
	wit bakspace.   In vi, tho, as you noted above, it does not
	blank the character; in vim it both backs up then forward to
	blank, then backwards.

	(Be nice to understand what's going on without days of digging
	into the code!)


	gary




> >	gary
> >
> >
> >		    
> >
> >>-- 
> >>CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ]
> >>Brian K. Reid: "In computer science, we stand on each other's feet."
> >>_______________________________________________
> >>freebsd-questions@freebsd.org mailing list
> >>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> >>To unsubscribe, send any mail to 
> >>"freebsd-questions-unsubscribe@freebsd.org"
> >
> >
> 
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"

-- 
  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?20070917022429.GA72910>