I wrote a snippet of code in python in which I ask questions, and users should contribute. Sometimes these questions are difficult for the user to understand (they are not English). Therefore, most of the time they want to copy paste the sentence into google translate. However, since this code is run on the command line, they must select the text and use βright click β copyβ, they can copy the text to google translate. Sometimes, by mistake, press "ctrl + c" (for all users it is natural to use this combination for copying). Doing this will end the code, and they should start all over again. I need to know that I can prevent this. In other words, if they press "ctrl + c", nothing happens and my software does not interrupt. thanks
source share