Re: readline from lua?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: readline from lua?
- From: Dirk Laurie <dpl@...>
- Date: 2011年2月15日 11:41:45 +0200
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