awesome-gocui / gocui

Minimalist Go package aimed at creating Console User Interfaces.
BSD 3-Clause "New" or "Revised" License
344 stars 39 forks source link

How Clear screen before going to new layout. #132

Open ahmhoseini opened 2 months ago

ahmhoseini commented 2 months ago

When I use app created with gocui, sometimes messages from other parts of OS, (like kernel messages) show on tty1, under app, and I couldn't find anyway to clear them. I tried to send Clear Screen escape code, but It seems it breaks flow of app, and not works correctly.

How Could I force app to redraw all current gui state, or at least clears screen completely before changes to new layout?