Sisyphus repository
Last update: 7 december 2022 | SRPMs: 17972 | Visits: 25528220
en ru br
ALT Linux repos
S:3.2.1-alt1
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