# Fix \`TTY.detectConfig\` regression on windows · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/689f3163af48fd6e0c08bb76fadfb711db30c97c)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 689f3163af48fd6e0c08bb76fadfb711db30c97c

Requested commit: 689f3163af48fd6e0c08bb76fadfb711db30c97c

Commit: 689f3163af48fd6e0c08bb76fadfb711db30c97c

Tree: dd3048141b062c1fd38df60020116e5fa7a0a053

Author: Ryan Liptak

Committer: Andrew Kelley

## Message

```
Fix `TTY.detectConfig` regression on windows

e05412669c8dde1230612de5af64fbc3fb0bc17e inadvertently changed the logic on Windows and made it so that supportsAnsiEscapeCodes was never checked. This fixes that regression while keeping the logic intact for other platforms.

```

## Parents

- [9e0ac4449a18677ba695f7a75342cbdb049aad52](https://git.cafe/gitcafe/zig/commit/9e0ac4449a18677ba695f7a75342cbdb049aad52?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/689f3163af48fd6e0c08bb76fadfb711db30c97c?format=markdown)
