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

Needs platform independent method of getting tty width. #29

Open
ariccio opened this issue Apr 15, 2022 · 1 comment
Open

Needs platform independent method of getting tty width. #29

ariccio opened this issue Apr 15, 2022 · 1 comment

Comments

@ariccio
Copy link
Contributor

ariccio commented Apr 15, 2022

On windows, we don't necessarily have tput.

Readline.get_screen_size seems to work well enough. Readline.get_screen_size[0] gets the width.

@ariccio
Copy link
Contributor Author

ariccio commented Apr 15, 2022

IO.console.winsize works too. Might be better if you want to use a builtin that way?

grosser added a commit that referenced this issue Apr 15, 2022
swap tput for IO.console.winsize: Fix issue #29
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

No branches or pull requests

1 participant