If there is no TTY, i.e. `!process.stdout.isTTY`, this hangs. It might be wise to do nothing if there is no TTY.