1 | initial version |
Did you try clicking the displayed window and then pressing a key? The focus of your OS may still be with the terminal, so your keystrokes are being intercepted by your terminal, rather than the window created from imshow().