Curses applications to catch SHIFT + cursor keys

Thomas Dickey dickey at
Fri May 20 12:03:25 UTC 2016

----- Original Message -----
| From: "Sebastian Gniazdowski" <sgniazdowski at>
| To: freebsd-questions at
| Sent: Friday, May 20, 2016 2:26:27 AM
| Subject: Curses applications to catch SHIFT + cursor keys
| Hello,
| is there a way to make curses applications correctly catch SHIFT +
| cursor left / cursor right? I tested this with zsh and curses module,
| and it doesn't work. Also, following short test application:
| shows that KEY_SLEFT, KEY_SRIGHT aren't catched. On X11 pressing the
| combinations outputs an escape series. Is there any solution?

It's doable, by calling use_extended_names (an ncurses feature).
However: it would only be useful in the ncurses port, since FreeBSD base install
uses a termcap file which lacks all of the extended keys.

Thomas E. Dickey <dickey at>

More information about the freebsd-questions mailing list