Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/tset Report disabled control characters as <undef> (...



details:   https://anonhg.NetBSD.org/src/rev/fd328f427c7b
branches:  trunk
changeset: 479733:fd328f427c7b
user:      kleink <kleink%NetBSD.org@localhost>
date:      Mon Dec 20 14:36:11 1999 +0000

description:
Report disabled control characters as <undef> (like stty(1) does); fixes
PR bin/9019 from SAKAI Atsushi <a-sakai%echo.nuee.nagoya-u.ac.jp@localhost>.

diffstat:

 usr.bin/tset/tset.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 4fd626d279a3 -r fd328f427c7b usr.bin/tset/tset.c
--- a/usr.bin/tset/tset.c       Mon Dec 20 12:44:04 1999 +0000
+++ b/usr.bin/tset/tset.c       Mon Dec 20 14:36:11 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tset.c,v 1.8 1998/12/19 23:19:45 christos Exp $        */
+/*     $NetBSD: tset.c,v 1.9 1999/12/20 14:36:11 kleink Exp $  */
 
 /*-
  * Copyright (c) 1980, 1991, 1993
@@ -43,7 +43,7 @@
 #if 0
 static char sccsid[] = "@(#)tset.c     8.1 (Berkeley) 6/9/93";
 #endif
-__RCSID("$NetBSD: tset.c,v 1.8 1998/12/19 23:19:45 christos Exp $");
+__RCSID("$NetBSD: tset.c,v 1.9 1999/12/20 14:36:11 kleink Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -272,7 +272,9 @@
        else if (new < 040) {
                new ^= 0100;
                (void)fprintf(stderr, "control-%c (^%c).\n", new, new);
-       } else
+       } else if (new == _POSIX_VDISABLE)
+               (void)fprintf(stderr, "<undef>.\n");
+       else
                (void)fprintf(stderr, "%c.\n", new);
 }
 



Home | Main Index | Thread Index | Old Index