Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/libcurses/director Add handling for backspace spec...



details:   https://anonhg.NetBSD.org/src/rev/8c9d629ef991
branches:  trunk
changeset: 1026269:8c9d629ef991
user:      blymn <blymn%NetBSD.org@localhost>
date:      Mon Nov 15 21:45:46 2021 +0000

description:
Add handling for backspace special character (\b)

diffstat:

 tests/lib/libcurses/director/testlang_conf.l |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r ebb02447ab1f -r 8c9d629ef991 tests/lib/libcurses/director/testlang_conf.l
--- a/tests/lib/libcurses/director/testlang_conf.l      Mon Nov 15 17:41:20 2021 +0000
+++ b/tests/lib/libcurses/director/testlang_conf.l      Mon Nov 15 21:45:46 2021 +0000
@@ -1,5 +1,5 @@
 %{
-/*     $NetBSD: testlang_conf.l,v 1.25 2021/02/25 00:50:10 rillig Exp $        */
+/*     $NetBSD: testlang_conf.l,v 1.26 2021/11/15 21:45:46 blymn Exp $         */
 
 /*-
  * Copyright 2009 Brett Lymn <blymn%NetBSD.org@localhost>
@@ -92,6 +92,12 @@
                        }
 
                        switch (*p) {
+                       case 'b':
+                               /* backspace */
+                               *q++ = '\b';
+                               p++;
+                               break;
+
                        case 'e':
                                /* escape */
                                *q++ = '\e';



Home | Main Index | Thread Index | Old Index