Perfect, thanks.

To handle the redefinition problem I'll just use

FKEYS_jijs_ =: (#~ ~.@:({."1)) FKEYS_jijs_ ,~ ...

Henry Rich

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Dan Bron
> Sent: Friday, September 07, 2007 10:37 AM
> To: 'Programming forum'
> Subject: RE: [Jprogramming] How to set PF key for J session?
> 
> Henry asked:
> > Does anybody have the code that will ...
> > arrange for pressing PF3 to run a certain
> > verb ?
> 
> Something along these lines should work:
> 
>          FKEYS_jijs_ =: FKEYS_jijs_ , 'f8';'1';'Informative 
> Message';'smoutput ''you pressed f8!'''
> 
>          NB.  Press f8 now
>          
>       you pressed f8!
>           
> But since you're asking to reassign F3, and that key already 
> appears in  FKEYS_jijs_  , you'll have to be a little tricker.  The
> easiest method is to prepend, rather than append, your f3 
> config to the table.   Most fool-proof would be to modify the already
> existing row to call your verb (with  i.  and   }  ).
> 
> And, of course, ensure your verb is callable from the jijs locale.  
> 
> -Dan
> 
> ----------------------------------------------------------------------
> For information about J forums see 
> http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to