Bug 488505

Summary: Pixel from underlined characters at leftmost screen edge remains when clearing terminal or switching to alternative screen
Product: [Applications] konsole Reporter: nilskemail+kde
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version: 24.05.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Console capture showing several white pixel artifacts at the left edge

Description nilskemail+kde 2024-06-14 17:22:14 UTC
Created attachment 170503 [details]
Console capture showing several white pixel artifacts at the left edge

SUMMARY
When the leftmost character in a line has an underline, a sliver of that underline remains after calling clear or switching to an alternative screen (e.g. nano, less)

STEPS TO REPRODUCE
1. Open Konsole
2. Run 'printf "\e[4munderline\e[0m\n"'
3. Open nano, or run 'echo | less'

OBSERVED RESULT
A few pixels at the leftmost edge remain and are not cleared

EXPECTED RESULT
There should be no remaining artifacts of the character underline

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 40
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.1
Kernel Version: 6.8.11-300.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7840U w/ Radeon 780M Graphics
Memory: 30.7 GiB of RAM
Graphics Processor: AMD Radeon 780M
Manufacturer: Framework
Product Name: Laptop 13 (AMD Ryzen 7040Series)
System Version: A7

ADDITIONAL INFORMATION
The artifacts only sometimes appear when calling  'clear'. Nano and less seem more consistent.
The artifacts also disappear once a different window has the focus (this can be as simple as pressing the Meta key open the start menu, so covering the window is not necessary).
My screen has fractional scaling, maybe that has an impact on this.