Bug 455554

Summary: ANSI background color malfunction
Product: [Applications] konsole Reporter: Leo Savernik <l.savernik>
Component: emulationAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED FIXED    
Severity: normal CC: ninjalj
Priority: NOR    
Version: 21.12.3   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=445520
Latest Commit: Version Fixed In: v22.04.0
Attachments: Konsole before applying ANSI background
Konsole immediately after having applied ANSI background
Konsole after having applied ANSI background with forced refresh

Description Leo Savernik 2022-06-18 13:52:59 UTC
Created attachment 149897 [details]
Konsole before applying ANSI background

In the latest konsole I noticed that ANSI background tinting stopped working properly:

\033]11;#320000\a

where #320000 can be any #rrggbb color code.

*Steps to reproduce*

1. Open fresh Konsole
2. (optional) Fill screen with arbitrary foreground content
3. printf '\033]11;#320000\a'

*Expected results*

Whole Terminal background is immediately tinted dark red.

*Actual results*

Terminal background stays black.

Only if terminal window is forced to be repainted, the background tint will show.


This is a regression compared to former Konsole (19.12.3) I compared with. ANSI background tint should *always* cause the Konsole display to be repainted.

See attached screenshots. (1) is former Konsole (19.12.3), (1) is current Konsole (21.12.3).

The last screenshot displays successful tinting of current Konsole when a full redraw was triggered.

This is a usability issue: I use background tinting on remote shells to be able to tell at a glance whether the command I'm typing will have local effects.

It's unfortunate that this bug was distributed in a Kubuntu LTS. Maybe backporting can be done.

*Software versions*
Linux/KDE Plasma: 5.24.4
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3
Comment 1 Leo Savernik 2022-06-18 13:54:06 UTC
Created attachment 149898 [details]
Konsole immediately after having applied ANSI background
Comment 2 Leo Savernik 2022-06-18 13:55:06 UTC
Created attachment 149899 [details]
Konsole after having applied ANSI background with forced refresh
Comment 3 Leo Savernik 2022-06-18 13:56:07 UTC
In the latest konsole I noticed that ANSI background tinting stopped working properly:

\033]11;#320000\a

where #320000 can be any #rrggbb color code.

*Steps to reproduce*

1. Open fresh Konsole
2. (optional) Fill screen with arbitrary foreground content
3. printf '\033]11;#320000\a'

*Expected results*

Whole Terminal background is immediately tinted dark red.

*Actual results*

Terminal background stays black.

Only if terminal window is forced to be repainted, the background tint will show.


This is a regression compared to former Konsole (19.12.3) I compared with. ANSI background tint should *always* cause the Konsole display to be repainted.

See attached screenshots. (1) is former Konsole (19.12.3), (1) is current Konsole (21.12.3).

The last screenshot displays successful tinting of current Konsole when a full redraw was triggered.

This is a usability issue: I use background tinting on remote shells to be able to tell at a glance whether the command I'm typing will have local effects.

It's unfortunate that this bug was distributed in a Kubuntu LTS. Maybe backporting can be done.

*Software versions*
Linux/KDE Plasma: 5.24.4
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3
Comment 4 ninjalj 2022-06-30 16:57:35 UTC
Fixed in v22.04.0. There won't be further v21.12 releases from KDE (https://community.kde.org/Schedules), but FWIW the commit that fixes this bug (2f2ae3d9bb8a44fa987c10cc4b2a9018d34f300b) applies cleanly on top of v21.12.3, so maybe the Kubuntu konsole package maintainers could backport it.