spring-projects / spring-shell

Spring based shell
http://projects.spring.io/spring-shell/
Apache License 2.0
729 stars 397 forks source link

SingleItemSelector renders incorrectly in git bash #664

Open tschut opened 1 year ago

tschut commented 1 year ago

Rendering of SingleItemSelector looks off in git bash: image

It renders correctly in cmd prompt or wsl, so hopefully a minor issue.

jvalkeal commented 1 year ago

I wonder if this is somewhat coming from jline itself. I remember when I got these to work in cmd/powershell, saw a lot of complaints in various places that git bash was the one always causing issues.

adenhartog commented 1 year ago

A workaround for this issue is to preface the java command with the winpty command. So something like: winpty java -jar myboot.jar. This also hints at the cause for Git Bash: an issue with the pseudoterminal for this process. I am not sure whether this is een issue with Spring Shell or just a consequence of using Git Bash.

adenhartog commented 1 year ago

Maybe a adding this tip to the documentation is sufficient.