Skip to content

Add 256-color and truecolor (RGB) support #134

@hbisneto

Description

@hbisneto

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Console ModuleRelated to the "Console" module inside FileSystemPro

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions