question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Terminal cursor hidden after audit failure

See original GitHub issue

Bug 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 or python3 -V): Python 3.8.10
  • pip version (pip -V or pip3 -V): pip 22.1 from /home/<redacted>/.venv/lib/python3.8/site-packages/pip (python 3.8)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
woodruffwcommented, May 23, 2022

@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?

1reaction
woodruffwcommented, May 24, 2022

Released with 2.3.1.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found