Terminal cursor hidden after audit failure
See original GitHub issueBug description
After a failed audit, the terminal cursor remains hidden rather than being restored to a visible state. This makes it difficult to use the terminal, unless the cursor is restored with the reset
command (which has the downside of clearing the scrollback buffer) or through other more esoteric means (eg: echo -en "\e[?25h"
).
Reproduction steps
Using the BASH shell:
$ pip-audit -r <(echo django==3.2.12) # terminal cursor is currently visible
Found 2 known vulnerabilities in 1 package
Name Version ID Fix Versions
------ ------- -------------- -------------------
django 3.2.12 PYSEC-2022-190 2.2.28,3.2.13,4.0.4
django 3.2.12 PYSEC-2022-191 2.2.28,3.2.13,4.0.4
$ # terminal cursor is now hidden
Expected behavior
The cursor should either remain visible, or be restored to it’s visible state after the command completes.
Platform information
- OS name and version:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal
pip-audit
version (pip-audit -V
):pip-audit 2.3.0
- Python version (
python -V
orpython3 -V
):Python 3.8.10
pip
version (pip -V
orpip3 -V
):pip 22.1 from /home/<redacted>/.venv/lib/python3.8/site-packages/pip (python 3.8)
Issue Analytics
- State:
- Created a year ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
What is making my cursor 'randomly' disappear when using ...
I use HIME-IM and I believe sometimes it "kidnaps" the input cursor. Changing terminal software/apps does not help if being kidnapped.
Read more >cursor disappears after some time · Issue #158 - GitHub
I'm now trying out the Windows Terminal (Preview) Version: 0.3.2171.0 with WSL (Ubuntu 18.04) and Mutt, so far so good, cursor does not ......
Read more >What should you do if the cursor disappears? 2022 solution
In most cases, a simple reboot of the system is sufficient to fix the cursor disappearing error. If this does not help, use...
Read more >hyper-v issue: Mouse pointer invisible in Linux Mint 17 (run in ...
Hi everyone: my problem is, after I installed the Linux mint 17 in windows 10 hyper-v, the mouse was invisible in the guest...
Read more >1941854 – terminal cursor disappears - Red Hat Bugzilla
Actual results: Terminal continues to function, but no amount of resets, escape sequences, or other mojo makes the cursor visible again. It always...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@tysonclugg I’ve opened https://github.com/trailofbits/pip-audit/pull/281 with a potential fix. Could you give the changes on that branch a try and let me know if they work for you?
Released with 2.3.1.