Is there a chance of getting expose the x and y values from winsize?
Those are used by terminals to tell the width and height in pixels, that can in turn be used with rows and cols to get the dimensions of a cell in pixels, which is incredibly useful when dealing with sixels.
I looked at the Windows documentation and I'm not sure there's a way to get the same on it.
A good alternative would be to expose them as Option<u16> since some terminals set those values to 0, which would make it simple to behave optionally on them.
Is there a chance of getting expose the
xandyvalues fromwinsize?Those are used by terminals to tell the
widthandheightin pixels, that can in turn be used withrowsandcolsto get the dimensions of a cell in pixels, which is incredibly useful when dealing with sixels.I looked at the Windows documentation and I'm not sure there's a way to get the same on it.
A good alternative would be to expose them as
Option<u16>since some terminals set those values to0, which would make it simple to behave optionally on them.