From 41f2b5a06ee2ec78cd1afb5721929976c3f47a1f Mon Sep 17 00:00:00 2001 From: joerg Date: Mon, 20 Apr 1998 13:37:29 +0000 Subject: 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. --- usr.bin/window/char.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- cgit v1.1