bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #60114] The "Backspace" key doesn't work correctly in the superuser


From: Egor Ignatov
Subject: [bug #60114] The "Backspace" key doesn't work correctly in the superuser authentication prompt.
Date: Thu, 25 Feb 2021 06:55:12 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:82.0) Gecko/20100101 Firefox/82.0

URL:
  <https://savannah.gnu.org/bugs/?60114>

                 Summary: The "Backspace" key doesn't work correctly in the
superuser authentication prompt.
                 Project: GNU GRUB
            Submitted by: 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: 
        Originator Email: 
             Open/Closed: Open
                 Release: 
                 Release: Git master
         Discussion Lock: Any
         Reproducibility: Every Time
         Planned Release: None

    _______________________________________________________

Details:

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




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60114>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]