nojhan/liquidprompt — pull request #39 by dolmen (2012-08-14 17:08:27+00:00)
Title: Color definition optimized using a TermInfo DSL and its compiler

Refactor color definitions using a TermInfo DSL (domain specific language) and its compiler written in Perl 5.

Benefits:
- reduce calls to `tput` (and so `fork`+`exec`) by using a cache
- use feature detection of the terminal (based on `$TERM` and its terminfo definition) instead of relying on `$OS == FreeBSD`
- optimize escape sequences: `\033[1m\033[37m` is reduced to `\033[1;37m`