pypa / pip

The Python package installer
https://pip.pypa.io/
MIT License
9.5k stars 3.01k forks source link

Progress bar changes cursor shape in Windows cmd #11144

Open chrullrich opened 2 years ago

chrullrich commented 2 years ago

Description

While installing packages, the normally "small" (narrow underline) text cursor of a Windows "Command Prompt" window becomes "large" (full square). (The quoted words are the option labels from the "Properties" dialog.)

This happens only if the progress bar is used during the operation. Both when installing small packages that do not trigger the progress bar and when suppressing it using --quiet, the cursor shape does not change.

Expected behavior

The cursor shape should not be different after pip finishes.

pip version

22.1.1

Python version

3.10.4

OS

Windows 11

How to Reproduce

  1. Ensure that an old version of a large package is installed.
  2. python -m pip install -U that-large-package
  3. Examine the text cursor.

Output

No response

Code of Conduct

uranusjr commented 2 years ago

Looks like a problem in Rich? cc @willmcgugan