summaryrefslogtreecommitdiffstats
path: root/lib/libcurses/tinfo/comp_scan.c
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/tinfo/comp_scan.c
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/tinfo/comp_scan.c')
-rw-r--r--lib/libcurses/tinfo/comp_scan.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/libcurses/tinfo/comp_scan.c b/lib/libcurses/tinfo/comp_scan.c
index 0b23157bc8b..d2b7b78ecb8 100644
--- a/lib/libcurses/tinfo/comp_scan.c
+++ b/lib/libcurses/tinfo/comp_scan.c
@@ -50,7 +50,7 @@
#include <term_entry.h>
#include <tic.h>
-MODULE_ID("$From: comp_scan.c,v 1.41 2000/03/25 17:25:33 tom Exp $")
+MODULE_ID("$From: comp_scan.c,v 1.42 2000/04/01 19:08:36 tom Exp $")
/*
* Maximum length of string capability we'll accept before raising an error.
@@ -196,7 +196,7 @@ _nc_get_token(void)
#endif
&& !strchr(terminfo_punct, (char) ch)) {
_nc_warning("Illegal character (expected alphanumeric or %s) - %s",
- terminfo_punct, _tracechar((chtype) ch));
+ terminfo_punct, unctrl(ch));
_nc_panic_mode(separator);
goto start_token;
}
@@ -331,7 +331,7 @@ _nc_get_token(void)
case '@':
if ((ch = next_char()) != separator)
_nc_warning("Missing separator after `%s', have %s",
- buffer, _tracechar((chtype) ch));
+ buffer, unctrl(ch));
_nc_curr_token.tk_name = buffer;
type = CANCEL;
break;
@@ -369,8 +369,7 @@ _nc_get_token(void)
default:
/* just to get rid of the compiler warning */
type = UNDEF;
- _nc_warning("Illegal character - %s",
- _tracechar((chtype) ch));
+ _nc_warning("Illegal character - %s", unctrl(ch));
}
} /* end else (first_column == FALSE) */
} /* end else (ch != EOF) */
@@ -469,8 +468,7 @@ _nc_trans_string(char *ptr, char *last)
_nc_err_abort("Premature EOF");
if (!(is7bits(ch) && isprint(ch))) {
- _nc_warning("Illegal ^ character - %s",
- _tracechar((unsigned char) ch));
+ _nc_warning("Illegal ^ character - %s", unctrl(ch));
}
if (ch == '?') {
*(ptr++) = '\177';
@@ -564,7 +562,7 @@ _nc_trans_string(char *ptr, char *last)
default:
_nc_warning("Illegal character %s in \\ sequence",
- _tracechar((unsigned char) ch));
+ unctrl(ch));
*(ptr++) = (char) ch;
} /* endswitch (ch) */
} /* endelse (ch < '0' || ch > '7') */