Here is my problem: I have to remap function keys, so I will go through F1 for now: showkey F1 gives me ^[OP dumpkeys the keymap shows that F1 has keycode 59, and string F1 = "\033[[A"

Alot of the help i have read suggests that i can change the keymap, and use load keys. I was expecting to see string F1 = "\033[[OP". Besides, i arbitrarily changes the string F1 = in the keymap to a random value for test purposes. I used the load key command, the hit showkey and F1, and i still got the original F1 value of ^[OP.

To summarise, I have 2 problems. 1 - Am i using the loadkeys fundtion correctly to load a new keymap? 2 - What have i misunderstood about they keymap i.e. Is (string F1 = ...) where I change what my function key sends?

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.