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

How to clear and redraw? #210

Open
NLKNguyen opened this issue Apr 8, 2021 · 1 comment
Open

How to clear and redraw? #210

NLKNguyen opened this issue Apr 8, 2021 · 1 comment

Comments

@NLKNguyen
Copy link

Hi,

Thanks for the amazing dashboard. Is there any way to clear and render the full dashboard again?

For more context, I'm trying to use this with https://github.com/cronvel/terminal-kit for more extensive user input. Sometimes I want to clear the screen term.clear() then redraw the dashboard. But with the screen.render() it only renders the newly added widget but not the rest that was rendered previously.

@lkashl
Copy link

lkashl commented Apr 10, 2021

I remove the element, set it, append it and re-render it

screen.remove()
grid.set(xxxxx)
screen.append()
screen.render()

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

No branches or pull requests

2 participants