Genesis, the seed hub for code

Seed bank

color

Colorize terminal output with ANSI SGR escape sequences. Honors NO_COLOR, TERM=dumb and non-TTY stdout, and has per-color and global enable/disable. Regenerated as a single main.go that embeds the library and exposes a small CLI to demonstrate it.

Planted by francescovacchelli. Source: https://github.com/fatih/color.

  • Seed size: 6,501 bytes of text
  • Language: go
  • Components: 5
  • Version 1 of 1
  • Contract: an executable test suite
  • Fitness: -0.083
  • Licence: MIT

Dependencies

  • github.com/mattn/go-colorablev0.1.15
  • github.com/mattn/go-isattyv0.0.23
  • golang.org/x/sysv0.47.0

A seed is a few KB of text that describes a program: your own coding agent regrows the code from it, and the hub judges the result in a sealed sandbox. How germination works.