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

draft of a fix for proper behaviour on terminal window downsize #112

Closed
wants to merge 1 commit into from

Conversation

sharctgx
Copy link

@sharctgx sharctgx commented Oct 4, 2021

This is a draft of code that should fix #106. Right now it only works with useANSICodes option (which is false by default).

I don't know how it can be done without ANSI codes, because we need to clear previous lines. I guess it can be achieved with some package for terminal support (other than term), that can move cursor between lines. Though a quick research shows that most popular packages like atomicgo/cursor also use ANSI codes 😃

Would like to hear any helpful comments about the code and any thoughts on the best way to fix the issue.

gabe565 added a commit to clevyr/kubedb that referenced this pull request Jul 9, 2022
@schollz schollz closed this Feb 24, 2024
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

Successfully merging this pull request may close these issues.

When reducing terminal size, bar will not remain in the same line in each rendering. Is it a bug?
2 participants