lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Thu, Mar 25, 2010 at 8:57 PM, Nikolai Kondrashov <spbnick@gmail.com> wrote:
> The problem is it doesn't support anything except ASCII.
> But maybe it is possible to use it as a substitute - it would be better than
> nothing.

I like the last line of the readline man page:

BUGS It's too big and too slow

But, it is pretty much universal, at least on Unix-like systems. (On
Windows the console does much of the same functionality out of the
box).

Mike Pall has pointed out that readline is something you want to keep
out of your standalone Lua executable, because it significantly slows
down non-interactive calls.   It's better then to have a special
interactive Lua, maybe even completely in Lua as David Manura has
suggested[1].   And you can do clever, useful stuff with readline [2].
 (BTW, I packaged the last patch as a loadable extension if anyone is
interested.)

steve d.


[1] http://lua-users.org/wiki/LuaInterpreterInLua
[2] http://lua-users.org/wiki/CompleteWithReadline