]> git.ipfire.org Git - thirdparty/util-linux.git/commit
agetty: Prevent cursor escape
authorStanislav Brabec <sbrabec@suse.cz>
Sun, 21 Jul 2024 13:01:42 +0000 (15:01 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 23 Jul 2024 12:41:34 +0000 (14:41 +0200)
commit20b405c0fea29675e1fb54b894eb1c18459f9d50
treeddad56db462b0ac3d0d74de1a7c28c85bdd2143f
parent4283a76ce540a083440e069c80ace0ed3c0874c2
agetty: Prevent cursor escape

Starting with 5de97519, it is possible to escape the login dialog on the
screen by arrow characters or using escape sequences.

Since full processing of escape sequences and ignore them would be
complicated, use a work around: instead of sending ESC to output, send a
printable character.

It could cause a rendering regression in a very obscure condition: compiled
without IUTF8, encoding is ISO-11548-1 and BRAILLE PATTERN DOTS-1245 is
part of login name. I believe that it is out of supported combinations.

Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
term-utils/agetty.c