Questions tagged [keyboardinterrupt]

227 questions
-2
votes
1 answer

Unable to quit from python script using CTRL+C in Win10

With the following code I'm unable to quit using CTRL+C after running it. I also tried to catch KeyboardInterrupt from different code positions without success. I'm using Windows 10 x64 and Python 3.7.6. async def handle_req(self, reader:…
-2
votes
1 answer

How to use a variable declared in C within inline assembly

I am trying to figure out how to use the variable ret within the inline assembly code below, but I keep getting this error: undefined reference to 'ret. char getkey(void){ int ret; asm( "movq $0, %RAX\n\t" "INT $0X16\n\t" "movq %RAX, ret" ); return…
1 2 3
15
16