Would be useful to have a default value for prompt.
ugly workaround, but:
var foo = (yield prompt('foo:')) || 'bar';
+1, this is what i did. also, if you don't need to support windows you might want to look at this.
this