my previous commit had some issues with assert in debug mode. this also improves usability of mintty repl.