Subject: port-i386/899: Switching CapsLock and Ctrl keys on pccons i386 port
To: None <gnats-admin@NetBSD.ORG>
From: Alistair G. Crooks <agc@uts.amdahl.com>
List: netbsd-bugs
Date: 03/23/1995 08:35:09
>Number: 899
>Category: port-i386
>Synopsis: fix to switch functions of CapsLock and Ctrl keys in pccons.c
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Thu Mar 23 08:35:02 1995
>Originator: Alistair G. Crooks
>Organization:
Amdahl
>Release: March 18th tar_files
>Environment:
NetBSD/i386 1.0A
System: NetBSD pumpy.osg.uk.amdahl.com 1.0A NetBSD 1.0A (PUMPY) #0: Mon Mar 20 12:55:07 GMT 1995 root@pumpy.osg.uk.amdahl.com:/usr/src/sys/arch/i386/compile/PUMPY i386
>Description:
A fix to switch CapsLock and Ctrl keys for pccons.c on the
i386 port. I'm told BSD/OS uses the kernel config option
CAPS_IS_CONTROL to do this, so I've done the same for
pccons.c. This fix has the added attraction that the LEDs
follow the mapped key, so that every time the logical CapsLock
key is depressed, the Cap LED is toggled. Using xmodmap isn't
an option for some people, as they don't use X.
>How-To-Repeat:
Move from another architecture to a PC/AT keyboard on the i386 port.
>Fix:
Apply the following fix:
*** /usr/src/sys/arch/i386/isa/pccons.c.orig Thu Mar 23 15:59:03 1995
--- /usr/src/sys/arch/i386/isa/pccons.c Thu Mar 23 15:58:43 1995
***************
*** 1267,1273 ****
--- 1267,1277 ----
ASCII, "[", "{", "\033", /* 26 [ */
ASCII, "]", "}", "\035", /* 27 ] */
ASCII, "\r", "\r", "\n", /* 28 return */
+ #ifdef CAPS_IS_CONTROL
+ CAPS, "", "", "", /* 29 caps */
+ #else
CTL, "", "", "", /* 29 control */
+ #endif
ASCII, "a", "A", "\001", /* 30 a */
ASCII, "s", "S", "\023", /* 31 s */
ASCII, "d", "D", "\004", /* 32 d */
***************
*** 1296,1302 ****
--- 1300,1310 ----
KP, "*", "*", "*", /* 55 kp * */
ALT, "", "", "", /* 56 alt */
ASCII, " ", " ", "\000", /* 57 space */
+ #ifdef CAPS_IS_CONTROL
+ CTL, "", "", "", /* 58 control */
+ #else
CAPS, "", "", "", /* 58 caps */
+ #endif
FUNC, "\033[M", "\033[Y", "\033[k", /* 59 f1 */
FUNC, "\033[N", "\033[Z", "\033[l", /* 60 f2 */
FUNC, "\033[O", "\033[a", "\033[m", /* 61 f3 */
>Audit-Trail:
>Unformatted:
To: gnats-bugs@NetBSD.ORG
Subject: CAPS_IS_CONTROL switch for pccons.c
From: agc@uts.amdahl.com
Reply-To: agc@uts.amdahl.com