term_size-rs
term_size-rs copied to clipboard
Functions for determining terminal sizes in Rust
Currently term_size queries the standard streams to get the terminal size which fails if all are redirected. However POSIX also provides means to directly get hold of the underlying terminal...
`winsize` also exposes the window size of the terminal in pixels which supports image drawing (e.g. in Kitty). Would you mind to expose it as well? By the way, while...
Hi! code assumes that all linux targets have `static TIOCGWINSZ: c_ulong = 0x5413;` this is not the case, on ppc64 (and maybe ppc, not sure) it's `0x40087468` I've described a...
`term_size::dimensions()` returns `None` on mintty 2.8.3 term_size v0.3.1
In an effort to get 1.x out this will be the summary issue linking to all tracking issues. Many of the issues that will come out of this will be...