# fix debug info code not being freestanding compatible · gitcafe/zig

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

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

Visibility: public

Requested revision: 3839ea89785856bbed0624a6a18eb6e5acfb46c3

Requested commit: 3839ea89785856bbed0624a6a18eb6e5acfb46c3

Commit: 3839ea89785856bbed0624a6a18eb6e5acfb46c3

Tree: 5aadd86ef359eb847bf842f9594690737f0e67c4

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
fix debug info code not being freestanding compatible

in stack tracing code, the idea was to detect the tty settings at the
top of the stack and pass the information down. somewhere along the way
this got changed so that setTtyColor was assuming the global stderr_file
was related to the output stream the stack trace was being printed to.

now, tty_color is changed to tty_config, and it is an enum rather than a
bool, telling how tty colors are expected to be handled. windows is
still incorrectly looking at stderr_file.

```

## Parents

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

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