Return to BSD News archive
Newsgroups: comp.unix.bsd.netbsd.misc Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!oleane!tank.news.pipex.net!pipex!swrinde!elroy.jpl.nasa.gov!lll-winken.llnl.gov!uop!pacbell.com!amdahl.com!juts.ccc.amdahl.com!azcb0 From: azcb0@ccc.amdahl.com (Alistair G. Crooks) Subject: Re: Mapping keyboard on NetBSD/i386? Message-ID: <1995Jul21.133942.9864@ccc.amdahl.com> Reply-To: azcb0@JUTS.ccc.amdahl.com (Alistair G. Crooks) Organization: Amdahl Corporation, Sunnyvale CA References: <TAWEIL.95Jul20145519@skat.usc.edu> Date: Fri, 21 Jul 1995 13:39:42 GMT Lines: 31 In article <TAWEIL.95Jul20145519@skat.usc.edu> taweil@skat.usc.edu (Ta-Wei Li) writes: >Hi, > > I just got NetBSD to run on my PC and I'd like to know how I can >map the keyboard so the CAP lock key act like Ctrl key. If you're using pccons.c, you can recompile the kernel so that the two keys are transposed, or making whatever mappings you care to. Indeed, I submitted a PR some time ago using the kernel option CAPS_IS_CONTROL to swap the two keys - I assume nothing's been done about it. Mail me if you want this. (BSD/OS uses CAPS_IS_CONTROL, I'm told). I also saw some mail from someone who had made a user-level program to do the mapping. If you are using pcvt, then you can remap the keys. If you're using XFree86, use xmodmap to swap the two keys. i.e. put the following in ~/.Xmodmap, and make sure .xinitrc points to ~/.Xmodmap. remove Lock = Caps_Lock remove Control = Control_L keysym Control_L = Caps_Lock keysym Caps_Lock = Control_L add Lock = Caps_Lock add Control = Control_L Alistair -- Alistair G. Crooks (agc@uts.amdahl.com) +44 125 234 6377 Amdahl European HQ, Dogmersfield Park, Hartley Wintney, Hants RG27 8TE, UK. [These are only my opinions, and certainly not those of Amdahl Corporation]