[go: nahoru, domu]

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

Spinners breaks when text size exceeds terminal size #1

Open
manrajgrover opened this issue Sep 25, 2017 · 2 comments · Fixed by #30
Open

Spinners breaks when text size exceeds terminal size #1

manrajgrover opened this issue Sep 25, 2017 · 2 comments · Fixed by #30
Labels

Comments

@manrajgrover
Copy link
Owner

Spinners breaks when text size exceeds terminal size. This needs to be fixed with text wrapping.

@shardulm94
Copy link
shardulm94 commented Oct 17, 2017

Any progress on this?
I was thinking about this and was able to come up with a quick hack, the problem is compatibility though.

def clear(self):
        num_lines = ceil((num_chars_in_frame + len_text + 1 ) / terminal_num_columns)
        self._stream.write('\r')
        self._stream.write((self.CLEAR_LINE + '\033[A') * (num_lines - 1) + self.CLEAR_LINE)
        return self

@manrajgrover
Copy link
Owner Author

@shardulm94 One solution I was thinking was to do handle it with ellipsis. I'm not sure about your solution and would need to try it before moving ahead. Please share if you get a chance to try it out. Also, feel free to raise a PR for the same. 😄

@manrajgrover manrajgrover reopened this Dec 23, 2017
Davidy22 pushed a commit to Davidy22/halu that referenced this issue Dec 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants