Hi, On Sun, Aug 01, 1999 at 16:36 +0200, James (Jim) Hatridge wrote:
Thanks this was what I was looking for. A couple of notes about this. First in SuSE you'll find the inputrc file in /etc. If you don't have it in your /~home files like me. I just copied it to my /~home and changed it to add the command I wanted.
That's the case with most configuration files -- there's a global one in /etc and a personal one in ~/.
The next question is I have a win98 keyboard. It has two windows keys and 3 buttons. None of these give anything when I use the Ctrl-V. Any idea how to get them to work?
Yep. But it'll be a bit more complicated. First find out what keyboard layout you're using (look for `KEYTABLE' in /etc/rc.config). Let's assume it's KEYTABLE="de-latin1-nodeadkeys.map.gz" Find the directory where the file de-latin1-nodeadkeys.map.gz is stored (it's somewhere in a subdirectory of /usr/lib/kbd). cd to that dir and create a new file `my_keymap.map'. It should look somewhat like this: -------------------------------------------------------------> # <- this is a comment # Load my default keyboard layout include "de-latin1-nodeadkeys.map" # Assign keysyms (e. g. `F100') to keycodes (e. g. `125') for # the Windows keys keycode 125 = F100 keycode 126 = F101 keycode 127 = F102 # Assign some strings to the keysyms string F100 = "\033[100~" string F101 = "\033[101~" string F102 = "\033[101~" <------------------------------------------------------------- The keycodes I used in the above example might be different on your keyboard. Use `showkey' to find it out. I don't know if there are dedicated keysyms for the Windows keys. I haven't found any so I've used F100 onwards (these shouldn't be in use already unless you have a HUGE keyboard ;-) Same goes for the strings ("\033[100~", ...) I've used. If anyone is familiar with the naming conventions they follow, I'd be interested to learn them. To make sure you don't use a string that is already assigned to another key, do a dumpkeys --long-info |less and make sure the strings you want to use aren't in the list dumpkeys shows you. That's it. Now it's time to load the keymap (`loadkeys my_keymap.map') and test it. Ctrl-V + keypress should now create some output you can use in your ~/.inputrc. If there aren't any errors, do a gzip my_keymap.map and edit /etc/rc.config, replace the KEYTABLE="de-latin1-nodeadkeys.map.gz" with KEYTABLE="my_keymap.map.gz" Ciao, Stefan