8 color terminals: switch to conditional usage based on terminal type

Apple's Terminal.app sets a TERM_PROGRAM environment variable to "Apple_Terminal". This gives us a good way to detect at runtime whether or not the terminal supports more than 8 colors.

The main reason for checking at runtime is that Mac users are able to run other terminal apps (xterm, rxvt, etc), and should expect to see more than 8 colors in terminals that support it.

Signed-off-by: Steven Noonan <steven@uplinklabs.net>

Created by  Steven Noonan  on October 12, 2009
TZVEM65VHVUXW3XWCXYGLL6VJJYUW4YXHRRTJHQYCJKD2QPVWWRAC
Change contents