[konsole] [Bug 481294] New: Sequence <ESC>[3J is implemented incorrectly (should erase whole screen AND clear the scrollback buffer)

Mikko Rantalainen bugzilla_noreply at kde.org
Tue Feb 13 15:43:08 GMT 2024


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

            Bug ID: 481294
           Summary: Sequence <ESC>[3J is implemented incorrectly (should
                    erase whole screen AND clear the scrollback buffer)
    Classification: Applications
           Product: konsole
           Version: 21.12.3
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: emulation
          Assignee: konsole-devel at kde.org
          Reporter: mikko.rantalainen at gmail.com
  Target Milestone: ---

SUMMARY

According to `man console_codes` the CSI sequence

> ESC [ 3 J: erase whole display including scroll-back buffer

but Konsole implements it as simply clearing the scrollback buffer without
erasing the display.

STEPS TO REPRODUCE
1. Run something to have text on screen and scrollback buffer.
2. Execute following command

    printf "\033[3J"

OBSERVED RESULT

Terminal scrollback buffer is deleted but the text visible on the terminal is
not touched.

EXPECTED RESULT

There should be no visible text and the scrollback buffer should be empty.

Tested with Ubuntu 22.04 LTS and Konsole version 21.12.3.

$ apt-cache policy konsole
konsole:
  Installed: 4:21.12.3-0ubuntu1
  Candidate: 4:21.12.3-0ubuntu1
  Version table:
 *** 4:21.12.3-0ubuntu1 500
        500 http://fi.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
        100 /var/lib/dpkg/status

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


More information about the konsole-devel mailing list