capture_io captures a prompt when capturing of stdio

discussing at #1145

If we need have the option, I'll implement it.