cockpit icon indicating copy to clipboard operation
cockpit copied to clipboard

Standarized SIXEL graphics in terminal

Open schrmh opened this issue 6 months ago • 1 comments

Page: Terminal

Some want to have a more graphical output. SIXEL is a nice middle ground which uses escape code to enable bitmap graphics in terminals. It is actually a protocol standardized by DEC (see https://en.wikipedia.org/wiki/Sixel) and got a lot of popularity again within the last five years and is thus e.g. supported by VS Code and KDE's Konsole terminal emulator even. You can check out a list of support status: https://www.arewesixelyet.com xterm.js is listed there as well. I think this is what Cockpit uses since I can see a xterm import in the package list. Thus it might be enough to add xterm-addon-image (when newer xterm.js versions are around then https://github.com/xtermjs/xterm.js/tree/master/addons/addon-image).

People that want #20721 may be (partially) satisfied by this as well since there are a few ways to interact with e.g. X servers and SDL applications when support for SIXEL is implemented (see https://github.com/saitoha/libsixel/blob/master/README.md)

schrmh avatar Aug 08 '24 03:08 schrmh