-
-
Notifications
You must be signed in to change notification settings - Fork 661
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
Use available terminal columns instead of hardcoded 80 columns #11404
Conversation
This is missing the dune entry. And I just tested, works for me. But I don"t think it should call |
Whoops, aborted Thanks for testing! |
829c518
to
b97f4e0
Compare
src/compiler/args.ml
Outdated
@@ -2,8 +2,16 @@ open Globals | |||
open Common | |||
open CompilationContext | |||
|
|||
let terminal_width = ref None | |||
let get_columns = match !terminal_width with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn"t a function and executes immediately, so the terminal_width
above is useless.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
damn, I knew I shouldn"t hurry to deal with it before getting out x_x
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, didn"t know about lazy
…oundation#11404) * Use available terminal columns instead of hardcoded 80 columns * hotfix on phone * embrace laziness --------- Co-authored-by: Rudy G <[email protected]> Co-authored-by: Simon Krajewski <[email protected]>
Using https://github.com/cryptosense/terminal_size, detect available terminal columns instead of hardcoded 80 columns when possible. Helps with help messages, for example.
Haven"t tested on windows myself