Replace the standard Curses lib interface by Textual
https://rich.readthedocs.io/en/stable/index.html Some tests here: https://github.com/nicolargo/pythonarena/blob/master/rich/layout.py
Need to use https://rich.readthedocs.io/en/stable/live.html
See an example here: https://github.com/Textualize/rich/blob/master/examples/top_lite_simulator.py
But what bout the keyboard management ?
Works in progress in the https://github.com/nicolargo/glances/tree/rich_migration branch (also branch of glancesv4).
It is not an easy task because the Glances UI is dynamic and it feet to the terminal size...
Have a look on https://github.com/Textualize/textual (based on Rich)