# Remove unnecessary isatty call from supportsAnsiEscapeCodes · gitcafe/zig

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

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

Visibility: public

Requested revision: 5439f36c976ac31f7faa27cc1536a0ecd3c4469f

Requested commit: 5439f36c976ac31f7faa27cc1536a0ecd3c4469f

Commit: 5439f36c976ac31f7faa27cc1536a0ecd3c4469f

Tree: b6d41d84df66bcb5fc7fcae5e8e8e604157c5bc5

Author: Ryan Liptak

Committer: Ryan Liptak

## Message

```
Remove unnecessary isatty call from supportsAnsiEscapeCodes

isatty on Windows is implemented as a isCygwinPty call and a GetConsoleMode call, so calling isatty just duplicates the function calls we already need to do in supportsAnsiEscapeCodes.

```

## Parents

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

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