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

[BUG] console.clear() events included in save_text() output, resulting in garbage #181

Closed
minimaxir opened this issue Jul 26, 2020 · 2 comments

Comments

@minimaxir
Copy link

minimaxir commented Jul 26, 2020

Describe the bug
console.clear() events are included in save_text() output, resulting in garbage which is likely not intended.

To Reproduce

from rich.console import Console

console = Console(record=True)
console.clear()
console.print("What is love?")
console.save_text("test.txt")

Results in a text file with:

�[2J�[HWhat is love?

Platform
ZSH (via VS Code's integrated terminal), rich 4.1.0

@willmcgugan
Copy link
Collaborator

Please try v4.2.0

@minimaxir
Copy link
Author

Works there. Thanks for the fast turnaround!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants