mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-28 01:52:06 +08:00
Simulator: fix keyboard ctrl messing with pytest (#30827)
fix old-commit-hash: a6b17fb1f6063835f6e0065d9bf670fbf069de48
This commit is contained in:
@@ -15,8 +15,6 @@ ISPEED = 4
|
||||
OSPEED = 5
|
||||
CC = 6
|
||||
|
||||
STDIN_FD = sys.stdin.fileno()
|
||||
|
||||
|
||||
KEYBOARD_HELP = """
|
||||
| key | functionality |
|
||||
@@ -32,6 +30,7 @@ KEYBOARD_HELP = """
|
||||
|
||||
|
||||
def getch() -> str:
|
||||
STDIN_FD = sys.stdin.fileno()
|
||||
old_settings = termios.tcgetattr(STDIN_FD)
|
||||
try:
|
||||
# set
|
||||
|
||||
Reference in New Issue
Block a user