aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/window/char.h
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>1998-04-20 13:37:29 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>1998-04-20 13:37:29 +0000
commit6738ac4ff361cf4063a48ce7305464d53e9c5f53 (patch)
tree24156f7ced090740b44cc6150359751da4b04c3a /usr.bin/window/char.h
parent4970253b4f99d08faea79235ec87dd0461038a3e (diff)
downloadsrc-6738ac4ff361cf4063a48ce7305464d53e9c5f53.tar.gz
src-6738ac4ff361cf4063a48ce7305464d53e9c5f53.zip
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.
Notes
Notes: svn path=/head/; revision=35334
Diffstat (limited to 'usr.bin/window/char.h')
-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 dd4ad2717994..fc05cfa668ff 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))