Commit 9af5ac7
committed
fix(installer): enable ANSI color support on Windows, disable if unsupported
Older Windows consoles (cmd.exe) don't process ANSI escape codes by
default, showing raw escape sequences like ←[36m instead of colors.
Try to enable virtual terminal processing on both stdout and stderr
via SetConsoleMode. If that fails (legacy console, redirected output),
disable owo_colors globally so output is plain text.1 parent d735b86 commit 9af5ac7
1 file changed
+44
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
41 | 84 | | |
42 | 85 | | |
| 86 | + | |
43 | 87 | | |
44 | 88 | | |
45 | 89 | | |
| |||
0 commit comments