Goal
Add optional colorized output for listings and details (names, locations, population) using ANSI or Console colors.
Why
Color improves readability and makes the app feel lively.
Light implementation notes
- Add
ConsoleColorHelper that centralizes colorization and falls back to non-colored output when unsupported or --no-color flag is supplied.
- Use
Console.ForegroundColor/Console.BackgroundColor for cross-platform support and remember to restore colors after printing.
- Add CLI flag
--no-color (default: color enabled when Console.IsOutputRedirected == false).
- Update
Program.cs to use the helper for printing labels (Name -> Green, Location -> Cyan, Population -> Yellow).
- Add small test ensuring color helper doesn't throw and resets console colors.
Files to modify/create
- MyMonkeyApp/Helpers/ConsoleColorHelper.cs
- MyMonkeyApp/Program.cs
Labels:["enhancement","feature-request","good first issue","area-console"]
Goal
Add optional colorized output for listings and details (names, locations, population) using ANSI or Console colors.
Why
Color improves readability and makes the app feel lively.
Light implementation notes
ConsoleColorHelperthat centralizes colorization and falls back to non-colored output when unsupported or--no-colorflag is supplied.Console.ForegroundColor/Console.BackgroundColorfor cross-platform support and remember to restore colors after printing.--no-color(default: color enabled when Console.IsOutputRedirected == false).Program.csto use the helper for printing labels (Name -> Green, Location -> Cyan, Population -> Yellow).Files to modify/create
Labels:["enhancement","feature-request","good first issue","area-console"]