diff options
author | Joerg Wunsch <joerg@FreeBSD.org> | 1998-04-20 13:37:29 +0000 |
---|---|---|
committer | Joerg Wunsch <joerg@FreeBSD.org> | 1998-04-20 13:37:29 +0000 |
commit | 6738ac4ff361cf4063a48ce7305464d53e9c5f53 (patch) | |
tree | 24156f7ced090740b44cc6150359751da4b04c3a /usr.bin/window/char.h | |
parent | 4970253b4f99d08faea79235ec87dd0461038a3e (diff) | |
download | src-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.h | 2 |
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)) |