Added cursor movement to the REPL buffer.