i want to make a game in python that i can play in the terminal (might add gui later). my question is this: how would i display all the info a player would need without making the terminal a unreadable mess? my idea rn is the have it clear the terminal and send a new message with the most up-to-date info, i just dont know how to do that.
#displaying up-to-date info in terminal without clutter.
7 messages · Page 1 of 1 (latest)
Clearing might lead to flickering etc.
You're probably looking for something like ncurses (https://docs.python.org/3/howto/curses.html) or a higher-level abstraction around it like pytermgui (https://github.com/bczsalba/pytermgui)
Python documentation
Author, A.M. Kuchling, Eric S. Raymond,, Release, 2.04,. Abstract: This document describes how to use the curses extension module to control text-mode displays. What is curses?: The curses library ...
i’ll check both of those out thank you
can you explain PyTermGUI to me a bit? i'm having minor troubles understanding lol
It's basically a terminal UI framework
Instead of clearing and then printing everything again only certain parts get replaced -> No flickering
thank you!