-
Notifications
You must be signed in to change notification settings - Fork 841
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
Terminal width detection isn't done on Windows #3588
Comments
@kadoban I would like to work on it and have a few ideas on where to start. I'm pretty sure I understand However, there are a couple ways that I think it can be implemented by increasing order of difficulty:
Sincerely, |
@eye942 Approach (1) seems good to me. I don't think anyone is working on this, feel free to have at it |
I recommend the terminal-size library which does this in a cross platform manner. It's used in ghcid with much success. |
Fixed by #4797 |
The terminal width detection (that is used for pretty-printing log/warning/error output) is not done on Windows.
If anyone is interested in contributing that, it should be fairly trivial for the right person. It should go in
windows/System/Terminal.hs
and do something similar in function to what is done inunix/System/Terminal.hsc
The text was updated successfully, but these errors were encountered: