I'm working on a classic text-adventure port in python.
I'm wondering is it possible to center a users input?
I found out that using str.center() method, I can center the printed text, however, I can't center the python input() function. Using str.center() just gives me this:
As you can see, the input starts in the middle but then just continues to the right
What I'd like to do is that whatever the user inputs, it goes in the middle like this:
(also if you're wondering, I didn't solve my own problem, this is just a mock using a print instead of an input)
So I'm wondering how could I do that? Using the str.center() or Curses or something else altogether?