GNU GRUB - Bugs: bug #60114, The "Backspace" key...
You are not allowed to post comments on this tracker with your current authentication level.
bug #60114: The "Backspace" key doesn't work correctly in the superuser authentication prompt.
Submitter: | Egor Ignatov <egori> | ||
Submitted: | Thu 25 Feb 2021 11:55:10 AM UTC | ||
Category: | User Interface | Severity: | Major |
Priority: | 5 - Normal | Item Group: | Software Error |
Status: | None | Privacy: | Public |
Assigned to: | None | Originator Name: | |
Open/Closed: | Open | Release: | Git master |
Release: | Reproducibility: | Every Time | |
Planned Release: | None |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
No changes have been made to this item
Powered by Savane 3.13-758e.
Corresponding source code
Description:
In the superuser login prompt pressing backspace deletes the character in the internal buffer, but on the terminal screen it moves the cursor right instead.
Details:
So "grub-core/normal/auth.c:grub_username_get" uses 'grub_printf ("\b \b");' to clear a character on the screen. grub_printf sends characters all the way down to the "grub-core/term/gfxterm.c:grub_gfxterm_putchar". In theory grub_gfxterm_putchar handles '\b' correctly, but it doesn't receive it. The '\b' char gets lost some were in between this two functions. I suspect it's because of how unicode characters are processed. So I guess that "grub-core/normal/term.c:print_ucs4_real" function does not print '\b'.