Send cursor commands only if isatty (close #184)