diff options
author | Yorhel <git@yorhel.nl> | 2022-06-15 06:17:35 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2022-06-15 06:17:38 +0200 |
commit | 058b26bf9a4d32c43b018897cfe8f70a3f2a90d2 (patch) | |
tree | fdcac8b918de78742ba48f6bb4c83a4d45769d8d | |
parent | e6806059e6574cac59bee7577b5c7cbfa85e59a0 (diff) |
Set default attributes to the whole window during curses init
Based on #204.
-rw-r--r-- | src/ui.zig | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; } |