# std.Progress: better Windows support · gitcafe/zig

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

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

Visibility: public

Requested revision: 3a3d2187f986066859cfb793fb7ee1cae4dfea08

Requested commit: 3a3d2187f986066859cfb793fb7ee1cae4dfea08

Commit: 3a3d2187f986066859cfb793fb7ee1cae4dfea08

Tree: 950c39722d71cdd6f2af75c255ee92a318cda516

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.Progress: better Windows support

* Merge a bunch of related state together into TerminalMode. Windows
  sometimes follows the same path as posix via ansi_escape_codes,
  sometimes not.
* Use a different thread entry point for Windows API but share the same
  entry point on Windows when the terminal is in ansi_escape_codes mode.
* Only clear the terminal when the stderr lock is held.
* Don't try to clear the terminal when nothing has been written yet.
* Don't try to clear the terminal in IPC mode.
* Fix size detection logic bug under error conditions.

```

## Parents

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

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