read prompts from stdin, send answers to a callback