Wait for prompt.