summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1998-04-20 13:37:29 +0000
committerjoerg <joerg@FreeBSD.org>1998-04-20 13:37:29 +0000
commit41f2b5a06ee2ec78cd1afb5721929976c3f47a1f (patch)
tree06ebe9f9d3167ea15e1ad9db248d2981e4ce790c /usr.bin
parent25761cb8b7f664ba11e9c4b145ab00ec3f95e48a (diff)
downloadFreeBSD-src-41f2b5a06ee2ec78cd1afb5721929976c3f47a1f.zip
FreeBSD-src-41f2b5a06ee2ec78cd1afb5721929976c3f47a1f.tar.gz
Define '\t' as a printable character, so it can be displayed on the
screen. isprint(3) doesn't do this, but isprt() apparently expected this to be the case.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/window/char.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/window/char.h b/usr.bin/window/char.h
index dd4ad27..fc05cfa 100644
--- a/usr.bin/window/char.h
+++ b/usr.bin/window/char.h
@@ -57,5 +57,5 @@ extern char *_unctrl[];
#define ctrl(c) (c & 0x1f)
#define unctrl(c) (_unctrl[(unsigned char) (c)])
#define isctrl(c) iscntrl((unsigned char)(c))
-#define isprt(c) isprint((unsigned char)(c))
+#define isprt(c) (isprint((unsigned char)(c)) || (c) == '\t')
#define isunctrl(c) (strchr("\b\t\n\r", (c)) == NULL && isctrl(c))
OpenPOWER on IntegriCloud