lua-users home
lua-l archive

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


On Tue, Feb 15, 2011 at 10:38:13AM +0200, steve donovan wrote:
> 
> http://lua-users.org/wiki/CompleteWithReadline
> 

Almost does what I want.  Exception: editable priming.  The best I can do:

> require "readline"
> readline.add_history("prime")
> l=readline.readline()
prime

To get that 'prime', the user needs to type two up-arrows: the first to
get past 'l=readline.readline()'.  If these lines appear in a .lua
file, only one up-arrow is needed.  In both cases I would prefer not
having to type any up-arrows.

Dirk