[konsole] [Bug 456354] New: New text writes on top of sixel image instead of erasing part of the image

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Tue Jul 5 15:24:43 BST 2022


https://bugs.kde.org/show_bug.cgi?id=456354

            Bug ID: 456354
           Summary: New text writes on top of sixel image instead of
                    erasing part of the image
           Product: konsole
           Version: 22.04.2
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: emulation
          Assignee: konsole-devel at kde.org
          Reporter: badnam3o.0 at gmail.com
  Target Milestone: ---

Created attachment 150416
  --> https://bugs.kde.org/attachment.cgi?id=150416&action=edit
different behaviours with sixel images of konsole and xterm vt340

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug
symbols.
See
https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
in other terminals such as foot, mlterm and xterm (emulating vt-340) , when new
text is written where a sixel image is present, part of the image is erased. In
Konsole, the text is written on top of the image instead. The erasing behaviour
can be useful to TUI apps for deleting an image without needing to clear the
entire screen. 

STEPS TO REPRODUCE
1.  print a sixel image
2.  move cursor to somewhere in the image and print a normal string

Here's a sample shell script with outputs in the attached picture
```
#!/bin/sh
clear
printf '\x1b[2;2H'
printf
'\x1bP0;1;0q#0;2;50;49;99#0!255~-#0!255~-#0!255~-#0!255~-#0!255~-#0!255~-#0!255~-#0!255~-\x1b\\'
printf '\x1b[2;2H'
printf 'Sample Text Here'
printf '\n\n'
```

OBSERVED RESULT
Text written on top of image

EXPECTED RESULT
Text overwrites/erases part of the image

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Arch Linux kernel 5.18.9-zen
(available in About System)
KDE Plasma Version: 5.25.2
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.5

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the konsole-devel mailing list