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

Python's Textual doesn't work on MSYS2 terminals on Windows 10 #22188

Open
4 of 6 tasks
tieneupin opened this issue Oct 14, 2024 · 1 comment
Open
4 of 6 tasks

Python's Textual doesn't work on MSYS2 terminals on Windows 10 #22188

tieneupin opened this issue Oct 14, 2024 · 1 comment
Labels

Comments

@tieneupin
Copy link

tieneupin commented Oct 14, 2024

Description / Steps to reproduce the issue

# Tried the following in both MINGW64 and UCRT64
$ pacman -Syu
$ pacman -S mingw-w64-ucrt-x86_64-python-pip  # Installs Python 3.11.10
$ pacman -S mingw-w64-ucrt-x86_64-rust  # Not used yet, but to show what I've installed so far
$ python -m pip install virtualenv  # Install in a clean Python environment
$ python -m virtualenv ~/textual-test
$ source ~/textual-test/bin/activate
$ pip install textual  # Installs Textual 0.83.0
$ python -m textual

Expected behavior

Textual's demo UI will appear, and we can point and click on items in the terminal's UI to navigate it in addition to using the set keyboard shortcuts

Actual behavior

Textual's demo UI appears, but cannot be interacted with. The keyboard shortcuts work fine though.

When running the UCRT64 and MINGW64 environments through Windows Terminal, however, UI interactivity works. UI interactivity also works on Cygwin terminals, so this appears to be specific to MSYS2's terminals.

From the MSYS2 Discord (link), other users have reported that this problem is reproducible when running MSYS2 on a clean, full FAT VM Win 10 install, but not on that of Win 11, which indicates that something must have changed in the mintty terminal behaviour.

Verification

Windows Version

MINGW64_NT-10.0-19045

MINGW environments affected

  • MINGW64
  • MINGW32
  • UCRT64
  • CLANG64 (Have not had time to try this)
  • CLANGARM64 (Have not had time to try this)

Are you willing to submit a PR?

No; I don't know enough to be able to contribute a PR yet.

@tieneupin tieneupin added the bug label Oct 14, 2024
@tieneupin tieneupin changed the title Python's Textual doesn't work on MSYS2 terminals Python's Textual doesn't work on MSYS2 terminals on Windows 10 Oct 14, 2024
@Biswa96
Copy link
Member

Biswa96 commented Oct 14, 2024

I can reproduce the issue.

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

No branches or pull requests

2 participants