mirror of
https://github.com/git/git.git
synced 2026-02-04 23:16:38 +00:00
Merge pull request #275 from cs96and/cygwin_fixes
winansi.c: Fix colourization on Cygwin pseudo terminals.
This commit is contained in:
@@ -551,8 +551,10 @@ static void detect_msys_tty(int fd)
|
||||
name = nameinfo->Name.Buffer;
|
||||
name[nameinfo->Name.Length] = 0;
|
||||
|
||||
/* check if this could be a msys pty pipe ('msys-XXXX-ptyN-XX') */
|
||||
if (!wcsstr(name, L"msys-") || !wcsstr(name, L"-pty"))
|
||||
/* check if this could be a msys pty pipe ('msys-XXXX-ptyN-XX')
|
||||
or a cygwin pty pipe ('cygwin-XXXX-ptyN-XX') */
|
||||
if ((!wcsstr(name, L"msys-") && !wcsstr(name, L"cygwin-")) ||
|
||||
!wcsstr(name, L"-pty"))
|
||||
return;
|
||||
|
||||
/* init ioinfo size if we haven't done so */
|
||||
|
||||
Reference in New Issue
Block a user