Could someone tell me a good canonical way to detect when a script is writing to a pipeline vs the terminal, so I can turn off colors? -- Todd