Why is there no control sequence for positioning an image at specific cell coordinates? #6151
Replies: 1 comment 2 replies
-
The image is displayed at the current cursor position. There already
exist escape codes to move the cursor around, as well as to save and
restore the cursor position. Use those.
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
slavistan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I've spent the weekend playing around with kitty and, liking what I see so far, I am now in the midst of integrating my
lf
setup with kitty. I have attempted to useicat
to achieve this, but as it stands it can't control an image's placement id when drawing an image andicat --clear
always deletes all placements indiscriminately, whereas in need to be selective in certain cases. I'll create a ticket or pull request for that once I've gathered a little more data and understanding.I have thus attempted to work at the protocol level itself,
printf
ing my way close to victory. Transferring images to the terminal turns out to be trivial, especially so for the local case, and even displaying images at the cursor position is straightforward. However, I've come to find out that there's no instruction at the protocol level that would allow me to specify the position in cell coordinates of where to display an image or animation. While I can specify the width and height in cell coordinates, there's no corresponding instruction for the position and I wonder why that is.May I kindly ask someone in the know to explain this to me? Thank you.
Beta Was this translation helpful? Give feedback.
All reactions