Skip to content

Does not work inside tmux #24

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

Open
osbm opened this issue Aug 26, 2024 · 6 comments
Open

Does not work inside tmux #24

osbm opened this issue Aug 26, 2024 · 6 comments

Comments

@osbm
Copy link

osbm commented Aug 26, 2024

Hello, with the #21 manga-tui works super well in kitty (i just tried in v0.3.1). Thank you so much :)

But it does not work inside the tmux. This may be a problem with my tmux color configuration but. when i run kitty icat image.jpg inside tmux, it shows the image without problem.

What else i can share that could help diagnose this problem?

Here is some screenshots:

tmux inside kitty

image

what i see when i attach to the same tmux session from alacritty:

image

proof that it works well inside kitty without tmux:

image

@josueBarretogit
Copy link
Owner

According to this table alacritty isn't supported by the library im using to display images, maybe adding a command to disable images may be useful if you like using alacritty, what do you think?

about tmux I'm not sure what could be the cause, the thing is this UI bugs don't throw errors or anything like that so it's kinda hard to debug

@osbm
Copy link
Author

osbm commented Aug 26, 2024

According to this table alacritty isn't supported by the library im using to display images, maybe adding a command to disable images may be useful if you like using alacritty, what do you think?

When i added the alacritty i just wanted to see if anything could be understood by looking the alacritty window as a diagnostic measure. I am actually in the process of transfering from alacritty to kitty at the moment. Having said that, it may not be so easy for other people to just change their terminal based on a program. Adding an option can help. But alacritty users can already use this program to download mangas.

about tmux I'm not sure what could be the cause, the thing is this UI bugs don't throw errors or anything like that so it's kinda hard to debug

I did some digging and found out another program that uses terminal image viewing named yazi and its image view capabilities also work on kitty but not on tmux>kitty. This is most likely a me problem. If i find out why it happens i will write here.

@josueBarretogit
Copy link
Owner

I installed tmux and used both manga-tui and joshuto which is a file manager that uses the same library as i do and it doesn´t work for me in both wezterm and kitty

@crispy-caesus
Copy link

foot tmux works for me, but kitty tmux doesn't

@Disonantemus
Copy link

Disonantemus commented Apr 22, 2025

All the following terminal emulators show images, without tmux (using yazi & manga-tui), the table shows the results inside tmux:

terminal emulator yazi w/tmux manga-tui w/tmux
contour yes! yes!
kitty yes! no
konsole no no
mlterm yes! yes!
rio yes! yes!
st yes! yes!
vscode yes! yes!
wezterm yes! no
xterm -ti 340 yes! yes!
yakuake no no

As you can see:

  • yazi works in 8 (from 10) inside tmux.
  • manga-tui works in 6 (from 10) inside tmux.

Extra info:

  • I did try zellij (another multiplexer like tmux) in kitty, but didn't work (with manga-tui or yazi).
  • yazi: don't use any image library, has his own image implementation.
  • manga-tui: use ratatui-image.
  • timg -pk in.png works with tmux inside kitty.
  • Most use: Sixel, a few Kitty or iTerm image protocols.

From these results:

  • yazi do something better than ratatui-image (manga-tui): works using tmux inside kitty.
  • konsole and yakuake don't work at all with multiplexers.

@josueBarretogit
Copy link
Owner

All the following terminal emulators show images, without tmux (using yazi & manga-tui), the table shows the results inside tmux:
terminal emulator yazi w/tmux manga-tui w/tmux
contour yes! yes!
kitty yes! no
konsole no no
mlterm yes! yes!
rio yes! yes!
st yes! yes!
vscode yes! yes!
wezterm yes! no
xterm -ti 340 yes! yes!
yakuake no no

As you can see:

* `yazi` works in 8 (from 10) inside `tmux`.

* `manga-tui` works in 6 (from 10) inside `tmux`.

Extra info:

* I did try `zellij` (another multiplexer like `tmux`) in `kitty`, but didn't work (with `manga-tui` or `yazi`).

* `yazi`: don't use any image library, has his own image implementation.

* `manga-tui`: use `ratatui-image`.

* [`timg -pk in.png`](https://github.com/hzeller/timg) works with `tmux` inside `kitty`.

* Most use: **Sixel**, a few **Kitty** or **iTerm** image protocols.

From these results:

* `yazi` do _something better_ than `ratatui-image` (`manga-tui`): works using `tmux` inside `kitty`.

* `konsole` and `yakuake` don't work at all with multiplexers.

damn bro i need you on my team 👀

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

No branches or pull requests

4 participants