Answer the question
In order to leave comments, you need to log in
How to pass a keyboard shortcut to the console in Python?
The crux of the matter is this. There was a need to transfer commands to the console. I sent text commands using the os module. A process has started in the console, so I can’t send commands, I need to send a key combination to the console, for example, ctrl + c
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question