NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: termcap issue



On 2015-08-20 21:25, Dave Huang wrote:
On 8/20/2015 13:15, Johnny Billquist wrote:
On 2015-08-20 19:11, Pongthep Kulkrisada wrote:
* Pongthep Kulkrisada (ptkrisada%gmail.com@localhost) wrote:
* John Klos (john%ziaspace.com@localhost) wrote:
Sometime between RC1 and RC2, something happened to termcap. I
often ssh
from a Mac (TERM is xterm-256color) and nothing has changed on that
end
for ages. However, now on any NetBSD-7.0_RC2 system, the shell
shows "^?"
whenever a backspace is entered and the terminal is not
interactive. Also,
in insert mode in vi, one has to use control-h, as now backspace
enters
"^?". What changed? It'd be nice if this were fixed.

I also encountered the same problem. I have also tried...
stty erase ^H
bindkey "\177" delete-char
Nothing seems to work, this time I have to go back to 6.1_STABLE.

It is still not fixed in 7.0_RC3. Mac users still have to press ^H to
delete.
Any solutions or workaround would be highly appreciated.

I should probably point out that if the system is echoing ^? when you
press they key marked "delete", or "<X]", or "<-", or whatever, then
your problem is not in NetBSD, but on your Mac.
The key you are pressing is sending an ascii DEL character. How you
can expect that any settings for how NetBSD should react to an ascii
BS character would be relevant here is beyond me.

I don't think anyone has suggested changing how NetBSD reacts to an
ASCII BS character... The question is what changed between previous
versions of NetBSD and 7.0 that caused the erase character to no longer
be set to ^? when ssh-ing. IIRC, during the setup of an SSH connection,
the client sends the server the various terminal control characters
(VINTR, VERASE, VSUSP, etc...). It seems that NetBSD is no longer
honoring those.

I would say that "stty erase ^H" is a suggestion on changing how NetBSD reacts to an ASCII BS character...

Either change your Mac to send a BS character, or configure your
NetBSD system to do an erase when receiving a DEL.

(stty erase ^?)

Yes, stty erase ^? works, but it shouldn't be necessary.

I'm actually surprised, since most people nowadays seems to actually want erase to be bound to BS, and I have found NetBSD to do that for me for the last 10 years or so. Personally I want to use DEL, and not BS. But I seem to be a very small minority nowadays. :-) And I usually have to set it that way myself, which is why I have a "stty dec" in my login scripts...

	Johnny



Home | Main Index | Thread Index | Old Index