Is it possible in the Unix terminal to change some of the keyboard keys?
For example: when I press
_ gets printed?
If this is indeed possible, how do I go about doing that?
I'm on Ubuntu.
To quote from here:
To clarify: the
This is so I can dynamically map Caps to Esc.
Really there is no limitation. Feel free to call xmodmap from ~/.xinitrc, ~/.bash_profile, from a custom script, etc.
To be honest I have never tried to do what you are trying. I have added alternate key bindings (key combination) for a terminal (non-X) before though.
You can see your key bindings with:
You will use the related programs to do the additional research and modifications.
For me to make the change in Slackware it is pretty easy I spent some time looking around in Ubuntu but did not find the same files
If you want to do this in the X Windowing System, you can use Xmodmap. I've never had a grip on the syntax, so find a working example, and go from there.