msys2 / MINGW-packages

Package scripts for MinGW-w64 targets to build under MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
2.31k stars 1.23k forks source link

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

Open tieneupin opened 1 month ago

tieneupin commented 1 month ago

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

Are you willing to submit a PR?

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

Biswa96 commented 1 month ago

I can reproduce the issue.