atanunq / viu

Terminal image viewer with native support for iTerm and Kitty
MIT License
2.5k stars 54 forks source link

kitty use viu blurred out #105

Open newyorkthink opened 1 year ago

newyorkthink commented 1 year ago

I use kitty and play picture ,but is blurred out.

image

MTRNord commented 1 year ago

I had the same issue. It seems that either kitty or zsh set $TERM to xterm while viu wants $TERM to be xterm kitty as seen in the demo in the readme.

However, it would be great if anyone knows why this is and how to fix it (properly). Especially as zsh says zsh: can't find terminal definition for xterm kitty when you set it manually.

tshirtman commented 1 year ago

I had the same issue. It seems that either kitty or zsh set $TERM to xterm while viu wants $TERM to be xterm kitty as seen in the demo in the readme.

However, it would be great if anyone knows why this is and how to fix it (properly). Especially as zsh says zsh: can't find terminal definition for xterm kitty when you set it manually.

Indeed, using env TERM="xterm kitty" viu path/to/image.png worked for me, that’s at least a workaround if i can’t make that value default.

newyorkthink commented 1 year ago

I had the same issue. It seems that either kitty or zsh set $TERM to xterm while viu wants $TERM to be xterm kitty as seen in the demo in the readme. However, it would be great if anyone knows why this is and how to fix it (properly). Especially as zsh says zsh: can't find terminal definition for xterm kitty when you set it manually.

Indeed, using env TERM="xterm kitty" viu path/to/image.png worked for me, that’s at least a workaround if i can’t make that value default.

It not about kitty , the problem is tmux

MTRNord commented 1 year ago

I had the same issue. It seems that either kitty or zsh set $TERM to xterm while viu wants $TERM to be xterm kitty as seen in the demo in the readme. However, it would be great if anyone knows why this is and how to fix it (properly). Especially as zsh says zsh: can't find terminal definition for xterm kitty when you set it manually.

Indeed, using env TERM="xterm kitty" viu path/to/image.png worked for me, that’s at least a workaround if i can’t make that value default.

It not about kitty , the problem is tmux

The issue happens for me with zsh and kitty too. I dont use tmux at all.