Subject: Re: Creeping PCism...
To: Johnny Billquist <bqt@update.uu.se>
From: Frederick Bruckman <fredb@immanent.net>
List: netbsd-users
Date: 02/09/2004 18:02:55
On Tue, 10 Feb 2004, Johnny Billquist wrote:
> On Mon, 9 Feb 2004, Frederick Bruckman wrote:
>
> > On Mon, 9 Feb 2004, Johnny Billquist wrote:
> >
> > > > > You're not reading what I'm writing. I'm not running the telnet command
> > > > > from a shell prompt. In this case, I', creating an xterm, which runs
> > > > > telnet. There is no shell, and no way to run stty before.
> > > >
> > > > echo "XTerm*ptyInitialErase: true" | xrdb -merge -
> > > >
> > > > or
> > > >
> > > > echo "*ptyInitialErase: true" | xrdb -merge -
> > > >
> > > > if your telnet starter's xterms have a different class name.
> >
> > > *ptyInitialErase is a resource for binding what character should be send
> > > when pressing whatever key it figures. I already know what character I
> > > want to send.
> >
> > No, that's not what it does. RTFM. What it does, is it turns off the
> > setting of the erase character to the termcap "bs" entry, leaving it
> > at the default, same as if you'd typed "stty erase ^?" before running
> > telnet.
>
> Hmm. I'm reading the manual. And according to it, if you set
> ptyInitialErase to true, xterm will *use* the ptys sense of the stty erase
> value, while if false, it will set the ptys erase value to whatever is in
> termcap.
>
> It finally sets the TERMCAP variable according to whatever it figured out.
> So it will *not* set the cchar erase to DEL no matter what, unless I
> totally misunderstand the manual page.
The default erase character is already DEL, unless it's different in
the controlling terminal (i.e, an xterm with the default
configuration), so it doesn't have to *change* anything. If you did
have to change it, you could create a custom termcap entry.
> Perhaps you should RTFM then?
Not only did I read the fine manual, but I actually tried the advice
given to you, that you refuse to even try. YOU asked how to make the
DEL character rubout the previous character; that question has been
answered now, by two different people.
> > It's a brute force hack, of course, making normal use of the
> > workstation awkward, which is why I elaborated on how to get DEL vs.
> > BS from the BackSpace key. The right thing to do, would be to tell the
> > remote that you're in an xterm. ("tset xterm"?)
>
> You're assuming way too much. :-)
I'm assuming nothing. I'm giving you information with the assumption
that you'll actually try a few different things, and solve your own
problem.
> I'm connected to an RSX system. There is no tset. There is no xterm
> terminal type in RSX. There is no way to rebind delete to react on
> something else than DEL.
>
> I'm telling you, changing away from DEL is *not* an option. And previously
> I never had problems, because NetBSD also used DEL for this. But recent
> changes have switched over to use BS instead, and now I'm unhappy. I'm
> looking for a way to get NetBSD back the way it was. Since noone have come
> up with an answer to that one, I'll have to assume that it's not easily
> done, and requires hacking the source.
What change are you talking about? On my i386 kernel built Feb 7, the
erase character for /dev/ttyE? is still unchanged from the defaults
(i.e. ASCII DEL)?
Frederick