From owner-freebsd-questions Thu Mar 25 3:53:26 1999 Delivered-To: freebsd-questions@freebsd.org Received: from hyperhost.net (ether.lightrealm.com [207.159.132.5]) by hub.freebsd.org (Postfix) with ESMTP id 01AE814DDC for ; Thu, 25 Mar 1999 03:53:24 -0800 (PST) (envelope-from patseal@hyperhost.net) Received: from port5.annex8.radix.net (port5.annex8.radix.net [205.252.108.5]) by hyperhost.net (8.8.5/8.8.5) with ESMTP id GAA14565; Thu, 25 Mar 1999 06:53:00 -0500 (EST) Date: Thu, 25 Mar 1999 06:52:54 -0500 (EST) From: Patrick Seal To: Rob Cc: questions@FreeBSD.ORG Subject: Re: BACKSPACE v. DELETE In-Reply-To: <19990324220533.A41467@stratos.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Add stty erase ^H make sure it's literal (^V) to your shell configuration files and it will always be that, no matter what. ------------------------------------ _____________________________________ Patrick Seal |"Microsoft isn't evil, they just make | really crappy operating systems." Hyperhost - http://www.hyperhost.net| -Linus Torvalds hosting and Design http://www.freebsd.org - http://www.linux.org On Wed, 24 Mar 1999, Rob wrote: > > Hi guys, > > I got a puzzle here. I'm having problems with getting my xterms > to properly interpret my BACKSPACE (^H) character as the erase character. > It gets kind of complicated, and I'll try to be brief. I'm using KDE > as my desktop manager. > > o When I log in through character-based getty/login and then use > `startx &' from the command line, launching xterm from KDE works > fine. An `stty -a | grep erase' reveals that my erase key is > properly set to ^H. > o But when I launched either kvt or konsole under KDE under the > above circumstances, an `stty -a | grep erase' shows that erase > is set to ^?. > > Okay, so it has to do with the KDE terminals, right? Except: > > o When I log in through kdm, both kvt and konsole behave as previous > described. > o But, unfortunately, under xterm the erase key is ALSO set to > ^?. > > So, the method of starting my X session is, apparently, a > factor as well. > I know that child processes inherit stty settings, so when I log in > with a character-based terminal (and erase is properly set to BACKSPACE), > a `startx' allows my X session and all of its children to properly > inherit the settings. So, this is what I figured: > > o The getty/login processes sets stty erase to ^H and kdm sets it > to DELETE. So, if you launch X-windows with startx, you inherit > ^H and from kdm DELETE. > o kvt and konsole are overriding default terminal settings (yet I > can't figure out how to set either KDE terminal emulators to > the proper defaults. They only provide options to convert a BACKSPACE > to DELETE.) > > So, how do I solve this problem, so all graphical terminals have the > proper settings by default without resulting to a complex series of aliases > and configuration files? > Launching these terminals by default doesn't read .profiles (or > .zprofiles). I tried `stty erase ^H' in my xsession, but that doesn't > work. I tried logging in with different desktop/window managers and > still have the same problem. > I looked at login.conf to get some clues, but could find nothing there. > Is there anywhere that I missed? > > -Rob > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message