How to get user input before they press Enter

Asked

Viewed 16 times

0

Guys, I wanted to know how to get the raw user input, before it presses Enter, well what I want to do is, using Threads I listen to a TCP client, when it sends data, I wanted it to overwrite the input line but continue with the input, type, write to the input line and put the dnv input down (showing the value I already typed)...

If someone there knows how to do it, give this help to...

Note: I know how to make an input system using the Keyboard module but the problem is that, in the environment where I will run the script(Termux), the Keyboard module does not work, (none of the modules that listen to keyboard events work... I have tested several)

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.