text-formatter: assume that IsTerminal doesn't change during execution

Fixes #57. Saves a bunch of syscalls.

r: @Sirupsen 
moved this to `text_formatter.go` since it's only ever used there