diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1994-12-02 06:40:24 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1994-12-02 06:40:24 +0000 |
| commit | 795172f7a504475a68702297052619a5c90dbfbf (patch) | |
| tree | 0beef683196d6d2f76165d3756c20ac09c0ee20b /lib/libncurses/lib_unctrl.c | |
| parent | 766ee5695e87f2a4f5c3d4fb858e68e3369ac401 (diff) | |
Notes
Diffstat (limited to 'lib/libncurses/lib_unctrl.c')
| -rw-r--r-- | lib/libncurses/lib_unctrl.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libncurses/lib_unctrl.c b/lib/libncurses/lib_unctrl.c index 3c8f5831fb60..b0f10c2b4ef5 100644 --- a/lib/libncurses/lib_unctrl.c +++ b/lib/libncurses/lib_unctrl.c @@ -1,4 +1,6 @@ +#ifdef __FreeBSD__ #include <ctype.h> +#endif #include <unctrl.h> char * @@ -6,7 +8,11 @@ char * { static char buffer[3] = "^x"; - if (isgraph(uch)) { +#ifdef __FreeBSD__ + if (isprint(uch)) { +#else + if ((uch & 0x60) != 0 && uch != 0x7F) { +#endif /* * Printable character. Simply return the character as a one-character * string. |
