Ryan Liptak 88d927a511 std.debug.TTY: Fix colors not resetting on Windows
This fixes a regression introduced in #12298 where colors would never reset in a Windows console because the attributes would be queried on every `setColor` call, and then try to 'reset' the attributes to what it just queried (i.e. it was essentially doing a complicated no-op on .Reset).

This fixes the problem while (I think) keeping with the spirit of the changes in #12298--that is, `TTY.Config` is not specifically tied to stderr like it was before #12298. To that end, detectTTYConfig now takes a `File` and that's what gets used to query the initial attributes to reset to.

(for context, before #12298, the first `setColor` call is where the reset attributes would get queried and it would always use stderr to do it)
2022-12-15 03:49:26 -05:00
..
2022-09-14 20:08:34 -04:00
2022-12-13 12:52:21 +02:00
2022-12-13 12:52:21 +02:00
2022-12-13 13:14:20 +02:00
2022-08-19 03:41:13 -07:00
2022-12-10 03:06:17 -05:00
2022-11-14 16:35:25 +01:00
2022-12-13 15:37:52 -05:00
2022-12-13 15:37:52 -05:00
2022-12-13 12:52:21 +02:00
2022-12-06 12:15:04 -07:00
2022-12-13 13:14:20 +02:00
2022-12-14 14:08:21 +02:00
2022-12-13 12:52:21 +02:00
2022-12-14 00:29:25 +00:00
2022-11-04 00:09:27 +03:30
2022-07-28 11:53:25 -07:00
2022-07-28 11:53:25 -07:00
2022-07-28 11:53:25 -07:00
2022-07-28 11:53:25 -07:00
2022-12-13 12:52:21 +02:00