-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Bash/Linux: terminal rows and columns are not read properly by default #7295
Comments
Well, maybe I'm wrong and this never worked, and the systems I was on set LINES and COLUMNS as environment variables. I see the same behavior on Julia 0.2.1. |
I take that back. Running |
I too see this on OSX, even with things like |
I'm git bisecting right now. |
I think readline used to read the terminal size on startup, even though we broke updating the size on terminal resize at some point. It looks like Terminals actually has a function that calls libuv to get the TTY size (check |
Thanks, Simon. FWIW, it was the introduction of the new REPL where this was lost, which makes perfect sense. |
Replaces tty_rows()/tty_cols() with tty_size(), which calls uv_tty_get_winsize() to get the terminal size
In Bash, Julia always starts now assuming that I have 25 rows and 80 columns. This wasn't always the case, although I'm not sure yet when the change happened.
tty_rows()
andtty_cols()
determine rows and columns by reading theLINES
andCOLUMNS
environment variables. However, these variables are shell variables in bash, and are not set as environment variables by default. (See: http:https://mywiki.wooledge.org/BashFAQ/091)Related: #4513
The text was updated successfully, but these errors were encountered: