Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 May 2016 07:58:00 -0400 (EDT)
From:      Thomas Dickey <dickey@his.com>
To:        Sebastian Gniazdowski <sgniazdowski@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Curses applications to catch SHIFT + cursor keys
Message-ID:  <21413114.7193453.1463745480420.JavaMail.root@his.com>
In-Reply-To: <CAKc7PVBszCaWzZjgC9evmi0TrZGgYsySmXCC1dd9haycsHOgow@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
----- Original Message -----
| From: "Sebastian Gniazdowski" <sgniazdowski@gmail.com>
| To: freebsd-questions@freebsd.org
| 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:
| 
| http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/1.0-RELEASE/ports/ss/sunfkeys/f1.c
| 
| 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@invisible-island.net>
http://invisible-island.net
ftp://invisible-island.net



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?21413114.7193453.1463745480420.JavaMail.root>