Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supported for terminals that do not support 'TIOCGWINSZ' #18

Merged
merged 1 commit into from
Nov 1, 2020

Conversation

komem3
Copy link
Contributor

@komem3 komem3 commented Oct 1, 2020

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.

  • before my eshell

  • after my eshell

image

Not all terminals can use 'TIOCGWINSZ' to get the size of the terminal.
That's why I used the "COLUMNS" variable to get the size when the width is zero.
@Yash-Handa
Copy link
Owner

Thanks @komem3, For this keen fix. Merging it : )

@Yash-Handa Yash-Handa merged commit 9972f56 into Yash-Handa:master Nov 1, 2020
@komem3 komem3 deleted the shellwidth branch November 1, 2020 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants