-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Suppress cursor blinking when text is actively being printed #1087
Comments
This would probably be more adequately handled by supporting cursor off/on sequences in ConPTY, right? It seems most ideal that an application printing a progress bar would turn off the cursor before doing so. |
@DHowett-MSFT I didn't even know that there were sequences to toggle the cursor on/off! That would definitely be the ideal approach. |
Upon further investigation, it looks like most terminals (including conhost) show the cursor when text is being printed (except when the cursor toggle sequences are used). This isn't a major issue, but try I'll leave this open |
Yea I had a PR internally for properly rendering the cursor state with conpty before moving to open source, but I don't think I ever followed up on it since the move. I'll need to port it out here |
You can see this behavior in |
+1 for enabling cursor on/off escape sequences, please! :) I.e., normally: \e[?25l to hide and \e[?25h to show. |
I'm having the same issue, can someone help me |
Here's an edge case I didn't cover in #686 - though it might warrant its own issue anyway.
Environment
Steps to reproduce
Print a lot of text to the console. This is especially apparent with progress bars that require backspace characters.
Actual behavior
The cursor continues to blink, or if the cursor blinking is turned off it stays on. This leads to some weird behaviour:
Expected behavior
I'm thinking the cursor should automatically hide when printing text. I've seen this done in a few other terminal programs.
The text was updated successfully, but these errors were encountered: