Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I move keys around on a Sun keyboard, for example exchanging the Caps Lock and Control keys on a Type 5 keyboard?

0
Posted

How can I move keys around on a Sun keyboard, for example exchanging the Caps Lock and Control keys on a Type 5 keyboard?

0

It depends on which window system you’re running, if any. If you’re not using any window system, or you’re using a window system such as SunView that uses the OS’s keyboard event translation mechanism, you can dump the tables used by the OS’s keyboard event translation mechanism with the “dumpkeys” command, and load changes to that table with the “loadkeys” command; see LOADKEYS(1). If you’re using X11 – either in its MIT incarnation, or Sun’s Open Windows incarnation – or some other window system that shuts off the OS’s keyboard event translation mechanism, you need to use the window system’s commands, if any, for that function. In X11, the command for that is “xmodmap”; its translation tables can be printed with “xmodmap -pk”, and changes to that table can be loaded with “xmodmap” as well. NOTE: in the particular case of the Control and Caps Lock keys, while MIT X appears to handle interchanging those two keys correctly, so that the new Caps Lock key is a toggle and the new Control k

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.