Problem: The console module supports only 16 colors via ANSI codes
Why it matters: Modern CLIs and tools benefit from richer palettes and branding via 256-color or RGB escape sequences.
Proposed solution: Extend AnsiFore and AnsiBack in ansi.py to generate 38;5;n (256) and 38;2;r;g;b (RGB) codes, with helper methods like console.rgb(255,0,0)() or console.color256(124)().
Notes: Keep backward compatibility; existing 16-color methods remain unchanged. Document terminal support and provide fallback to 16-color where unsupported.
Problem: The console module supports only 16 colors via ANSI codes
Why it matters: Modern CLIs and tools benefit from richer palettes and branding via 256-color or RGB escape sequences.
Proposed solution: Extend AnsiFore and AnsiBack in ansi.py to generate 38;5;n (256) and 38;2;r;g;b (RGB) codes, with helper methods like console.rgb(255,0,0)() or console.color256(124)().
Notes: Keep backward compatibility; existing 16-color methods remain unchanged. Document terminal support and provide fallback to 16-color where unsupported.