remote [ssh] Backspace] key gives me "^?"
Gary Kline
kline at tao.thought.org
Sun Sep 16 19:24:52 PDT 2007
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 at freebsd.org mailing list
> >>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> >>To unsubscribe, send any mail to
> >>"freebsd-questions-unsubscribe at freebsd.org"
> >
> >
>
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
--
Gary Kline kline at thought.org www.thought.org Public Service Unix
http://jottings.thought.org http://transfinite.thought.org
More information about the freebsd-questions
mailing list