Skip to content

Draft: Add two escape sequences in OSC space to set background image

Matan Ziv-Av requested to merge matan/konsole:escape-wallpaper into master

This patch adds two escape sequences to set the background image. This is a feature requested here: https://bugs.kde.org/show_bug.cgi?id=424221.

The first gives a path name for an image file. The second sends the image data inline.

ESC]114501;<t>,<o>,<path>ESC\
ESC]114502;<t>,<o>,<image>ESC\

Where <t> is tiling mode, <o> is opacity value, <path> is path to image file and <image> is base64 encoded image data.

This is not ready for merging, I believe. I present it as a POC code for a discussion to understand if the konsole team is open to extending the escape sequences used by konsole.

I wish to add:

  • Ad hoc changing profile options (Character encoding, bidi rendering, etc.)
  • In terminal graphics display (like kitty, for example).

Merge request reports