output color only when stdout is TTY

- moved statuses to adapter.js