Source-Changes-HG archive

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

[src/trunk]: src/games/sail Don't define esc-[ as a custom key sequence becau...



details:   https://anonhg.NetBSD.org/src/rev/5e482a07e235
branches:  trunk
changeset: 756850:5e482a07e235
user:      dholland <dholland%NetBSD.org@localhost>
date:      Fri Aug 06 03:10:26 2010 +0000

description:
Don't define esc-[ as a custom key sequence because it steps on vt
function keys.

diffstat:

 games/sail/pl_7.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 580026be810b -r 5e482a07e235 games/sail/pl_7.c
--- a/games/sail/pl_7.c Fri Aug 06 00:07:05 2010 +0000
+++ b/games/sail/pl_7.c Fri Aug 06 03:10:26 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pl_7.c,v 1.38 2009/08/12 09:05:08 dholland Exp $       */
+/*     $NetBSD: pl_7.c,v 1.39 2010/08/06 03:10:26 dholland Exp $       */
 
 /*
  * Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)pl_7.c     8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: pl_7.c,v 1.38 2009/08/12 09:05:08 dholland Exp $");
+__RCSID("$NetBSD: pl_7.c,v 1.39 2010/08/06 03:10:26 dholland Exp $");
 #endif
 #endif /* not lint */
 
@@ -152,7 +152,9 @@
         * Define esc-x keys
         */
        for (ch = 0; ch < 127; ch++) {
-               define_esc_key(ch);
+               if (ch != '[') {
+                       define_esc_key(ch);
+               }
        }
 
        done_curses++;



Home | Main Index | Thread Index | Old Index