-
Notifications
You must be signed in to change notification settings - Fork 48
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
[kitty] Problem in has_local_support #44
Comments
I've also come across this issue. In my case, I was trying to render images in the terminal as part of a terminal game, but the game would freeze when it tried to render the image. I was using a kitty terminal as well. The game itself puts the terminal into raw input mode, alternate screen, and listens to the terminal event stream using the Debugging as much as I could without a knowledge of kitty's protocols, it looks like to test if kitty has local support it sends some inputs to the terminal and listens to the output, but (probably for reasons above) it never gets that input, and so it gets stuck in a perpetual while loop. If this is the only way to check for local support, I would love it if there was a way to "precompute" the local support so I could run the check before I start listening to keyboard input. Like a "verify_kitty_support" function that runs the local check beforehand and saves the result to a static OnceLock. That way I could run the local_support check before I take over the eventstream. I don't know if that'll help with the vim backend stuff though. |
I know it's been ages, but I had a closer look today and I think the changes from e754e4d should make the temp file deletion much more reliable. Unfortunately, I wasn't able to reproduce the issues you were facing, so it will be greatly appreciated if anyone is able to test the patch and let me know. Thanks! |
I tried the commit but sadly the issue persists. I would assume some wrong data gets sent to kitty and that causes the problem but sadly I currently don't have a lot of time to investigate the issue and since I don't plan on using But when I find some spare time I might try poking around and trying to get some debug data or a setup to reproduce it |
Thank you for the feedback! For future reference, the previous behaviour might have polluted your |
I tried using
viu
as backend forvifm
to preview images but found out weird behavior (vifm/vifm#814). After some searching in the code i found out that the problem originates from https://github.com/atanunq/viuer/blob/master/src/printer/kitty.rs#L72. Sadly I don't know enough about the Kitty image protocol or similar to fix it properly myself. For my local setup I will probably just addreturn Ok(());
The text was updated successfully, but these errors were encountered: