Ask a Question related to PERL Modules, Design and Development.
-
Mumia W. #1
Curses::UI::Widget - binding function keys
I read the documentation for Curses::UI::Widget on how to bind
control-keys to perl subs. Very nice. However, there are no
instructions on how to bind function keys to perl subs in
Curses::UI::*.
I'm not a newbie, and it took me an hour to find the
information in "perldoc Curses." And even then, that page is
geared toward people who've used curses before. Nothing on
that page, or any document in Curses::* that I've found,
explains how to bind function keys. Fortunately for me, I
figured it out when I saw KEY_F in the list of supported
functions in "perldoc Curses." Whereas it took me an hour to
find it, it would take a newbie a day.
This text should be added to the documentation for
Curses::UI::Widget:
<quote>
The keys recognized by this module are controlled by the
Curses module. Read "perldoc Curses" for more information. You
can bind function keys such as F1 using something like this:
"$cui->set_binding(\&mysub, KEY_F(1));"
</quote>
Mumia W. Guest
-
Determining all shortcut keys in use (including Function keys)?
I'm creating a Windows Acrobat 8 plug-in and would like to know how to find all the current shortcut keys. The Acrobat 8 SDK's Developing Plug-ins... -
xterm function keys
To all who have a clue I would like to hack xterm to provide different function key mappings. so far I have altered the decfuncvalue function... -
Listening for Function keys pressed
Hi all, I'm hoping that I am in the right spot for this query, and that someone can help. I'm very new to flash (Flash MX 2004) and am attempting... -
value binding and function binding
Hi I was just wandering through some lisp code and I saw this: (let ((x 1)) (flet ((x (y) (+ x y))) (x x))) (I'm not sure if the indentation... -
Function keys to post a form
Hi all, I have disabled the function keys (F1-F12). I would like each funtion key to submit a form. I'm not quite sure how to tell each... -
Mumia W. #2
Re: Curses::UI::Widget - binding function keys
On 07/18/2006 12:53 AM, Mumia W. wrote:
Rehash:> [...]
> This text should be added to the documentation for Curses::UI::Widget:
>
> <quote>
> The keys recognized by this module are controlled by the Curses module.
> Read "perldoc Curses" for more information. You can bind function keys
> such as F1 using something like this: "$cui->set_binding(\&mysub,
> KEY_F(1));"
> </quote>
<quote>
The keys recognized by this module are controlled by the
Curses module. Read "perldoc Curses" for more information. You
can bind function keys such as F1 using something like this:
use Curses;
use Curses::UI;
my $cui = new Curses::UI;
$cui->set_binding(\&mysub, KEY_F(1));
sub mysub { }
</quote>
Mumia W. Guest



Reply With Quote

