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 show/hide cursor for older Windows #610

Merged
merged 6 commits into from
Jan 28, 2021
Merged

Conversation

itsayellow
Copy link
Contributor

  • I have added an entry to docs/changelog.md

Summary of changes

Closes #603 .

On Windows, this PR adds and uses the method of showing/hiding the cursor outlined in https://stackoverflow.com/a/10455937

Test plan

I don't have an older copy of Windows, so if somebody could test this with an old Windows (before Windows 10 TH2 (v1511)) I would be much appreciative.

From #603, all one would need to do would be to see if there are visible ANSI escape codes printed (e.g. [?25l, [?25h) when executing pipx commands like:

pipx --version

@itsayellow
Copy link
Contributor Author

Testing by @CarliJoy in #603 indicates that this fixes the problems due to show_cursor and hide_cursor.

@itsayellow itsayellow merged commit 88b84e5 into pypa:master Jan 28, 2021
@itsayellow itsayellow deleted the win-cursor branch January 28, 2021 23:10
itsayellow added a commit to itsayellow/pipx that referenced this pull request Feb 16, 2021
Add app_name "pipx" to ensurepath comments, don't duplicate bin_paths.

Apply typing.NoReturn to code base (pypa#605)

Fix post-release development versioning (pypa#601)

Make constants.py single source for WINDOWS boolean. (pypa#607)

Add section on where pipx keeps its logs. (pypa#608)

Upgrade all pre-commit plugins except black. (pypa#611)

Fix show/hide cursor for older Windows (pypa#610)

Drop .exe appending on Windows (pypa#606)

This makes Venv.run_app() and code path along it accept an additional
argument, so we can distinguish between the "real" name (filename) of an
app, and the name supplied by the user.

This makes the code simpler, espacially when dealing with the proposed
[pipx.run] entry points.

Add text color capability for Windows (pypa#612)

Better Unicode / emoji capability detection (pypa#614)

Use python 3.9 as default python for CI. (pypa#622)

Don't show / hide cursor if not in tty. (pypa#620)
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.

Windows CMD - colors and Symbols are not displayed correctly
2 participants