╭ changed ───╮ │src/main.zig│ ╰────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────────────────────────────────────────────────╮ │15 // the user's global git config, used for the commit identity in local mode.│ │16 // null by default so tests and the server paths never read it. │ │17 global_config_path: ?[]const u8 = null, │ │18 + // false when NO_COLOR is set, so the TUI draws without colors │ │19 + color: bool = true, │ │20 }; │ │21 │ │22 pub fn main(init: std.process.Init) !u8 { │ ╰────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────╮ │50 .out = &stdout_writer.interface, │ │51 .err = &stderr_writer.interface, │ │52 .global_config_path = global_config_path, │ │53 + .color = std.mem.eql(u8, environ_map.get("NO_COLOR") orelse "", ""),│ │54 }; │ │55 │ │56 const cwd_path = try std.process.currentPathAlloc(io, allocator); │ ╰────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────╮ │132 .io = io, │ │133 .local = local, │ │134 .is_terminal = true, │ │135 + .color = run_opts.color, │ │136 .data = .{ │ │137 // the files root; local routes carry no identity │ │138 .current_page = .{ .repo_files = .{ .name = .{} } },│ ╰─────────────────────────────────────────────────────────────────────────────╯