Re: termcap issue

2015-08-30 Thread Rhialto
On Sat 29 Aug 2015 at 22:37:22 +0200, Havard Eidnes wrote: > For those among us who rather fiercly wish to stick to the idea > that the "rubout" key commonly found in the upper right area of > the keyboard sends DEL, and who has many more machines than > actively used desktops for logging in to tho

Re: termcap issue

2015-08-29 Thread Michael van Elst
On Sat, Aug 29, 2015 at 10:37:22PM +0200, Havard Eidnes wrote: > When this was fixed^Wchanged in FreeBSD is rather immaterial for > us, what matters is when this change was done in^W^Wfoisted on > NetBSD. Well, the first breakage occured when switching to terminfo. But it didn't affect the ssh us

Re: termcap issue

2015-08-29 Thread Havard Eidnes
> j...@ziaspace.com (John Klos) writes: > >>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 ent

Re: termcap issue

2015-08-24 Thread Christos Zoulas
In article , Dave Huang wrote: >On Aug 23, 2015, at 2:04, Michael van Elst wrote: > >Either sounds OK to me... I've removed the tset from my .login and >things are working well for me now. ssh works fine, and serial console >has erase ^? by default, which is correct for me. If FreeBSD removed

Re: termcap issue

2015-08-24 Thread Dave Huang
On Aug 23, 2015, at 2:04, Michael van Elst wrote: > > k...@azeotrope.org (Dave Huang) writes: >> for network terminals (pretty much just ssh these >> days, but IIRC this is the case for telnet too. Don't know about >> rlogin), the client will send the appropriate character to the server. > >

Re: termcap issue

2015-08-23 Thread Michael van Elst
g...@ir.bbn.com (Greg Troxel) writes: >> An alternative would be to remove the kbs attribute from 'remote terminals' >> in the terminfo database. >Sorry, I didn't absorb your second note before replying. Either of >those sounds fine, or perhaps both. It's pretty clear that knowing what >a remot

Re: termcap issue

2015-08-23 Thread Michael van Elst
g...@ir.bbn.com (Greg Troxel) writes: >The fact that this tset change is provoking complaints is a testament to >how well the propagation of local settings is working. Only DEL was propagated in 4.4BSD. -- -- Michael van Elst Internet: mlel...@serpens.de

Re: termcap issue

2015-08-23 Thread Michael van Elst
g...@ir.bbn.com (Greg Troxel) writes: > when the erase character has been set via sshd, don't mess with it, > because the remote side set it for a reason. That's where you ask for magic. The erase character is always set and tset configures it for the terminal also for a reason. >A further is

Re: termcap issue

2015-08-23 Thread Greg Troxel
mlel...@serpens.de (Michael van Elst) writes: > FreeBSD removed the tset call from login in 1995, replaced it first > with a fixed 'stty erase ^H' and then dropped it altogether. I am > not sure if that is the best approach, but it surely avoids the > ssh-login problem. > > An alternative would b

Re: termcap issue

2015-08-23 Thread Greg Troxel
mlel...@serpens.de (Michael van Elst) writes: > When hitting the backarrow key ("backspace") on the Mac keyboard, > it apparently sends a DEL character. The terminal on the Mac probably > also defines the erase character as DEL. The Mac Terminal.app (10.9) preferences has a "Delete sends Control

Re: termcap issue

2015-08-23 Thread Michael van Elst
k...@azeotrope.org (Dave Huang) writes: >On Aug 22, 2015, at 18:02, Michael van Elst wrote: >> It depends on what keyboard you use, pckbd sends ^?, ukbd sends ^h. >Doesn't that inconsistency cause problems then? E.g., if the terminfo >entry for wsvt25 says that erase is ^H and tset sets it to t

Re: termcap issue

2015-08-22 Thread Dave Huang
On Aug 22, 2015, at 18:02, Michael van Elst wrote: > > k...@azeotrope.org (Dave Huang) writes: > >> Also, it seems that >> wscons on NetBSD/i386 sends ^? for Backspace. > > It depends on what keyboard you use, pckbd sends ^?, ukbd sends ^h. Doesn't that inconsistency cause problems then? E.g.

Re: termcap issue

2015-08-22 Thread Michael van Elst
k...@azeotrope.org (Dave Huang) writes: > Restore logic for setting the VERASE character. > - use terminfo _unless_ the terminal does overstrike. > - use terminfo data not only for an unset tty. >Why "use terminfo" if the tty is already set? The tty is almost always set to something.

Re: termcap issue

2015-08-22 Thread Michael van Elst
k...@azeotrope.org (Dave Huang) writes: >Also, it seems that >wscons on NetBSD/i386 sends ^? for Backspace. It depends on what keyboard you use, pckbd sends ^?, ukbd sends ^h. -- -- Michael van Elst Internet: mlel...@serpens.de "

Re: termcap issue

2015-08-22 Thread Michael van Elst
j...@ziaspace.com (John Klos) writes: >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 an

Re: termcap issue

2015-08-22 Thread Pongthep Kulkrisada
* Martin Husemann (mar...@duskware.de) wrote: > On Sat, Aug 22, 2015 at 10:55:02PM +0700, Pongthep Kulkrisada wrote: > > I am relatively new to this list. (subscribed last month) > > Once I did send-pr, after that I have no idea how to find it. > > But I certainly sent on 3-Aug-2015. > > You shuol

Re: termcap issue

2015-08-22 Thread Martin Husemann
On Sat, Aug 22, 2015 at 10:55:02PM +0700, Pongthep Kulkrisada wrote: > I am relatively new to this list. (subscribed last month) > Once I did send-pr, after that I have no idea how to find it. > But I certainly sent on 3-Aug-2015. You shuold get a reply back from gnats (usually within a few minute

Re: termcap issue

2015-08-22 Thread Pongthep Kulkrisada
* Martin Husemann (mar...@duskware.de) wrote: > On Sat, Aug 22, 2015 at 08:43:57PM +0700, Pongthep Kulkrisada wrote: > > If you were more careful and followed this thread, > > you would find that send-pr was done from me since 7.0_RC2. > > Which PR is it? I am relatively new to this list. (subscri

Re: termcap issue

2015-08-22 Thread Martin Husemann
On Sat, Aug 22, 2015 at 08:43:57PM +0700, Pongthep Kulkrisada wrote: > If you were more careful and followed this thread, > you would find that send-pr was done from me since 7.0_RC2. Which PR is it? Martin

Re: termcap issue

2015-08-22 Thread Pongthep Kulkrisada
* Pongthep Kulkrisada (ptkris...@gmail.com) wrote: > * Martin Husemann (mar...@duskware.de) wrote: > > Please file a PR giving more details (like: what method you use to log > > in, what terminal emulator you run, what shell you are using, output > > of stty -a, your TERM environment settings,

Re: termcap issue

2015-08-22 Thread Chris Bannister
On Fri, Aug 21, 2015 at 12:11:08AM +0700, Pongthep Kulkrisada wrote: > * Pongthep Kulkrisada (ptkris...@gmail.com) wrote: > > * John Klos (j...@ziaspace.com) wrote: > > > Sometime between RC1 and RC2, something happened to termcap. I often ssh > > > from a Mac (TERM is xterm-256color) and nothing

Re: termcap issue

2015-08-22 Thread Pongthep Kulkrisada
* Dave Huang (k...@azeotrope.org) wrote: > On Fri, Aug 21, 2015 at 11:51:24PM +0700, Pongthep Kulkrisada wrote: > > stty erase ^? doesn't work. > > Hmm, it works for me. What does "stty -a" show after you do "stty > erase ^?" ? Oops! sorry for my bad. I was doing something else. TGIF stty erase ^?

Re: termcap issue

2015-08-21 Thread Dave Huang
On Fri, Aug 21, 2015 at 11:51:24PM +0700, Pongthep Kulkrisada wrote: > stty erase ^? doesn't work. Hmm, it works for me. What does "stty -a" show after you do "stty erase ^?" ? -- Name: Dave Huang | Mammal, mammal / their names are called / INet: k...@azeotrope.org | they raise a paw /

Re: termcap issue

2015-08-21 Thread Pongthep Kulkrisada
* Johnny Billquist (b...@update.uu.se) wrote: > Either change your Mac to send a BS character, or configure your NetBSD > system to do an erase when receiving a DEL. > > (stty erase ^?) stty erase ^? doesn't work. The only thing that works is adding these lines to /etc/rc.conf. % grep wsconsctl

Re: termcap issue

2015-08-21 Thread Johnny Billquist
On 2015-08-20 22:00, Manuel Bouyer wrote: On Thu, Aug 20, 2015 at 09:40:49PM +0200, Johnny Billquist wrote: [...] 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

Re: termcap issue

2015-08-21 Thread Johnny Billquist
On 2015-08-20 21:59, Dave Huang wrote: On 8/20/2015 14:40, Johnny Billquist wrote: I would say that "stty erase ^H" is a suggestion on changing how NetBSD reacts to an ASCII BS character... Hmm, OK, I see what you mean... I wasn't thinking of it in that way (and erase is already set to ^H, so

Re: termcap issue

2015-08-20 Thread Dave Huang
On Aug 20, 2015, at 14:25, Dave Huang wrote: > 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 con

Re: termcap issue

2015-08-20 Thread Manuel Bouyer
On Thu, Aug 20, 2015 at 09:40:49PM +0200, Johnny Billquist wrote: > [...] > >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

Re: termcap issue

2015-08-20 Thread Dave Huang
On 8/20/2015 14:40, Johnny Billquist wrote: I would say that "stty erase ^H" is a suggestion on changing how NetBSD reacts to an ASCII BS character... Hmm, OK, I see what you mean... I wasn't thinking of it in that way (and erase is already set to ^H, so it's not really a change :) I'm actua

Re: termcap issue

2015-08-20 Thread Johnny Billquist
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 (ptkris...@gmail.com) wrote: * John Klos (j...@ziaspace.com) wrote: Sometime between RC1 and RC2, something happened to termcap. I often ssh

Re: termcap issue

2015-08-20 Thread Dave Huang
On 8/20/2015 13:15, Johnny Billquist wrote: I should probably point out that if the system is echoing ^? when you press they key marked "delete", or "your problem is not in NetBSD, but on your Mac. BTW, I should note that it's not just a Mac issue... the PuTTY ssh client on Windows has a setti

Re: termcap issue

2015-08-20 Thread Dave Huang
On 8/20/2015 13:15, Johnny Billquist wrote: On 2015-08-20 19:11, Pongthep Kulkrisada wrote: * Pongthep Kulkrisada (ptkris...@gmail.com) wrote: * John Klos (j...@ziaspace.com) wrote: Sometime between RC1 and RC2, something happened to termcap. I often ssh from a Mac (TERM is xterm-256color) and

Re: termcap issue

2015-08-20 Thread Johnny Billquist
On 2015-08-20 19:11, Pongthep Kulkrisada wrote: * Pongthep Kulkrisada (ptkris...@gmail.com) wrote: * John Klos (j...@ziaspace.com) 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. Ho

Re: termcap issue

2015-08-20 Thread Pongthep Kulkrisada
* Pongthep Kulkrisada (ptkris...@gmail.com) wrote: > * John Klos (j...@ziaspace.com) 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 sys

Re: termcap issue

2015-08-03 Thread Pongthep Kulkrisada
* Martin Husemann (mar...@duskware.de) wrote: > Please file a PR giving more details (like: what method you use to log > in, what terminal emulator you run, what shell you are using, output > of stty -a, your TERM environment settings, ) send-pr with details done. -- Pongthep Kulkrisada "N

Re: termcap issue

2015-08-02 Thread Martin Husemann
On Mon, Aug 03, 2015 at 01:40:35AM +0700, Pongthep Kulkrisada wrote: > 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. Please file a PR giving more details (like: what m

Re: termcap issue

2015-08-02 Thread Pongthep Kulkrisada
* John Klos (j...@ziaspace.com) wrote: > Hi, > > 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

Re: termcap issue

2015-07-30 Thread Greg Troxel
John Klos writes: > 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

Re: termcap issue

2015-07-30 Thread Martin Husemann
On Thu, Jul 30, 2015 at 08:54:00AM +, John Klos wrote: > Hi, > > Sometime between RC1 and RC2, something happened to termcap. Probably this change: usr.bin/tset/set.c 1.18 Restore logic for setting the VERASE character. - use terminfo _unless_ th

termcap issue

2015-07-30 Thread John Klos
Hi, 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. Al