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] cursive.clear() does not work. #762

Open
massimo79m opened this issue Sep 27, 2023 · 2 comments
Open

[BUG] cursive.clear() does not work. #762

massimo79m opened this issue Sep 27, 2023 · 2 comments
Labels

Comments

@massimo79m
Copy link

Calling the cursive.clear() the screen is not cleared.
Also tried with cursive::backend:: .... clear() with ncurses, termion and crossterm.

Osx 13.4.1, rust and cursive updated.

@massimo79m massimo79m added the bug label Sep 27, 2023
@gyscos
Copy link
Owner

gyscos commented Sep 29, 2023

Hi, and thanks for the report!

The clear() method is not usually meant to be used directly - it's more of an internal detail to remove anything left on the screen before drawing everything again.

What would you like to do? Remove any existing view?

@massimo79m
Copy link
Author

thank you for the answer!
I wrote in #755 i would not to return to "terminal" between cursive.run() calls, and so i would to clear the screen before the first run() to have a void screen.

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

No branches or pull requests

2 participants