fixed bug that stdin did not be paused after .prompt()

This will cause a situation that the process don't exit after calling `.prompt()`.