dsanson / termpdf

barebones graphical pdf/djvu/cbr/image viewer that works inside iTerm2 2.9+ and Kitty
MIT License
637 stars 24 forks source link

Kitty + Tmux broken? #18

Open MIJOTHY opened 6 years ago

MIJOTHY commented 6 years ago

Renders fine outside of tmux, but both image (jpg) and pdfs fail to render (after measuring has successfully occured). Example below is for the start of a pdf file: termpdf

Forcing -kitty rendering results in the following: termpdfkitty

However, running terminal_dimensions returns the correct values.

As an aside, very cool tool! To get it working on Ubuntu 16.04, I had to take a couple of extra steps to get it to play nice with some PDF files (which may or may not be worth mentioning in the readme; happy to do a PR). It seems ubuntu's ghostscript package doesn't link with freetype anymore, so I had to download the latest ghostscript and replace my gs file in /usr/bin with the downloaded file.

3nprob commented 2 years ago

This is expected when trying to run tmux inside kitty and unrelated to this project. Neither tmux not kitty seem interested in doing anything about it.

https://sw.kovidgoyal.net/kitty/faq/?highlight=tmux#i-am-using-tmux-and-have-a-problem

https://github.com/tmux/tmux/issues/1391