For a more robust REPL, you can give REPLet a try: <https://github.com/demonnic/replet> - Mudlet