repl: proper `setPrompt()` and `multiline` support

fix #8031