[slang-users] Keyboard modifiers
leslie.polzer at gmx.net
leslie.polzer at gmx.net
Wed Jun 28 05:33:28 EDT 2006
On Tue, Jun 27, 2006 at 10:58:10PM -0400, John E. Davis wrote:
> 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.
Shift+TAB returns the same value as TAB with the terminals I have tested.
Is there any way to change this behaviour, apart from switching
terminals?
As a side note, Shift+TAB is working perfectly with some Curses
application I tested. Any guess on how they'd do that?
Leslie
--
gpg --keyserver pgp.mit.edu --recv-keys 0x52D70289
http://nic-nac-project.de/~skypher/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://mailman.jtan.com/pipermail/slang-users-l/attachments/20060628/ab84d764/attachment.bin
More information about the slang-users-l
mailing list