-
Notifications
You must be signed in to change notification settings - Fork 140
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
getWindowsTerminalWidth Issue #175
getWindowsTerminalWidth Issue #175
Comments
Yes, right now, you can define the method using
Is that specific to windows ? I could re-introduce a helper function, but I don't really why it would be specific on windows.
I'd have to check that it works on Cygwin and other enhanced Windows environments... |
Hello,
Such a function would be great for me too! Some of my code plays orund with the terminal in terms of ASCII-Art, and I just uncommented the detection of the console width for Windows using JANSI as I upgraded to the latest JANSI version. As soon as the helper methods will be avaialable, I will re-introduce JANSI's width detection as it was the most reliable one I encountered till now :-) |
Hello,
With the update to jansi 2.0.1, I can't seem to find getWindowsTerminalWidth() anymore. Is there another function I should be using to get the the columns in the terminal window instead?
Here is the call I was using
if (System.getProperty("os.name").toLowerCase().contains("windows")) {
terminalWidth = org.fusesource.jansi.internal.WindowsSupport.getWindowsTerminalWidth() - 1;
}
BTW, I love the library and use it on all of my projects. Thanks for all of the work on this.
Michael
The text was updated successfully, but these errors were encountered: