Der ANSI Hansi
I was displeased with any of the (yet so many) libraries for generating colored console output, so I wrote my own: hansi.
Features:
- 8 color, 16 color, 88 color, 256 color and 24 bit (True Color) mode
- converts colors between modes
- proper color nesting (this is broken in highline, which is what I'm using in most of my projects right now)
- automatically detect proper mode for current terminal
- does not come with a Ruby DSL
- supports string templates (optional)
- supports themes (optional)
- zero dependencies
- full test coverage
- no monkey patches
Post a comment