I really need an asyncio
compatible getkey()
so I can
async def stuff():
await getkey()
So when the coroutine stuff
hits the await
our loop stops the task, and continues on another one.
I am new to coding but there sure is such a thing somewhere?
If not, it is possible to build such a coroutine or not?
The getkey()
could return the pressed key value in any form.
But it should have cbreak
and noecho
on (Don't wait for enter and Don't print the pressed key).
(clarification, no real need to continue read.)
please help me^^ I know, that this way of doing it seems unusual. Curses running in it's own thread would be the right way to go. But I can use curses only for displaying.. also I am really new to coding.. and I have no time to look into this threading thing:/ I just need my 100 lines to work fluently really fast and also only once :!