]> git.ipfire.org Git - thirdparty/plymouth.git/commit
ply-terminal-emulator: Fix incorrect SGR attribute handling
authorTomita Moeko <tomitamoeko@gmail.com>
Wed, 7 May 2025 14:25:24 +0000 (22:25 +0800)
committerRay Strode <halfline@gmail.com>
Wed, 18 Jun 2025 15:14:25 +0000 (15:14 +0000)
commit11e889ef2fa8cf58bc853661ac44c723f06b1ce2
tree82993e9bcf7ae6989b7f239f96d07bc643203116
parent1e3565662523698857cf461259056c9a1b44513a
ply-terminal-emulator: Fix incorrect SGR attribute handling

According to ECMA-48 [1], Select Graphic Rendition (SGR) attribute 21
is for "doubly underlined", not "disabling bold" in current plymouth
implementation.

Additionally, SGR 22 is for "normal colour or normal intensity (neither
bold nor faint)", both bold and dim should be disabled with it.

[1] 8.3.117, https://www.ecma-international.org/wp-content/uploads/ECMA-48_5th_edition_june_1991.pdf

Signed-off-by: Tomita Moeko <tomitamoeko@gmail.com>
src/libply-splash-core/ply-terminal-emulator.c
src/libply-splash-core/ply-terminal-emulator.h