oyvindberg / tui-scala

Beautiful Text-based User Interfaces for Scala
MIT License
208 stars 10 forks source link

running on windows throws error because windows doesn't have "uname" command #31

Closed nomad-scl closed 1 year ago

nomad-scl commented 1 year ago

trying to run tui in windows throws an error because in crossterm/src/java/tui/crossterm/NativeLoader.java the getPlatform function tries to run the unix/linux command "uname" which doesn't exist in windows

oyvindberg commented 1 year ago

Hi there!

Ohhh, right. I remember I was a bit sceptic while porting that code when I saw it ran uname, but since I had recently learnt that at least newer windowses actually do have the uname command I figured it had to work. So that code is ported to java from sbt-jni, and now I found https://github.com/sbt/sbt-jni/issues/20 .

oyvindberg commented 1 year ago

released 0.0.5 with the fix. I honestly haven't tested it as good as I should, but it passed CI on all four supported platforms