[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nano-devel
Subject:    Re: [Nano-devel] ioctl TIOCLINUX, subcode=6 (man console_ioctl)
From:       Mark Majeres <mark () engine12 ! com>
Date:       2014-06-26 19:17:44
Message-ID: CAG40++GXzcw_J2CUSkmh0emS-3NyYeEbAwRoR6+VbgjrFD43Qg () mail ! gmail ! com
[Download RAW message or body]

> As far as I understand that, not the keystroke is coming via the
> ioctl, but just the shift state.  I don't think that is any good:
> what if there is a many-milliseconds delay between getting the
> keystroke via ncurses and calling the ioctl?  Also, this works
> on Linux; does it too on BSD?
> 
> > http://www.linuxforums.org/forum/programming-scripting/195650-ncurses-key-modifiers-console-xwindows-solved.html
> > 
> 

I think the best results would come from calling the ioctl after
ncurses detects input.  The modifier key(s) are typically held down
for a considerable time longer than the modified stroke.  I suppose if
you have quick fingers on a slow machine it could be a problem, but I
would expect the user to adapt pretty easily.

Not sure if it would work as is on BSD, seems easy enough to adapt though.

--Mark

_______________________________________________
Nano-devel mailing list
Nano-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/nano-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic