Created attachment 120848 [details] Screenshot of the issue. SUMMARY If a command prints its output in a certain color and does not clear this color at the end of the output, the cursor takes this color. If space bar and then the return key is pressed or another command is executed, the colored cursor becomes gray again. STEPS TO REPRODUCE 1. Open Konsole 2. enter "echo -e "I \033[0;31mlove \033[0;34mKDE!" Operating System: Manjaro Linux KDE Plasma Version: 5.15.5 KDE Frameworks Version: 5.59.0 Qt Version: 5.12.3 Kernel Version: 5.1.8-1-MANJARO
This only happens if you've already reached the bottom of the screen. It's a side effect of the nightmare called "bce" (see e.g. https://bugzilla.gnome.org/show_bug.cgi?id=754596). The entire newly appearing line at the bottom needs to take the _current_ background color according to this badly designed feature. In Konsole it does not only take the background but also the foreground. The cursor is displayed by swapping these two colors of the cell, that is, revealing the foreground color of the empty cell. That's why you see blue cursor instead of gray. On a side note, in VTE (gnome-terminal and friends) the current foreground is applied to the newly appearing line only if there's also a nondefault background color to apply. This is probably a bug rather than deliberate design choice, although I'm not sure. Not sure what Konsole could do here. Not spreading the foreground color could be a technically more correct behavior, although potentially lead to less visible cursor in many cases. I think it's more likely that the _current_ foreground is easy to distinguish from the _current_ background, rather than that the *default* foreground is easy to distinguinsh from the _current_ background.
Thanks Egmont, that means you can confirm it.