*BSD News Article 26698


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!decwrl!decwrl!netcomsv!netcom.com!geh
From: geh@netcom.com (Greg Holdren)
Subject: Backspace problems with Xfree86-2.0
Message-ID: <gehCKDD7J.HoG@netcom.com>
X-Newsreader: TIN [version 1.2 PL1]
Date: Sat, 29 Jan 1994 02:21:19 GMT
Lines: 49


I'm running NetBSD-0.9 and XFree86-2.0 which is installed and working
fine the way I have it now except for one problem. The backspace key
does not work correctly under XFree86. It works fine in text mode
before the X server is started up. I had a problem with the BS key
also until I added the "stty erase \^h" line in my root .profile
file. 

I have the same line installed in the /etc/csh.profile file which
if I understand correctly is where xterm reads the .profile file
from. Correct?

This is what I have in my $HOME/.profile and /etc/csh.profile files:

stty erase \^h kill \^u eof \^d echoe

After X is started up and I do a stty -a to get the stty settings
I get:

lflags: -echoe

cchars: erase = ^?

Now if I manually enter the stty line in each window the BS key
functions the way I want it to, i.e. move the cursor back a character
and erasing it.
When I do a stty status agian I get:

lflags: echoe

cchars: erase = ^H

which is what I expected it to show in the first place.

Sounds like I'm putting the "stty ....." line in the wrong file or
its getting override by another stty command somewhere else.
What file should it go in so that each xterm window will read it?
Any other clue as to whats wrong?


Thanks
Greg Holdren
geh@netcom.com
gregh@hprnd.rose.hp.com