Description of problem: This was originally reported at https://github.com/systemd/systemd/issues/25563 , but I was redirected to util-linux. == Expected behaviour you didn't see == I expect to be able to edit only content after the login prompt: > hostname login: EDIT HERE I expect Left/Right arrows to either work in that EDIT HERE section, or not work at all (use Backspace to go back a letter). == Unexpected behaviour you saw == Problem 1: The whole prompt can be edited when using Left/Right arrows. So from this: > hostname login: EDIT HERE I can easily change it to this: > you're not welcome: EDIT HERE Problem 2: Once Left/Right arrow is used, the whole login prompt breaks, even if you don't edit the actual prompt before the colon. So even if you type: > hostname login: user1 and then use the Left arrow to go left a few letters and change it to > hostname login: uzer1 and hit Enter, the prompt just gets "stuck" and doesn't respond to any other input. If you wait long enough, it gets reset to the original state. That means if I hit Left/Right arrow by accident, my next login attempt will certainly fail and I'll have to wait and retry. These problems only happen for the first login prompt on the screen. If you fail some login in a standard way and you see e.g. Password incorrect and the prompt repeats below, it is not affected by the bug. But if the screen refreshes and you see the prompt at the very top of the screen, it's susceptible to the bug again. See this video: https://user-images.githubusercontent.com/755451/204578914-1615f849-c308-4eea-87c2-fa27819bad45.webm Version-Release number of selected component (if applicable): util-linux-2.38.1-1.fc37.x86_64 How reproducible: always Steps to Reproduce: 1. Switch to a text VT 2. Use Left/Right arrows to move across the login prompt. You can overwrite any letter, use Backspace to delete it (but you don't have to). 3. Hit Enter. The prompt gets stuck. 4. Wait for the prompt to reset.
This message is a reminder that Fedora Linux 37 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora Linux 37 on 2023-12-05. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a 'version' of '37'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, change the 'version' to a later Fedora Linux version. Note that the version field may be hidden. Click the "Show advanced fields" button if you do not see it. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora Linux 37 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora Linux, you are encouraged to change the 'version' to a later version prior to this bug being closed.
Still the same behavior in F39.
This is really aggravating when you accidentally hit the arrow keys and this happens.
This message is a reminder that Fedora Linux 39 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora Linux 39 on 2024-11-26. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a 'version' of '39'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, change the 'version' to a later Fedora Linux version. Note that the version field may be hidden. Click the "Show advanced fields" button if you do not see it. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora Linux 39 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora Linux, you are encouraged to change the 'version' to a later version prior to this bug being closed.
Since v2.40.3 agetty visualizes escape sequence rather than interpreting it as real keys. (See upstream commit http://github.com/util-linux/util-linux/commit/7b90601fc1925c7be155e7e9317ef412ae4e7edb)