Discussion:
Delete key not working after upgrade from 1.8 to 1.9a
Patrick
2014-09-02 18:17:00 UTC
Permalink
I just upgraded my tmux install on my FreeBSD server from 1.8 to 1.9a.
Since doing so, when I SSH in, my backspace (delete key on a Mac keyboard)
no longer functions within the tmux command prompt. My 256 color support
also stopped working with my TERM=xterm-256color, and I had to set it to
either TERM=screen-256color or TERM=xterm and invoke with tmux -2 to get it
back. I thought it might be related, but it also doesn't work with any
other TERM setting.

Any tips on where I could look to restore this crucial key support within
the tmux command prompt would be greatly appreciated.

Thanks,

Patrick
Patrick
2014-09-02 18:33:07 UTC
Permalink
Never mind; for some reason, FreeBSD adds the following patch when it
builds tmux:

--- tty-keys.c.orig 2013-03-27 14:37:25.000000000 +0100

+++ tty-keys.c 2013-03-27 14:37:44.000000000 +0100

@@ -529,8 +529,6 @@

* used. termios should have a better idea.

*/

bspace = tty->tio.c_cc[VERASE];

- if (bspace != _POSIX_VDISABLE && key == bspace)

- key = KEYC_BSPACE;



goto complete_key;


Disabling that restores sane behaviour.
Post by Patrick
I just upgraded my tmux install on my FreeBSD server from 1.8 to 1.9a.
Since doing so, when I SSH in, my backspace (delete key on a Mac keyboard)
no longer functions within the tmux command prompt. My 256 color support
also stopped working with my TERM=xterm-256color, and I had to set it to
either TERM=screen-256color or TERM=xterm and invoke with tmux -2 to get it
back. I thought it might be related, but it also doesn't work with any
other TERM setting.
Any tips on where I could look to restore this crucial key support within
the tmux command prompt would be greatly appreciated.
Thanks,
Patrick
Rhialto
2014-09-02 18:49:24 UTC
Permalink
Post by Patrick
Never mind; for some reason, FreeBSD adds the following patch when it
- if (bspace != _POSIX_VDISABLE && key == bspace)
- key = KEYC_BSPACE;
The reason for that patch is that it makes it impossible to type a
backspace in some cases, by changing BS to DEL. (Note that the
KEYC_BSPACE is actually ASCII DEL, not ASCII BS).

-Olaf.
--
___ Olaf 'Rhialto' Seibert -- The Doctor: No, 'eureka' is Greek for
\X/ rhialto/at/xs4all.nl -- 'this bath is too hot.'
Rhialto
2014-09-02 18:50:17 UTC
Permalink
Post by Rhialto
Post by Patrick
Never mind; for some reason, FreeBSD adds the following patch when it
- if (bspace != _POSIX_VDISABLE && key == bspace)
- key = KEYC_BSPACE;
The reason for that patch is that it makes it impossible to type a
ehm, that is unclearly formulated. The code as-is makes it impossible,
the patch makes it possible again.
Post by Rhialto
backspace in some cases, by changing BS to DEL. (Note that the
KEYC_BSPACE is actually ASCII DEL, not ASCII BS).
-Olaf.
--
___ Olaf 'Rhialto' Seibert -- The Doctor: No, 'eureka' is Greek for
\X/ rhialto/at/xs4all.nl -- 'this bath is too hot.'
Loading...