python - Get user input without interrupting program execution -
i'm working on program (a chat bot actually, can see code here if want) has infinite loop running @ times.
i use asyncio
part of code, tried creating subroutine received input , checked commands. however, didn't seem worked.
what want able issue program commands without interrupting execution using input()
would. preferably, have >
character , line stays @ bottom of screen program output appearing above , allows input.
is possible asyncio
or need multi-threading program or else?
edit: 1 thought had perhaps use ncurses
gui-thing has entry field @ bottom , bot's output above entry field. possible?
you should able use asyncio since stdin stream can select...
Comments
Post a Comment