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

How to prevent enter/return press and staggered output on stdout for a activit indicator Text output #666

Open
jayshah123 opened this issue Jul 10, 2024 · 0 comments

Comments

@jayshah123
Copy link

jayshah123 commented Jul 10, 2024

I have an running/in-progress output similar to what is shown in counter example.

But when a user keeps pressing "Enter/return" key, the enter/newline is rendered on stdout, and the following render frame starts from the next line.

If you try the same for counter example (i.e. press newlines while the counter is running), you will see staggered output on the stdout.
Screenshot 2024-07-10 at 4 47 17 PM

Is this a known issue/ any known workaround for this?
I was looking for output to be always rendered on the same line overriding the previous output (which makes sense for an activity indicator)

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

1 participant