()
| 1 | import threading, msvcrt |
| 2 | def take_key(): |
| 3 | global key_GL, command_mode_GL |
| 4 | while True: |
| 5 | if not command_mode_GL: |
| 6 | key_GL = msvcrt.getwch() |
| 7 | if key_GL == "Q": |
| 8 | break |
| 9 | elif key_GL == "/": |
| 10 | command_mode_GL = True |
| 11 | |
| 12 | global key_GL, command_mode_GL |
| 13 | key_GL, command_mode_GL = None, False |
nothing calls this directly
no outgoing calls
no test coverage detected