1

Sorry if my question is worded wrong, but I'm trying to achieve something like:

{text} {input}                                                  {more text}

like in this image: image of ZSH

I know this can be done by going up a line (not sure how though), but I like it more that the text on the right is already there.

Eccentrici
  • 42
  • 3
  • You'll need to know the current width of (terminal) window. But have a look at the [curses module](https://docs.python.org/3/library/curses.html). – 9769953 Jan 02 '22 at 09:21
  • As an aside: usually, I find the trouble of something like this is not worth it. – 9769953 Jan 02 '22 at 09:22
  • 1
    I feel this question is wrongly closed. The dupe adds `{more text}` after pressing enter. OP mentioned **I like it more that the text on the right is already there.** – TheScore Jan 02 '22 at 09:29
  • You can use return carriage(`\r`) here. Try this `input(" time\r$ ")`. [Try it online](https://replit.com/@Ch3seR/ReturnCarriage#main.py) – Ch3steR Jan 02 '22 at 09:32

0 Answers0