From 07677cc805525fdea4b27991813a78e61c500927 Mon Sep 17 00:00:00 2001 From: jdolecek Date: Mon, 4 Jun 2001 09:45:03 +0000 Subject: [PATCH] Use back the 'u'&037 form - since it's CTRL-u, it's more readable that way Use \007 instead of symbolic constant, since that's what is more often used. Pointed out by Robert Elz. --- sys/dev/cons.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/cons.c b/sys/dev/cons.c index bde2e7f2f958..80c152b050c8 100644 --- a/sys/dev/cons.c +++ b/sys/dev/cons.c @@ -1,4 +1,4 @@ -/* $NetBSD: cons.c,v 1.39 2001/06/03 17:56:10 jdolecek Exp $ */ +/* $NetBSD: cons.c,v 1.40 2001/06/04 09:45:03 jdolecek Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -278,14 +278,14 @@ cngetsn(cp, size) } continue; case '@': - case '\025': /* nak */ + case 'u'&037: /* CTRL-u */ len = 0; lp = cp; printf("\n"); continue; default: if (len + 1 >= size || c < ' ') { - printf("\b"); + printf("\007"); continue; } printf("%c", c);