bugGNU 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.

Submitted by:  Egor Ignatov <egori>
Submitted on:  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: 
Release:  Git master Reproducibility:  Every Time
Planned Release:  None

Thu 25 Feb 2021 11:55:10 AM UTC, original submission:  

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.

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'.

Egor Ignatov <egori>


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by egori (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    No changes have been made to this item

    Back to the top

    Powered by Savane 3.7