Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/wscons output ^_ on control-/ like xterm does.



details:   https://anonhg.NetBSD.org/src/rev/792d53ca3af5
branches:  trunk
changeset: 755981:792d53ca3af5
user:      ahoka <ahoka%NetBSD.org@localhost>
date:      Thu Jul 01 14:49:34 2010 +0000

description:
output ^_ on control-/ like xterm does.

diffstat:

 sys/dev/wscons/wskbd.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 10e1debe6feb -r 792d53ca3af5 sys/dev/wscons/wskbd.c
--- a/sys/dev/wscons/wskbd.c    Thu Jul 01 14:22:12 2010 +0000
+++ b/sys/dev/wscons/wskbd.c    Thu Jul 01 14:49:34 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wskbd.c,v 1.128 2010/05/31 04:27:18 dholland Exp $ */
+/* $NetBSD: wskbd.c,v 1.129 2010/07/01 14:49:34 ahoka Exp $ */
 
 /*
  * Copyright (c) 1996, 1997 Christopher G. Demetriou.  All rights reserved.
@@ -105,7 +105,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wskbd.c,v 1.128 2010/05/31 04:27:18 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wskbd.c,v 1.129 2010/07/01 14:49:34 ahoka Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -1845,6 +1845,9 @@
                                res = KS_Escape + (res - KS_3);
                        else if (res == KS_8)
                                res = KS_Delete;
+                       /* convert CTL-/ to ^_ as xterm does (undo in emacs) */
+                       else if (res == KS_slash)
+                               res = KS_underscore & 0x1f;
                }
                if (MOD_ONESET(id, MOD_ANYMETA)) {
                        if (id->t_flags & WSKFL_METAESC) {



Home | Main Index | Thread Index | Old Index