fusesource / jansi

Jansi is a small java library that allows you to use ANSI escape sequences to format your console output which works even on windows.
http://fusesource.github.io/jansi/
Apache License 2.0
1.11k stars 140 forks source link

AnsiConsole.getTerminalWidth() returns 13249 instead of 200 on Windows with Git Bash #233

Closed stefanseifert closed 11 months ago

stefanseifert commented 2 years ago

Git Bash which comes with the Git installer for windows is quite popular on windows as alternative to PowerShell, cmd and WSL.

in context of a Maven Plugin (https://github.com/mojohaus/versions-maven-plugin/pull/572) i ran into the problem that the width value returned by AnsiConsole.getTerminalWidth() produced totally unexpected results when using Git Bash - 13249 instead of 200.

it works fine on the same machine when using PowerShell or cmd.