workaround for tty on osx