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

fix: temp fix for Android build error #2694

Merged
merged 1 commit into from
Nov 2, 2022
Merged

fix: temp fix for Android build error #2694

merged 1 commit into from
Nov 2, 2022

Conversation

xJonathanLEI
Copy link
Contributor

Currently the termwiz crate does not build on Android due to the lack of shared memory in the OS. The "fix" I'm proposing here is to simply panic on Android. Obviously, this is not very helpful as it still doesn't work on Android, but it's also harmless (hopefully).

The reason I'm sending this PR is to make applications that only make use of other parts of termwiz work on Android, notably Zellij:

zellij-org/zellij#1833 (comment)

(Honestly I'm not entirely sure if Zellij does not use this function in question, but I've tried changing it to simply panic on any platform, and it's working for me so far on Linux)

Would be amazing if this can be merged so that we can stop using a fork for Android support.

termwiz/src/escape/apc.rs Outdated Show resolved Hide resolved
@xJonathanLEI xJonathanLEI requested a review from wez November 2, 2022 13:17
@wez wez merged commit 4df6d2a into wez:main Nov 2, 2022
@wez
Copy link
Owner

wez commented Nov 2, 2022

Thanks! I've published termwiz-0.19 which includes this change

@xJonathanLEI
Copy link
Contributor Author

Wow that was quick! Thanks a lot!

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 this pull request may close these issues.

2 participants