winpty icon indicating copy to clipboard operation
winpty copied to clipboard

Access console window size

Open segrey opened this issue 7 years ago • 2 comments

Currently, winpty allows to set window size via winpty_set_size in winpty.h. However, I couldn't find a way to access window size (no winpty_get_size API). Is it possible to access window size by other means?

segrey avatar Aug 23 '18 11:08 segrey

There's currently no way to retrieve the window size.

Can you use the value last passed to winpty_set_size, or are you trying to accommodate console programs that resize the console window/buffer?

rprichard avatar Sep 17 '18 00:09 rprichard

Thanks, currently, the value last passed to winpty_set_size is used: https://github.com/JetBrains/pty4j/commit/3f0fbce33ce0c2231f84feae28b09abd50fd6fe8#diff-385b08a79e19a17a08ef52bc324383f9 Do you mean that it's impossible to retrieve the window size or it's just not implemented yet, but possible?

segrey avatar Sep 19 '18 09:09 segrey