Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ Some operating systems are enabled, but not actively tested or supported:

- macOS
- FreeBSD / OpenBSD
- Termux
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Termux
- Termux (Android)

Copy link
Copy Markdown

@rmhaiderali rmhaiderali Apr 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should just mention Android, since this change comes from upstream and not from Termux patches. Any android build of python based on upstream v3.13 onwards includes this change.

For example, the Coding Python app on the Play Store also reports sys.platform == "android" even though it does not include Termux patches.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, If this is not specific to Termux, listing android directly should be better


Theoretically every Unix based system should work, but they will not be actively tested.
It is also required that somebody provides initial test results before the OS is enabled
Expand Down
2 changes: 1 addition & 1 deletion readchar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from ._config import config


if platform.startswith(("linux", "darwin", "freebsd", "openbsd")):
if platform.startswith(("linux", "darwin", "freebsd", "openbsd", "android")):
from . import _posix_key as key
from ._posix_read import readchar, readkey
elif platform in ("win32", "cygwin"):
Expand Down