gyscos / cursive

A Text User Interface library for the Rust programming language
MIT License
4.33k stars 247 forks source link

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

Open massimo79m opened 1 year ago

massimo79m commented 1 year ago

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.

gyscos commented 1 year ago

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 commented 1 year ago

thank you for the answer! I wrote in https://github.com/gyscos/cursive/discussions/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.