We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba9980e commit 89babbeCopy full SHA for 89babbe
1 file changed
game/utils/tui.py
@@ -2,7 +2,6 @@
2
from copy import deepcopy
3
from time import sleep
4
5
-from pynput import keyboard
6
from rich.console import Console
7
from rich.live import Live
8
@@ -26,6 +25,8 @@ def prepare_display(game_map: Map, state: dict) -> str:
26
25
27
28
def detect_key_input(state: dict, lock):
+ from pynput import keyboard
29
+
30
def on_press(key):
31
try:
32
if key.char == "p":
0 commit comments