Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
x/crypto/ssh/terminal: GetSize returns incorrect results #27743
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
Hi, thanks for the reply.
I will say what I expected was the window size. I can imagine scenarios where one may need both, but for a basic console app, I think size of the window, i.e. the viewable area, is more important.
For example, if I wanted to know how much space I have for writing text, I'd need to know the dimensions (same thing for clearing the screen, unless there's a method that I haven't found yet....) The same is true for determining whether things need to be redrawn if the terminal window is resized.
That was my concern. It looks, then, like the only way to get this information is sending a command such as
But back to my original issue, at the least it seems like the documentation should make it clearer that