Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Porkepix opened this issue Feb 16, 2023 · 7 comments
Open

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

Porkepix opened this issue Feb 16, 2023 · 7 comments
Assignees

Comments

@Porkepix
Copy link

Porkepix commented Feb 16, 2023

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: jstkdng/ueberzugpp#4

@midick
Copy link

midick commented May 4, 2023

could this be related to #2048 ?

@ferdinandyb
Copy link

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:

  • Contour
  • Xterm (vt340 mode)
  • Konsole (23.04.1)

I hope this helps with debugging.

@smautner
Copy link

smautner commented May 31, 2023

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
Copy link

crabdancing commented Jan 18, 2024

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

@EvanEdwards
Copy link

EvanEdwards commented Feb 25, 2024

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
Copy link

lukeflo commented Mar 12, 2024

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
Copy link

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants