pythontput

Python update multiple lines after print


How can I update multi lines in python after print them?

Like this example:

enter image description here

Something like tput ( https://linux.die.net/man/1/tput ) inside python.

Thanks


Solution

  • Have you looked at the package rich? I believe it can do something like what you want.

    https://github.com/willmcgugan/rich