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.

Hide/show cursor ANSI escape codes get printed even without a tty

See original GitHub issue

The hide/show cursor ANSI escape codes get printed even when piping the output to less, for example:

> python3 test.py | less
ESC[?25lESC[?25h|████████████████████████████████████████| 50/50 [100%] in 5.0s (9.98/s)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
rsalmeicommented, Sep 18, 2020

Yeah, they are really not needed. Nice catch!

I’ll fix that in the 2.0, hope you can wait. I’m struggling very much with those wide chars you brought to my attention… Please read the UPDATE I wrote on #51

0reactions
rsalmeicommented, Jan 9, 2021

Closing the ready issues to reduce the number of opened ones. But fell free to contact me if anything arises!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to get/set cursor visibility without using libtinfo/libncurses?
... ANSI escape codes. This means that to hide the cursor, you print "\033[?25l" to the terminal, and "\033[?25h" to show the cursor....
Read more >
ANSI Escape Codes - GitHub Gist
Cursor Controls. ESC Code Sequence, Description. ESC[H, moves cursor to home position (0, 0).
Read more >
Build your own Command Line with ANSI escape codes
These are the Ansi escape codes that programs like Bash use to let you move your cursor left and right across your input...
Read more >
ANSI escape code - Wikipedia
ANSI escape sequences are a standard for in-band signaling to control cursor location, color, font styling, and other options on video text terminals...
Read more >
crossterm - crates.io: Rust Package Registry
A crossplatform terminal library for manipulating terminals. ... Full control over writing and flushing output buffer; Is tty; Cursor.
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