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

"Blink" style only blinks when terminal window is focused #164

Open
Satellile opened this issue May 6, 2023 · 1 comment
Open

"Blink" style only blinks when terminal window is focused #164

Satellile opened this issue May 6, 2023 · 1 comment

Comments

@Satellile
Copy link

Using the "indicatif" crate, I have a progress bar set to blink. If the terminal window is focused, the blink works, but if another window is focused, the text won't blink. It will stay normal/dimmed until I click/alt-tab back into the terminal window.

Running on Windows 10.

@Joedang
Copy link

Joedang commented Jul 4, 2024

I don't think there's enough context to know exactly what your issue is. (It sounds like this would be an issue with indicatif, not console, but it's hard to know without a minimum working example.)

However, I have a guess about what you're experiencing. The escape sequence \x1b[5m tells the terminal to give any subsequent text the "blink" attribute. It's up to the terminal to decide how that's implemented, if at all. (Many terminals and terminal emulators just ignore this escape sequence.) So, you probably need to tweak the settings of your terminal, if you want blinking to be handled differently.

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

No branches or pull requests

2 participants