Page 1 of 1

⎕PFKEY & macOS

Posted: Fri Oct 27, 2017 8:02 pm
by dyallaz
Trying to programm a programmable function key, in a DyalogAPL 16 session on macOS 10.13, I type

(')load "',F_ROOT,F_PATH,'ws/FIRST"')⎕PFKEY 2
⎕PFKEY 2
┌→──────────────────────────────┐
│)load "/Volumes/Macintosh HD/Users/andrew/DyalogAPL/ws/FIRST"│
└───────────────────────────────┘

Looks OK. But nothing happens when I push the F2 button on my keyboard. What did I wrong?

Strangely, the command ' ' ⎕PFKEY 6 works effectively. F6 moves the cursor 6 places to the right in the session input line. Coming from APLX I am really puzzled by the Dyalog programming environment.

Re: ⎕PFKEY & macOS

Posted: Sat Oct 28, 2017 3:03 pm
by kai
[]PFKEY works in the Windows development IDE only.

On the Mac you have to use Ride, and Ride does not support []PFKEY.

You can however associate certain actions with certain keystrokes in the Ride configuration.

Re: ⎕PFKEY & macOS

Posted: Mon Oct 30, 2017 2:31 pm
by dyallaz
Thanks for the hint!