wait for prompt to show