diff --git a/aider/run_cmd.py b/aider/run_cmd.py index 910b67005..a879e3cad 100644 --- a/aider/run_cmd.py +++ b/aider/run_cmd.py @@ -1,4 +1,5 @@ import os +import platform import subprocess import sys from io import BytesIO @@ -9,7 +10,7 @@ import pexpect def run_cmd(command): import sys - if sys.stdin.isatty() and hasattr(pexpect, "spawn"): + if sys.stdin.isatty() and hasattr(pexpect, "spawn") and platform.system() != "Windows": return run_cmd_pexpect(command) return run_cmd_subprocess(command)