diff options
author | ache <ache@FreeBSD.org> | 1997-09-15 00:42:04 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-09-15 00:42:04 +0000 |
commit | 2b00c45114fc897afa8e0e7e974b0da6ac989e72 (patch) | |
tree | e85d0613cfe0962f70d66cd121e5fd01cb351552 /usr.bin | |
parent | c823c67692a1df5afe723631c9daa9aaaff908c8 (diff) | |
download | FreeBSD-src-2b00c45114fc897afa8e0e7e974b0da6ac989e72.zip FreeBSD-src-2b00c45114fc897afa8e0e7e974b0da6ac989e72.tar.gz |
Allow backspace too
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/write/write.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/write/write.c b/usr.bin/write/write.c index 0fa94da..908bda0 100644 --- a/usr.bin/write/write.c +++ b/usr.bin/write/write.c @@ -45,7 +45,7 @@ static const char copyright[] = static char sccsid[] = "@(#)write.c 8.1 (Berkeley) 6/6/93"; #endif static const char rcsid[] = - "$Id: write.c,v 1.8 1997/09/15 00:08:19 ache Exp $"; + "$Id: write.c,v 1.9 1997/09/15 00:17:38 ache Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -312,7 +312,8 @@ wr_fputs(s) PUTC('\r'); } else if (((*s & 0x80) && *s < 0xA0) || /* disable upper controls */ - (!isprint(*s) && !isspace(*s) && *s != '\007') + (!isprint(*s) && !isspace(*s) && + *s != '\a' && *s != '\b') ) { if (*s & 0x80) { *s &= ~0x80; |