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.
This commit is contained in:
jdolecek 2001-06-04 09:45:03 +00:00
parent 80e7db0fcd
commit 07677cc805

View File

@ -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);