From owner-freebsd-questions@FreeBSD.ORG Mon Sep 17 02:24:52 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 9166E16A41B for ; Mon, 17 Sep 2007 02:24:52 +0000 (UTC) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (dsl231-043-140.sea1.dsl.speakeasy.net [216.231.43.140]) by mx1.freebsd.org (Postfix) with ESMTP id 0466C13C46B for ; Mon, 17 Sep 2007 02:24:51 +0000 (UTC) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (localhost [127.0.0.1]) by tao.thought.org (8.13.8/8.13.1) with ESMTP id l8H2OUlL073086; Sun, 16 Sep 2007 19:24:30 -0700 (PDT) (envelope-from kline@tao.thought.org) Received: (from kline@localhost) by tao.thought.org (8.13.8/8.13.1/Submit) id l8H2OTTD073085; Sun, 16 Sep 2007 19:24:29 -0700 (PDT) (envelope-from kline) Date: Sun, 16 Sep 2007 19:24:29 -0700 From: Gary Kline To: Jordan Gordeev Message-ID: <20070917022429.GA72910@thought.org> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46ED6A70.7080108@dir.bg> User-Agent: Mutt/1.4.2.2i X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 21 of service to the Unix community. 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: Mon, 17 Sep 2007 02:24:52 -0000 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 [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