[Pkg-shadow-devel] Bug#680302: login: arrow keys at tty* login screen move cursor instead of output ^[[A

Андрій Шинкарчук andriy.shynkarchuk at nuos.edu.ua
Wed Jul 4 21:04:22 UTC 2012


Package: login
Version: 1:4.1.5.1-1
Severity: normal

Dear Maintainer!
When switching to the tty1-tty6 or exiting from previous tty login
(and login screen refreshes after logout), pressing arrow keys
(up,down,left,right) causes text cursor to move over login screen
according to the pressed key.

Following login behaviour differs depending how much ones you pressed
keys before hit return in order to type password:

a) if you pressed arrow keys less then 22 times or your pressed
arrow keys `m` ones and printable characters keys ([a-zA-Z0-9]) `n` ones and
m+2*n<=22 and hited return after that, you will get `Password:` prompt
for typing password, but even you will type existing login name after or before
pressing arrow keys and give correct password, you will receive
after hiting enter in `Password:` prompt `Login incorrect` message
and new login prompt.

In new login prompt pressing arrow keys prints `^[[A`, `^[[B`, `^[[C`, `^[[D`
respectively for `arrow up`, `arrow down`, `arrow right`, `arrow left` keys.
After 30 second without input before or after unsuccesfull password entering
login screen resets and again pressing arrow keys moves text cursor
over login screen.

b) if you pressed arrow keys more then 22 times or your pressed
arrow keys `m` ones and printable characters keys ([a-zA-Z0-9]) `n` ones and
m+2*n>22 and hited return after that, text cursor hungs blinking at the start
of the line below, and after 10 seconds (for me) login screen resets and again
pressing arrow keys moves text cursor over screen.

I expected to see `^[[A`, `^[[B` etc output in the `$hostname login:`
prompt when pressing arrow keys, like i have in squeezy and lenny, from the
start of login, not after one unsuccesfull effort.
Also i used to delete (backspace) this symbols after occasional arrow key
pressing for succesfull login in my previous Debian installations.

>From the other hand for linux-newbies such `^[[A` output after pressing
`arrow up` key at login screen can be scary and forms stereotype like
`Everything in linux is made unreliable, unconvinient and unpretty
in comparison to other OS'es (and you know what OS i mean)`.

That's why i expect that this bug should be fixed in such way:
`arrow keys pressing will not generate output at the login screen,
will not move text cursor at login screen and will not lead to incorrect login
because of concatenating arrow keys character codes with prompted login names
or passwords.

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages login depends on:
ii  libc6           2.13-33
ii  libpam-modules  1.1.3-7.1
ii  libpam-runtime  1.1.3-7.1
ii  libpam0g        1.1.3-7.1

login recommends no packages.

login suggests no packages.

-- no debconf information





More information about the Pkg-shadow-devel mailing list