-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat: Allow ghostty to render kitty images #111
Conversation
Hello! Please, forgive my late response. 🙏 Unfortunately, I'm very reluctant to merge this for the following major reasons:
Thank you very much. 😃 |
130d999
to
8105a8e
Compare
Totally understandable, thanks for taking the time. I'm going to close the PR and ask Ghostty's maintainer to check it out. |
Thanks. I appreciate your understanding. For what it's worth... it seems to me the issue is with the implementation of This is actually very different from the reasons I added those exceptions for Konsole. 🤗 If I recall correctly, Kitty once had a similar bug which reported and got fixed. See kovidgoyal/kitty#5081. Tip: I think It'd be good to relay all of the above to the There's very little information I have here, so I may be wrong (or worse, Thanks once again. 😃 |
@AnonymouX47 I don't think that's quite it. I'm attaching a test file that prints two magenta squares, places the cursor on top of the bottommost one, and issues Ghostty main branch @ 7741463f826a7277941781630b5efdb77b4b6a7e. |
@AnonymouX47 you shoud have your beta invite ready in the Ghostty Discord |
@hpjansson, thanks so much for looking into it. 🙏 I see... I guess I'll have to probe further then 🤔, thanks to @AbeEstrada. @AbeEstrada, thanks so much. The invite is much appreciated, I've accepted it and will give ghostty a run when I wake up (it's pretty late over here). 😃 By the way, is it possible any changes have been made to ghostty's implemention since your last comment? 🤔 |
@AnonymouX47 there haven't been any changes to Ghostty's Kitty graphics protocol implementation |
I see, thanks. I just couldn't resist going down the rabbit hole, maybe you shouldn't have added the link 🥲😅. I've gotta give big kudos to @mitchellh (sorry to ping you but I just had to) and contributors, really great work done there. Aside the technicalities of the implementation, the readability and comprehensibility of the code is indeed note-worthy. Despite being my first time reading Zig, there wasn't a single part I found difficult to grasp... or maybe it's just Zig being Zig 🤔, just kidding. From my little adventure, I believe I might've spotted a couple issues (e.g handling of image ids and numbers), though, I may be wrong or have misunderstood. Anyways, I'm yet to actually test hands-on. Once I do, I'll gather all my findings and report to the appropriate quarters. Thanks once again for the opportunity. |
Thanks for the compliments @AnonymouX47! If you identify any issues please report them on the repo. Additionally, if you have reproductions of weird behavior but can't quite explain it, also feel free to report it since as long as I can reproduce it and compare to other terminals I can poke around and figure it out usually. |
You're welcome 😃. I sure will. |
Using toot in Ghostty, I found that images were supported but not rendering correctly; one part was missing. I figured that Konsole had special features enabled/disabled, so I added Ghostty to the exceptions. After some tests, the images rendered correctly.
I know Ghostty is in beta and might change. Feel free to clean up this PR or close it if you feel so. I can patch
term-image
manually until Ghostty becomes public.