This commit is contained in:
Adam D. Ruppe 2023-03-02 09:12:19 -05:00
parent 39627cc5bd
commit 42a8876a04
1 changed files with 4 additions and 1 deletions

View File

@ -4881,7 +4881,10 @@ private uint /* TerminalCapabilities bitmask */ getTerminalCapabilities(int fdIn
auto got = buffer[0 .. len];
if(!hasAnswer(got)) {
goto try_again;
if(retries > 0)
goto try_again;
else
return TerminalCapabilities.minimal;
}
auto gots = cast(char[]) answer[3 .. $-1];