summaryrefslogtreecommitdiffstats
path: root/lib/libcurses/base
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2000-04-04 16:49:58 +0000
committermillert <millert@openbsd.org>2000-04-04 16:49:58 +0000
commit40ecf94db7fa4502a9387680c2502ce8909185e3 (patch)
treec1605f9315ef34dcb9f3df12b44e263f4f48d4a3 /lib/libcurses/base
parentAdd "expert mode" and don't prompt for fsize/bsize/cpg unless an expert (diff)
downloadwireguard-openbsd-40ecf94db7fa4502a9387680c2502ce8909185e3.tar.xz
wireguard-openbsd-40ecf94db7fa4502a9387680c2502ce8909185e3.zip
Update to ncurses-5.0-20000401:
o change unctrl() to render C1 characters (128-159) as ~@, ~A, etc. o trace() function is provided only if TRACE is defined, e.g., in the debug library. Modify related calls to _tracechar() to use unctrl() instead.
Diffstat (limited to 'lib/libcurses/base')
-rw-r--r--lib/libcurses/base/MKunctrl.awk6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libcurses/base/MKunctrl.awk b/lib/libcurses/base/MKunctrl.awk
index b3e05a3dd39..2084622303c 100644
--- a/lib/libcurses/base/MKunctrl.awk
+++ b/lib/libcurses/base/MKunctrl.awk
@@ -1,5 +1,5 @@
-# $OpenBSD: MKunctrl.awk,v 1.1 1999/01/18 19:09:32 millert Exp $
-# $From: MKunctrl.awk,v 1.6 1998/06/06 18:18:07 tom Exp $
+# $OpenBSD: MKunctrl.awk,v 1.2 2000/04/04 16:49:59 millert Exp $
+# $From: MKunctrl.awk,v 1.7 2000/04/01 19:49:26 tom Exp $
##############################################################################
# Copyright (c) 1998 Free Software Foundation, Inc. #
# #
@@ -51,6 +51,8 @@ END {
printf "\"^\\%03o\"", ch + 64
} else if (ch == 127) {
printf "\"^?\""
+ } else if (ch >= 128 && ch < 160) {
+ printf "\"~\\%03o\"", ch - 64
} else {
printf "\"\\%03o\"", ch
gap = gap " "