Python Forum
Dynamic Printing With Python Terminal
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dynamic Printing With Python Terminal
#1
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.

Attached Files

Thumbnail(s)
   
Reply
#2
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/
Reply
#3
Thank you. I will look into them.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  invoking python in Terminal Euler 2 624 Aug-25-2023, 06:17 AM
Last Post: perfringo
  Launch Python IDLE Shell from terminal Pavel_47 5 1,220 Feb-17-2023, 02:53 PM
Last Post: Pavel_47
  Python VS Code: using print command twice but not getting output from terminal kdx264 4 1,076 Jan-16-2023, 07:38 PM
Last Post: Skaperen
  dynamic object creation using python gary 7 1,263 Oct-15-2022, 01:35 PM
Last Post: Larz60+
  Dynamic File Name to a shared folder with open command in python sjcsvatt 9 6,020 Jan-07-2022, 04:55 PM
Last Post: bowlofred
  Running latest Python version on the Terminal (MAC) Damian 4 2,635 Mar-22-2021, 07:58 AM
Last Post: Damian
  keyboard module doesn't work in the microsoft version terminal of python. username 1 2,802 Feb-25-2021, 05:19 PM
Last Post: Larz60+
  gnome terminal playing with python jmex 12 6,142 Feb-03-2021, 01:38 PM
Last Post: Axel_Erfurt
  Refresh data in python script while running in Terminal frankenchrist 4 7,246 Feb-03-2021, 09:54 AM
Last Post: Larz60+
  Printing string at specific position on terminal - not showing __Mathieu__ 1 2,374 Sep-07-2020, 10:32 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020