summaryrefslogtreecommitdiffstats
path: root/src/constants.rs
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2020-11-18 20:00:31 -0500
committerGitHub <noreply@github.com>2020-11-18 20:00:31 -0500
commitc0a8c347e12ae7924ed78ee9c35f2acd7152193e (patch)
tree9831f0e7c892f7ac8c11e2af8baa6e7c2e943565 /src/constants.rs
parent669b245367d194b7f4f7a12fe29573fcd9ca4e4e (diff)
bug: remove buggy auto-generated CPU colour implementation (#308)
Removes the random automatically generated colours for the CPU metrics. This was not supported in all terminal emulators, and would cause some of them to break (namely macOS Terminal). Instead we'll default to colours we can be more certain will work and loop through them as required. Users can still override these colours with their own.
Diffstat (limited to 'src/constants.rs')
-rw-r--r--src/constants.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/constants.rs b/src/constants.rs
index 0bccec77..1f0c9544 100644
--- a/src/constants.rs
+++ b/src/constants.rs
@@ -18,8 +18,6 @@ pub const TICK_RATE_IN_MILLISECONDS: u64 = 200;
// How fast the screen refreshes
pub const DEFAULT_REFRESH_RATE_IN_MILLISECONDS: u64 = 1000;
pub const MAX_KEY_TIMEOUT_IN_MILLISECONDS: u64 = 1000;
-// Number of colours to generate for the CPU chart/table
-pub const NUM_COLOURS: usize = 256;
// Limits for when we should stop showing table gaps/labels (anything less means not shown)
pub const TABLE_GAP_HEIGHT_LIMIT: u16 = 7;