On Wed, Aug 05, 2009 at 09:05:36PM +0000, 4625 wrote:
> On Wed, 5 Aug 2009, Hugo Villeneuve wrote:
You can run "wsconsctl keyboard.map" to check if those changes relates to your 
keyboard.
> 
> >On Fri, Jul 31, 2009 at 08:49:15PM +0000, 4625 wrote:
> >>How to achieve the adequate behaviour on pressing keys F1-F10 in GoldED+
> >>(message editor); 'HOME' - return to begin of line, 'END' - end of line
> >>in bash prompt and some text/message editors?
> >>
> >>I will explain the problem.
> >>
> >>Golded+: F1-F5 keys should offer a lot of different functions (help,
> >>save, reply, etc...), but offer only 'Quit' actually. Message index
> >>should be appear on key F9, but it will happen on key F10 actually. On
> >>key F5 should be menu 'Answer In Area'. Such menu on F6 actually. The
> >>same problems in Midnight Commander. 'Alt-S', 'Alt-P', 'Alt-I', etc -
> >>should set message attributes, but display cyrillic letter actually.
> >>
> >>'HOME' and 'END' keys will display the '~' almost everywhere in OpenBSD
> >>console.


Add to /etc/wsconsctl.conf and reboot (quick dirty patch):

# To make wscons = to vt220 terminfo db for pc-xt keyboard on i386
keyboard.map+="keycode 59 = Cmd_Screen0 KP_F1"
keyboard.map+="keycode 60 = Cmd_Screen1 KP_F2"
keyboard.map+="keycode 61 = Cmd_Screen2 KP_F3"
keyboard.map+="keycode 62 = Cmd_Screen3 KP_F4"
keyboard.map+="keycode 63 = Cmd_Screen4 F6"
keyboard.map+="keycode 64 = Cmd_Screen5 F7"
keyboard.map+="keycode 65 = Cmd_Screen6 F8"
keyboard.map+="keycode 66 = Cmd_Screen7 F9"
keyboard.map+="keycode 67 = Cmd_Screen8 F10"
keyboard.map+="keycode 68 = Cmd_Screen9 F16"
keyboard.map+="keycode 71 = Find KP_7"
keyboard.map+="keycode 79 = Select KP_1"
keyboard.map+="keycode 199 = Find"
keyboard.map+="keycode 207 = Select"


I got no idea if keycode are consistant across all type of keyboard
on i386. This was made for  my AT keyboard on my Pentium 200. It's
not the same keycodes on mac68k's adb and macppc's usb keyboards.

You can run "wsconsctl keyboard.map" to check if those changes
relates to your keyboard. 

Reply via email to