Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev Add an "iopener" keymap variant, giving us.iopener and



details:   https://anonhg.NetBSD.org/src/rev/42149996b9c8
branches:  trunk
changeset: 484925:42149996b9c8
user:      tsarna <tsarna%NetBSD.org@localhost>
date:      Fri Apr 14 23:11:08 2000 +0000

description:
Add an "iopener" keymap variant, giving us.iopener and
us.iopener.swapctrlcaps.  This makes F1 ("Back") into Escape, and shifts
the other keys over by one, so F2-F12 ("Forward"-"Home") become F1-F11.

diffstat:

 sys/dev/pckbc/wskbdmap_mfii.c |  21 ++++++++++++++++++++-
 sys/dev/wscons/wsksymdef.h    |   6 ++++--
 2 files changed, 24 insertions(+), 3 deletions(-)

diffs (72 lines):

diff -r cff9e8874b22 -r 42149996b9c8 sys/dev/pckbc/wskbdmap_mfii.c
--- a/sys/dev/pckbc/wskbdmap_mfii.c     Fri Apr 14 23:00:26 2000 +0000
+++ b/sys/dev/pckbc/wskbdmap_mfii.c     Fri Apr 14 23:11:08 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wskbdmap_mfii.c,v 1.13 2000/03/05 08:56:53 soren Exp $ */
+/*     $NetBSD: wskbdmap_mfii.c,v 1.14 2000/04/14 23:11:08 tsarna Exp $        */
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -437,6 +437,22 @@
     KC(58),  KS_Cmd1,          KS_Control_L,
 };
 
+static const keysym_t pckbd_keydesc_iopener[] = {
+/*  pos      command           normal          shifted */
+    KC(59),  KS_Cmd_Debugger,  KS_Escape,
+    KC(60),  KS_Cmd_Screen0,   KS_f1,
+    KC(61),  KS_Cmd_Screen1,   KS_f2,
+    KC(62),  KS_Cmd_Screen2,   KS_f3,
+    KC(63),  KS_Cmd_Screen3,   KS_f4,
+    KC(64),  KS_Cmd_Screen4,   KS_f5,
+    KC(65),  KS_Cmd_Screen5,   KS_f6,
+    KC(66),  KS_Cmd_Screen6,   KS_f7,
+    KC(67),  KS_Cmd_Screen7,   KS_f8,
+    KC(68),  KS_Cmd_Screen8,   KS_f9,
+    KC(87),  KS_Cmd_Screen9,   KS_f10,
+    KC(88),                    KS_f11,
+};
+
 #define KBD_MAP(name, base, map) \
                        { name, base, sizeof(map)/sizeof(keysym_t), map }
 
@@ -457,10 +473,13 @@
        KBD_MAP(KB_US | KB_DECLK,       KB_US,  pckbd_keydesc_us_declk),
        KBD_MAP(KB_US | KB_DVORAK,      KB_US,  pckbd_keydesc_us_dvorak),
        KBD_MAP(KB_US | KB_SWAPCTRLCAPS, KB_US, pckbd_keydesc_swapctrlcaps),
+       KBD_MAP(KB_US | KB_IOPENER, KB_US,      pckbd_keydesc_iopener),
        KBD_MAP(KB_JP | KB_SWAPCTRLCAPS, KB_JP, pckbd_keydesc_swapctrlcaps),
        KBD_MAP(KB_FR | KB_SWAPCTRLCAPS, KB_FR, pckbd_keydesc_swapctrlcaps),
        KBD_MAP(KB_US | KB_DVORAK | KB_SWAPCTRLCAPS,    KB_US | KB_DVORAK,
                pckbd_keydesc_swapctrlcaps),
+       KBD_MAP(KB_US | KB_IOPENER | KB_SWAPCTRLCAPS,   KB_US | KB_IOPENER,
+               pckbd_keydesc_swapctrlcaps),
        {0, 0, 0, 0}
 };
 
diff -r cff9e8874b22 -r 42149996b9c8 sys/dev/wscons/wsksymdef.h
--- a/sys/dev/wscons/wsksymdef.h        Fri Apr 14 23:00:26 2000 +0000
+++ b/sys/dev/wscons/wsksymdef.h        Fri Apr 14 23:11:08 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wsksymdef.h,v 1.30 2000/03/19 06:31:17 tsarna Exp $ */
+/*     $NetBSD: wsksymdef.h,v 1.31 2000/04/14 23:11:08 tsarna Exp $ */
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -476,6 +476,7 @@
 #define KB_SWAPCTRLCAPS                0x0008  /* Swap Left-Control and Caps-Lock */
 #define KB_DVORAK              0x0010  /* Dvorak layout */
 #define KB_METAESC             0x0020  /* generate ESC prefix on ALT-key */
+#define KB_IOPENER             0x0040  /* f1-f12 -> ESC,f1-f11 */
 
 #define KB_ENCTAB \
        { KB_USER,      "user" }, \
@@ -495,6 +496,7 @@
        { KB_LK401,     "lk401" }, \
        { KB_SWAPCTRLCAPS, "swapctrlcaps" }, \
        { KB_DVORAK,    "dvorak" }, \
-       { KB_METAESC,   "metaesc" }
+       { KB_METAESC,   "metaesc" }, \
+       { KB_IOPENER,   "iopener" }
 
 #endif /* !_DEV_WSCONS_WSKSYMDEF_H_ */



Home | Main Index | Thread Index | Old Index