Closed komem3 closed 3 years ago
Not all terminals can use 'TIOCGWINSZ' to get the size of the terminal.
https://github.com/golang/crypto/blob/afb6bcd081ae5258e9449bf8b9af19593c9b261f/ssh/terminal/util.go#L79-L85
That's why I used the "COLUMNNS" variable to get the size when the width is zero.
Thanks @komem3, For this keen fix. Merging it : )
Not all terminals can use 'TIOCGWINSZ' to get the size of the terminal.
https://github.com/golang/crypto/blob/afb6bcd081ae5258e9449bf8b9af19593c9b261f/ssh/terminal/util.go#L79-L85
That's why I used the "COLUMNNS" variable to get the size when the width is zero.