The console should have readline support, but it has never worked as far as I can remember. There is a LUA_USE_READLINE define in the code, but nothing seems to set it. I believe some CMake magic may be required.