Skip to content

Getting pixel width and height. #6

@meh

Description

@meh

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions