blessed-contrib icon indicating copy to clipboard operation
blessed-contrib copied to clipboard

How to clear and redraw?

Open NLKNguyen opened this issue 4 years ago • 1 comments

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.

NLKNguyen avatar Apr 08 '21 22:04 NLKNguyen

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

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

lkashl avatar Apr 10 '21 11:04 lkashl