-
|
Is there a way to get a guaranteed one-row blank top line regardless of terminal size? Or is there’s a way to force full baseHeight usage or a way to query the actual printed height? printable = convert_image( When printing this at row 2 it ends up at row 1 for certain window sizes. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
|
I'm not sure I understand the question. You print the image at cell offset 2, but it gets placed one row above the cursor? Do you have an example? Pictures/diagrams would help. If you want exact pixel dimensions, you should be able to do that using ChafaPlacement and |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
I can solve it by making the image one row smaller than I want, too but then things don't get aligned properly with the rest of the elements. |
Beta Was this translation helpful? Give feedback.


Chafa doesn't output any positioning seqs in the image data itself, so this seems like an issue where the terminal thinks the image overshoots the lower edge of the visible area and decides to offset it for some reason. You could view this as a terminal bug (what does foot do?), but when I think about it, I'm not sure that the desired behavior is actually specified anywhere. If this happens with other terminal emulators too, I suggest bringing it up in #192 or a new ticket with konsole and foot's authors and a few others.
I think the most reasonable behavior would be to allow the image to overshoot and just crop it at the edge, especially as sixel images are forced to overshoot by a bit (…