[PATCH] password: Fix backspace in username prompt

2021-03-31 Thread egori
From: Egor Ignatov Allow control characters in the bidi visual. Resolves: #60114 Signed-off-by: Egor Ignatov --- grub/grub-core/normal/charset.c | 1 + 1 file changed, 1 insertion(+) diff --git a/grub/grub-core/normal/charset.c b/grub/grub-core/normal/charset.c index b0ab47d73..30e819bdf 1006

[PATCH] password: Fix backspace in username prompt

2021-03-04 Thread Egor Ignatov
From: Egor Ignatov Make backspace work in superuser login prompt. The problem was that bidi logical to visual ignored BN type, so you couldn't print control characters. Use grub_printf() 3 times, because if you print "\b \b" at once the cursor will get stuck on the second last character. Resol

Re: [PATCH] password: Fix backspace in username prompt

2021-03-02 Thread Egor Ignatov
I used grub_printf 3 times, because for some reason (line wrapping I guess) if you print "\b \b" at once the backspace key doesn't work on the second last character in the terminal line. The visual cursor gets stuck there and doesn't remove characters anymore, although you can still type more.

Re: [PATCH] password: Fix backspace in username prompt

2021-03-01 Thread Lennart Sorensen
On Mon, Mar 01, 2021 at 10:58:40AM +0300, Egor Ignatov wrote: > From: Egor Ignatov > > Make backspace work in superuser login prompt. > > The problem was that bidi logical to visual ignored BN type, > so you couldn't print control characters. > > Use grub_printf() 3 times, because a line wrap w

[PATCH] password: Fix backspace in username prompt

2021-03-01 Thread Egor Ignatov
Make backspace work in superuser login prompt. The problem was that bidi logical to visual ignored BN type, so you couldn't print control characters. Use grub_printf() 3 times, because a line wrap will cause the cursor to get stuck at the end of the terminal line. Resolves: #60114 Signed-off-by:

[PATCH] password: Fix backspace in username prompt

2021-03-01 Thread Egor Ignatov
From: Egor Ignatov Make backspace work in superuser login prompt. The problem was that bidi logical to visual ignored BN type, so you couldn't print control characters. Use grub_printf() 3 times, because a line wrap will cause the cursor to get stuck at the end of the terminal line. Resolves:

[PATCH] password: Fix backspace in username prompt

2021-03-01 Thread Egor Ignatov
From: Egor Ignatov Make backspace work in superuser login prompt. The problem was that bidi logical to visual ignored BN type, so you couldn't print control characters. Use grub_printf() 3 times, because a line wrap will cause the cursor to get stuck at the end of the terminal line. Resolves: