What are the exact functions of terminfo and termcap? Is there a prevailing reason to use one or the other? Do either support color? I'm asking because of the discussion on port-i386 about color ls and how it sends color codes by default (ick!). Isn't there a Right way to do that?