Skip to content
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

MacOs arm64 #180

Closed
vaclavbenes opened this issue Jun 29, 2024 · 6 comments · Fixed by #190
Closed

MacOs arm64 #180

vaclavbenes opened this issue Jun 29, 2024 · 6 comments · Fixed by #190

Comments

@vaclavbenes
Copy link

Is there any workaround for running this sample code on macOS arm64? In my case, inputs are ignored.

fun main() {
    val terminal = Terminal()
    val selection = terminal.interactiveSelectList(
        listOf("Small", "Medium", "Large", "X-Large"),
        title = "Select a Pizza Size",
    )
    if (selection == null) {
        terminal.danger("Aborted pizza order")
    } else {
        terminal.success("You ordered a $selection pizza")
    }
}

same stuff working on Linux.
Thx

@ajalt
Copy link
Owner

ajalt commented Jun 29, 2024

JVM or native?

@vaclavbenes
Copy link
Author

Jvm . I didn't try native.

@ajalt
Copy link
Owner

ajalt commented Jun 30, 2024

I'm guessing it's the same issue as #86, where JNA just doesn't support macos arm64 well. Maybe a future JNA release will improve that, but really I think the solution is to implement an FFM version of all the syscall code. FFM has its own drawbacks, but at least it should work.

I'll update the docs to mention support.

@JakeWharton
Copy link
Contributor

Native is also not working for me. Just doing

fun main() {
  Terminal().interactiveSelectList(listOf("a", "b"))
}

@ajalt
Copy link
Owner

ajalt commented Jul 24, 2024

Native is also not working for me.

Does the list show up but inputs are ignored? Or are you seeing some other problem?

@JakeWharton
Copy link
Contributor

Yes it renders properly, it just doesn't respond to any input.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants