Multi-line entry and history support in REPL