config: add progress-style option

Add option to disable OSC 9;4 ConEmu progress bars via config.

Fixes #11241
This commit is contained in:
Michal Olechowski
2026-03-06 21:09:04 +01:00
committed by admin
parent 055ed28580
commit 84d48d1c6a
4 changed files with 30 additions and 0 deletions

View File

@@ -1012,6 +1012,14 @@ pub const Surface = extern struct {
priv.progress_bar_timer = null;
}
if (priv.config) |config| {
if (!config.get().@"progress-style") {
log.debug("progress_report action blocked by config", .{});
priv.progress_bar_overlay.as(gtk.Widget).setVisible(@intFromBool(false));
return;
}
}
const progress_bar = priv.progress_bar_overlay;
switch (value.state) {
// Remove the progress bar

View File

@@ -3636,6 +3636,11 @@ else
/// notifications using certain escape sequences such as OSC 9 or OSC 777.
@"desktop-notifications": bool = true,
/// If `true` (default), applications running in the terminal can show
/// graphical progress bars using the ConEmu OSC 9;4 escape sequence.
/// If `false`, progress bar sequences are silently ignored.
@"progress-style": bool = true,
/// Modifies the color used for bold text in the terminal.
///
/// This can be set to a specific color, using the same format as