Skip to content Skip to sidebar Skip to footer

Input Prompt Always At The Bottom

I have a problem. You see, I've created this simple chat server. On the client side, since its a chat server, I'm continuously asking the user for input. The thing is, my input pro

Solution 1:

There are several options:

  • You can write a simple version using ANSI escape sequences yourself, but this will quickly become a pain.
  • You can use the curses module from the standard library, which abstracts away the specifics of inidividual terminals, and is less of a pain than trying to use escape sequences only.
  • You can use a higher level framework built on top of curses, like urwid or npyscreen.

I'd personally go with the last option.

Post a Comment for "Input Prompt Always At The Bottom"