Commit 966025d
committed
Suppress OSC taskbar reset on plain/piped stdout
The shutdown hook that emits ESC]9;4;0 BEL to clear iTerm/ConEmu/
Ghostty/Kitty taskbar progress was registered whenever the host
terminal was detected via env vars, ignoring the active console mode
and whether stdout was actually a terminal. That leaked the trailing
control sequence into piped output and into --console=plain runs.
Gate the hook on the configuration that actually renders progress:
skip it for ConsoleOutput.Plain, and for ConsoleOutput.Auto when
stdout is not a TTY. Rich, Verbose, Colored, and Auto-with-TTY are
unchanged, preserving the previous behavior.1 parent e745573 commit 966025d
2 files changed
Lines changed: 46 additions & 1 deletion
File tree
- platforms/core-runtime/logging/src
- integTest/groovy/org/gradle/internal/logging/console
- main/java/org/gradle/internal/logging/sink
Lines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
101 | 137 | | |
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
63 | 72 | | |
64 | 73 | | |
65 | 74 | | |
| |||
0 commit comments