[slang-users] Keyboard modifiers

John E. Davis davis at space.mit.edu
Tue Jun 27 22:58:10 EDT 2006


leslie.polzer at gmx.net <leslie.polzer at gmx.net> wrote:
>  I would like to get the state of keyboard modifiers with the SLang C
>library, to discern between TAB and Shift+TAB.

Under windows, such support could be added because the win32 API
provides that information.  Under other systems the answer depends
upon the terminal and its ability to provide slang a unique
key-sequence for Shift-TAB.  I see that in the version of rxvt that I
am using, Shift-TAB generates the 3 character sequence "ESC [ Z".
So, I could exploit that in the slang apps that I use by binding the
key-sequence "\e[Z" to some function.

--John




More information about the slang-users-l mailing list