Skip to content

Feature: Colorized console output for monkey details #3

Description

@wiertmir

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"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions