From: Andrei Borzenkov Date: Wed, 16 Dec 2015 16:20:10 +0000 (+0300) Subject: Erase backspaced character in grub_username_get X-Git-Tag: 2.02-beta3~156 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7136b545c1f3a471766b34a38afd370d4b0915d8;p=thirdparty%2Fgrub.git Erase backspaced character in grub_username_get It probably does not work across linefeed, but hopefully user names are not that long (and nobody is using terminal that small). --- diff --git a/grub-core/normal/auth.c b/grub-core/normal/auth.c index 8615c48c3..7338f8245 100644 --- a/grub-core/normal/auth.c +++ b/grub-core/normal/auth.c @@ -177,7 +177,7 @@ grub_username_get (char buf[], unsigned buf_size) if (cur_len) { cur_len--; - grub_printf ("\b"); + grub_printf ("\b \b"); } continue; }