From 058b26bf9a4d32c43b018897cfe8f70a3f2a90d2 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Wed, 15 Jun 2022 06:17:35 +0200 Subject: Set default attributes to the whole window during curses init Based on #204. --- src/ui.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ui.zig b/src/ui.zig index f07a7f7..67b8468 100644 --- a/src/ui.zig +++ b/src/ui.zig @@ -367,6 +367,7 @@ pub fn init() void { _ = c.start_color(); _ = c.use_default_colors(); for (styles) |s, i| _ = ncdu_init_pair(@intCast(i16, i+1), s.style().fg, s.style().bg); + _ = c.bkgd(@intCast(c.chtype, c.COLOR_PAIR(@enumToInt(Style.default)+1))); inited = true; } -- cgit v1.2.3