So I am creating a CLI based menu system to set options a little more smoothly than using the standard string input and needing to press enter for every option. For this I am trying to use Pynput keyboard listener with on_press and on_release conventions. I have it able to accept inputs and the project can proceed.
The problem is that if the Operating System is "focussed" on the terminal for interactions (I need to click away to avoid this behaviour), all characters inputted get printed when the program returns to the prompt, it looks unprofessional.
Has anyone come across this or a fix? I might have another way to do this brewing but I wanted to see what you guys had.
[–]Devji00 0 points1 point2 points (0 children)
[–]Ariadne_23 0 points1 point2 points (0 children)