Utils: Add QTC_USE_WINPTY environment variable

Change-Id: I769bfe8bd92529f672694da38d04914e0a51ed1b
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Marcus Tillmanns
2023-03-02 08:11:30 +01:00
parent 87ede95b5c
commit 3287e14dd1

View File

@@ -34,7 +34,7 @@ IPtyProcess *PtyQt::createPtyProcess(IPtyProcess::PtyType ptyType)
} }
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
if (ConPtyProcess().isAvailable()) if (ConPtyProcess().isAvailable() && qgetenv("QTC_USE_WINPTY").isEmpty())
return new ConPtyProcess(); return new ConPtyProcess();
else else
return new WinPtyProcess(); return new WinPtyProcess();