capture_io captures a prompt when capturing of stdio
Merge pull request #1167 from mururu/prompt

capture_io captures a prompt when capturing of stdio