From 7fe0e135aca6b0a1693b618b9489876eb033862c Mon Sep 17 00:00:00 2001 From: Takanori Suzuki Date: Mon, 23 Jan 2017 12:21:22 +0900 Subject: [PATCH] Clear window for removing remaining color When we switch disk, some parts of status are changed. With the status change, color are also changed but sometime remaining old color. For fixing it, this commit is adding wclear() for each window. --- main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.cpp b/main.cpp index 6c05b7e..bf5e3c6 100644 --- a/main.cpp +++ b/main.cpp @@ -448,8 +448,11 @@ int main() update = [&]() { getmaxyx(stdscr, height, width); + wclear(windowVersion); drawVersion(windowVersion); + wclear(windowDeviceBar); drawDeviceBar(windowDeviceBar, smartList, select); + wclear(windowDeviceStatus); drawStatus(windowDeviceStatus, smartList[select]); doupdate(); };