Python Forum

Full Version: Dynamic Printing With Python Terminal
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello there,

I have a question regarding python terminal printing.
I am currently working on a project in windows. I would like to display text on the top of the terminal in the style that linux nano does.
See image attached.
I would also like to print other text bellow that with print(). How could I make the "banner" to be on the top of the page, while printing other text bellow.

Thanks in advance

P.S: I am going to only use this project on windows if I even finish it.
The curses in the standard libraries.
Quote:curses — Terminal handling for character-cell displays
The curses module provides an interface to the curses library, the de-facto standard for portable advanced terminal handling.

While curses is most widely used in the Unix environment, versions are available for Windows, DOS, and possibly other systems as well. This extension module is designed to match the API of ncurses, an open-source curses library hosted on Linux and the BSD variants of Unix.

And several other available libraries. Several are mentioned in this post on stackoverflow
https://stackoverflow.com/questions/8631...n-bindings

I think Rich looks interesting.
pypi.org/project/rich/
Thank you. I will look into them.