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

Support animations in non-interactive consoles #49

Closed
anogma opened this issue Dec 27, 2021 · 3 comments
Closed

Support animations in non-interactive consoles #49

anogma opened this issue Dec 27, 2021 · 3 comments

Comments

@anogma
Copy link

anogma commented Dec 27, 2021

Some IDEs have partial ANSI support. They know how to interpret color codes but can't change the cursor position. Fortunately, they understand carriage returns (CR). So, it's possible for them to support some animations if we don't print line feeds.

The logic behind the animation loop seems to be: do a carriage return, then move the cursor up by one line and finally print the animation ending with a line feed. What if we don't print that line feed?

@ajalt
Copy link
Owner

ajalt commented Jan 5, 2022

Can you give me an example of the IDEs you're trying to run animations in, and the animation you'd like to use?

@anogma
Copy link
Author

anogma commented Jan 21, 2022

I'm using Intellij IDEA. I'd like to use the progress animation.

@ajalt
Copy link
Owner

ajalt commented Mar 1, 2022

Should be fixed in 2.0.0-beta5

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