zellij-org / zellij

A terminal workspace with batteries included
https://zellij.dev
MIT License
19.58k stars 614 forks source link

In some cases, sixels can fail to be printed #2168

Open Porkepix opened 1 year ago

Porkepix commented 1 year ago

Basic information

zellij --version: zellij 0.34.4 uname -av or ver(Windows): Linux x1-carbon-clement 6.1.11-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 09 Feb 2023 20:06:08 +0000 x86_64 GNU/Linux

List of programs interracted with: wezterm --version: wezterm 20221119-145034-49b9839f -> Wezterm supports sixels termusic 0.7.9

Further information Termusic (https://github.com/tramhao/termusic/) is able to display album arts using ueberzug or its replacement urberzugpp which implements and offer sixels (and another protocol, I don't remember which when running X11 sessions). It's verified to work on Wezterm (Alacritty or other terminals unfortunately don't have sixels working yet). But if run within Zellij, then the display of album arts doesn't work anymore.

I raised the issue at ueberzugpp's repo (ueberzug unfortunately have kind of disappeared), but was explained by the maintainer that they were getting wrong values on some calls. See for this issue for further details they explain: https://github.com/jstkdng/ueberzugpp/issues/4

midick commented 1 year ago

could this be related to #2048 ?

ferdinandyb commented 1 year ago

hi all, I just want to chirp in with this, which is also a sixel issue. It sounds very similar to this one, i.e. in some terminal sixels don't work within zellij. Initially I thought it is an issue with contour but the maintainer found that it also doesn't work in a few other terminals:

I hope this helps with debugging.

smautner commented 1 year ago

problem persists (img2sixel on wezterm)

$ zellij --version 
zellij 0.36.0

edit: after connecting via konsole, wezterm started displaying sixel images. Strange and hard to reproduce.

crabdancing commented 6 months ago

I can replicate the same issue on NixOS 23.11 using Zellij 0.39 & Wezterm 20230712.

EvanEdwards commented 4 months ago

Confirmed to not work intermittently using konsole 23.08.1 on Kubuntu 23.10 and Zellij 0.39.2. img2sizel and lsix work fine on konsole, but often/sometimes fail within zellij.

Sometimes it works, sometimes it just fails. Same config (I'm a tmux user new to zellij, using defaults currently), and I can open different konsole windows and fire up zellij and see it working or not working with no apparent trigger or cause. I am willing to perform tests and checks on my setup if somebody has a thought of what might be worth testing.

Possibly Related:

As a possibly related aside, floating panes do not have a "background" and a sixel image shows through them. Similarly, resizing a pane causes an image in a neighboring pane to overflow into a newly resized pane. clear also does not clear the pane. Other oddities can occur with scrolling within panes and moving panes. I do not know if this behavior occurs in other terminals, or it may be connected (upstream error?), so I am noting these quirks here rather than filing a new issue at this time.

lukeflo commented 4 months ago

Same here. Tested with wezterm 20240203-110809-5046fc22 and ayosec's alacritty build 0.14.0-dev (ff0f64fe) which supports sixel graphics.

In both cases img2sixel and chafa -f sixel ... work fine when run from the plain terminal emulator. But when invoked from inside zellij 0.39.2 session, sometimes nothing happens, just a new line with a command prompt is shown (but with positive return value for the executed command), and sometimes the picture is shown correctly. However, the latter case is less frequently appearing than the former.

From inside a tmux session I've not encountered this problem so far. But generally, I favour zellij over tmux, thus, solid sixel support would be great.

OS: Manjaro Linux 6.6.19-1-MANJARO

j-lakeman commented 2 months ago

In both cases img2sixel and chafa -f sixel ... work fine when run from the plain terminal emulator. But when invoked from inside zellij 0.39.2 session, sometimes nothing happens, just a new line with a command prompt is shown (but with positive return value for the executed command), and sometimes the picture is shown correctly. However, the latter case is less frequently appearing than the former.

I can confirm this for foot version: 1.17.2 +pgo +ime +graphemes -assertions (https://codeberg.org/dnkl/foot) with zellij 0.40.1 tested with Chafa version 1.14.0 and kew version: 2.4.4 (https://github.com/ravachol/kew).