slang-users mailing list

[2006 Date Index] [2006 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: [slang-users] Keyboard modifiers


leslie.polzer@xxxxxxx <leslie.polzer@xxxxxxx> 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

_______________________________________________
To unsubscribe, visit http://jedsoft.org/slang/mailinglists.html


[2006 date index] [2006 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]