]> 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>
Mon, 6 Jan 2025 14:49:47 +0000 (15:49 +0100)
commit7b90601fc1925c7be155e7e9317ef412ae4e7edb
treef1e617ea376c70808b3a0fb5af38aebb29b6aeca
parent859a1e49a7ab2b1df453c2537f461a87d299936c
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>
(cherry picked from commit 20b405c0fea29675e1fb54b894eb1c18459f9d50)
term-utils/agetty.c