diff --git a/src/host/VtIo.cpp b/src/host/VtIo.cpp index f5214d3817..f03ef64e2b 100644 --- a/src/host/VtIo.cpp +++ b/src/host/VtIo.cpp @@ -206,11 +206,14 @@ bool VtIo::IsUsingVt() const writer.Submit(); } + // NOTE: The PTY host may not be a terminal and may never respond + // to our DA1 request. It's better to not wait for a response. + if (_lookingForCursorPosition) { // Allow the input thread to momentarily gain the console lock. auto& gci = ServiceLocator::LocateGlobals().getConsoleInformation(); const auto suspension = gci.SuspendLock(); - _deviceAttributes = _pVtInputThread->WaitUntilDA1(3000); + _deviceAttributes = _pVtInputThread->WaitUntilDA1(1000); } }