glances icon indicating copy to clipboard operation
glances copied to clipboard

Replace the standard Curses lib interface by Textual

Open nicolargo opened this issue 3 years ago • 8 comments

https://rich.readthedocs.io/en/stable/index.html Some tests here: https://github.com/nicolargo/pythonarena/blob/master/rich/layout.py

nicolargo avatar Mar 20 '22 08:03 nicolargo

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 ?

nicolargo avatar Apr 19 '22 08:04 nicolargo

Works in progress in the https://github.com/nicolargo/glances/tree/rich_migration branch (also branch of glancesv4).

nicolargo avatar Apr 22 '22 14:04 nicolargo

It is not an easy task because the Glances UI is dynamic and it feet to the terminal size...

nicolargo avatar May 15 '22 09:05 nicolargo

Have a look on https://github.com/Textualize/textual (based on Rich)

nicolargo avatar Jul 28 '22 16:07 nicolargo