With the upcoming fix to place the tty in external-proc mode, add a sleep which resolves a race between emitting a newline and restoring it to shell mode.