marcelmatula/colored-console ? reverse-engineered prompt

Reverse engineered prompt

Build me a small Kotlin library for colorful terminal output, something I can drop into a project as a single file and start using right away.

I want a simple DSL so I can write things like "Hello".cyan.bold, combine styles like bold, italic, underline, strike, faint, reverse, blink, and also use regular colors, bright colors, and background colors. It should work on any object, not just strings, and let me turn coloring on or off with a wrapper block when needed.

Please also support custom style combinations, conditional styling, nested styled text, and a way for my own classes to use the same coloring helpers without repeating boilerplate everywhere. Keep it focused on ANSI terminal output for Linux and Mac, and make sure the API feels really clean and easy to read. If you need to check current Kotlin syntax or terminal escape code details, look up the latest docs online first.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab