Reported pixel size of cell incorrect. #22798

Open
opened 2026-01-31 08:23:49 +00:00 by claunia · 0 comments
Owner

Originally created by @salt-die on GitHub (Jan 25, 2025).

Windows Terminal version

1.22.3232.0

Windows build number

10.0.22631.0

Other Software

No response

Steps to reproduce

I can provide the sixel ansi to produce this image if needed, but otherwise output some sixel image and count the actual number of lines used in terminal.

Expected Behavior

Expect a 100 pixel tall sixel image to cover 5 lines in the terminal if pixel geometry is (20, 10)

Actual Behavior

Related to https://github.com/microsoft/terminal/pull/17504

Querying pixel size of cell returns (20, 10) as mentioned above (here, in python):

>>> print("\x1b[16t")

>>> ^[[6;20;10t

but printing an image that is 100 pixels high, say, uses 10 lines in terminal (expected 5 lines, or 20 pixels high per line):

Image

I've printed line numbers over the image to help show this.

Originally created by @salt-die on GitHub (Jan 25, 2025). ### Windows Terminal version 1.22.3232.0 ### Windows build number 10.0.22631.0 ### Other Software _No response_ ### Steps to reproduce I can provide the sixel ansi to produce this image if needed, but otherwise output some sixel image and count the actual number of lines used in terminal. ### Expected Behavior Expect a 100 pixel tall sixel image to cover 5 lines in the terminal if pixel geometry is (20, 10) ### Actual Behavior Related to https://github.com/microsoft/terminal/pull/17504 Querying pixel size of cell returns (20, 10) as mentioned above (here, in python): ```py >>> print("\x1b[16t") >>> ^[[6;20;10t ``` but printing an image that is 100 pixels high, say, uses 10 lines in terminal (expected 5 lines, or 20 pixels high per line): ![Image](https://github.com/user-attachments/assets/e8b7ca0f-6674-42e7-87ba-ba1ba33d2438) I've printed line numbers over the image to help show this.
claunia added the Needs-TriageIssue-Bug labels 2026-01-31 08:23:49 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#22798