summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2022-06-15 06:17:35 +0200
committerYorhel <git@yorhel.nl>2022-06-15 06:17:38 +0200
commit058b26bf9a4d32c43b018897cfe8f70a3f2a90d2 (patch)
treefdcac8b918de78742ba48f6bb4c83a4d45769d8d
parente6806059e6574cac59bee7577b5c7cbfa85e59a0 (diff)
Set default attributes to the whole window during curses initHEADzig
Based on #204.
-rw-r--r--src/ui.zig1
1 files changed, 1 insertions, 0 deletions
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;
}