diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-19 16:24:33 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-19 16:24:33 +0000 |
| commit | 1d58ee5b01e28f77f736c9f415e0cc869a244cc6 (patch) | |
| tree | 43181c1dafed01089112ec7980004b3b91f84034 /grasp-audit | |
| parent | 9372ad649b6c438b1e4645f1dbe95c0f648bb80d (diff) | |
fix(grasp-audit): improve color readability with bold bright colors
Changes RED from standard red (\x1b[31m) to bold bright red (\x1b[1;91m)
and GREEN from standard green (\x1b[32m) to bold bright green (\x1b[1;92m).
This follows ANSI/ISO standards (ECMA-48) and matches industry best
practices used by Rust/Cargo and other modern CLI tools. Bold bright
colors provide significantly better readability on dark terminal
backgrounds while maintaining maximum compatibility with all terminals.
Addresses user feedback that red color was too hard to read.
Diffstat (limited to 'grasp-audit')
| -rw-r--r-- | grasp-audit/src/result.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/grasp-audit/src/result.rs b/grasp-audit/src/result.rs index 4e0e1b1..ae3ef26 100644 --- a/grasp-audit/src/result.rs +++ b/grasp-audit/src/result.rs | |||
| @@ -5,8 +5,8 @@ use std::collections::BTreeMap; | |||
| 5 | use std::time::{Duration, Instant}; | 5 | use std::time::{Duration, Instant}; |
| 6 | 6 | ||
| 7 | // ANSI color codes | 7 | // ANSI color codes |
| 8 | const GREEN: &str = "\x1b[32m"; | 8 | const GREEN: &str = "\x1b[1;92m"; // Bold bright green - ANSI standard for high visibility |
| 9 | const RED: &str = "\x1b[31m"; | 9 | const RED: &str = "\x1b[1;91m"; // Bold bright red - ANSI standard for high visibility |
| 10 | const YELLOW: &str = "\x1b[33m"; | 10 | const YELLOW: &str = "\x1b[33m"; |
| 11 | const BLUE: &str = "\x1b[34m"; | 11 | const BLUE: &str = "\x1b[34m"; |
| 12 | const CYAN: &str = "\x1b[36m"; | 12 | const CYAN: &str = "\x1b[36m"; |