14 lines
447 B
Diff
14 lines
447 B
Diff
diff --git a/test/lsp.py b/test/lsp.py
|
|
index 669951ca4..11007ae82 100755
|
|
--- a/test/lsp.py
|
|
+++ b/test/lsp.py
|
|
@@ -28,7 +28,8 @@ else:
|
|
import tty
|
|
# Turn off user input buffering so we get the input immediately,
|
|
# not only after a line break
|
|
- tty.setcbreak(sys.stdin.fileno())
|
|
+ if os.isatty(sys.stdin.fileno()):
|
|
+ tty.setcbreak(sys.stdin.fileno())
|
|
|
|
|
|
# Type for the pure test name without .sol suffix or sub directory
|