aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1997-09-15 00:42:04 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1997-09-15 00:42:04 +0000
commitfe38e2f8f4c12eef9c35fc4ec4a49cdf7ca06544 (patch)
treeebc49801987f33948e4ee85c885e66ddedf2c932
parent4541df7be4bcc28009d4872ec56b58e9265d2cf3 (diff)
downloadsrc-fe38e2f8f4c12eef9c35fc4ec4a49cdf7ca06544.tar.gz
src-fe38e2f8f4c12eef9c35fc4ec4a49cdf7ca06544.zip
Allow backspace too
Notes
Notes: svn path=/head/; revision=29433
-rw-r--r--libexec/comsat/comsat.c4
-rw-r--r--usr.bin/write/write.c5
2 files changed, 5 insertions, 4 deletions
diff --git a/libexec/comsat/comsat.c b/libexec/comsat/comsat.c
index f37796c29bd4..18deb62b82c7 100644
--- a/libexec/comsat/comsat.c
+++ b/libexec/comsat/comsat.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: comsat.c,v 1.8 1997/02/22 14:21:23 peter Exp $
+ * $Id: comsat.c,v 1.9 1997/09/15 00:27:49 ache Exp $
*/
#ifndef lint
@@ -296,7 +296,7 @@ jkfprintf(tp, user, file, offset)
*/
if (((ch & 0x80) && ch < 0xA0) ||
(!(ch & 0x80) && !isprint(ch) &&
- !isspace(ch) && ch != '\007')
+ !isspace(ch) && ch != '\a' && ch != '\b')
) {
if (ch & 0x80) {
ch &= ~0x80;
diff --git a/usr.bin/write/write.c b/usr.bin/write/write.c
index 0fa94daeb843..908bda04491f 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;