Use -noshell instead of -noinput in the escript.
Add a simple REPL that doesn't really do much of anything yet (it can parse and lex things).