Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37550264
en ru br
ALT Linux repos
S:3.2.2-alt2.1
5.0: 0.8.3-alt2
4.1: 0.7-alt1
4.0: 0.7-alt1
3.0: 0.5.2-alt1

Group :: Monitoring
RPM: htop

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: htop-3.0.5-alt-colorscheme.patch
Download


diff --git a/Settings.c b/Settings.c
index ef607f0..ff0848c 100644
--- a/Settings.c
+++ b/Settings.c
@@ -205,7 +205,7 @@ static bool Settings_read(Settings* this, const char* fileName, int initialCpuCo
       } else if (String_eq(option[0], "color_scheme")) {
          this->colorScheme = atoi(option[1]);
          if (this->colorScheme < 0 || this->colorScheme >= LAST_COLORSCHEME) {
-            this->colorScheme = 0;
+            this->colorScheme = COLORSCHEME_BROKENGRAY;
          }
       } else if (String_eq(option[0], "enable_mouse")) {
          this->enableMouse = atoi(option[1]);
@@ -404,7 +404,7 @@ Settings* Settings_new(int initialCpuCount) {
       }
       CRT_restorePrivileges();
    }
-   this->colorScheme = 0;
+   this->colorScheme = COLORSCHEME_BROKENGRAY;
    this->enableMouse = true;
    this->changed = false;
    this->delay = DEFAULT_DELAY;
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin