[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Maiybe a little feature request: readline support in debug.debug()
- From: Rena <hyperhacker@...>
- Date: Mon, 19 Oct 2015 14:08:09 -0400
On Sun, Oct 18, 2015 at 6:50 AM, Philipp Janda <siffiejoe@gmx.net> wrote:
> Am 18.10.2015 um 11:11 schröbte Marc Balmer:
>>
>> The Lua command line usually has readline support. Would it be possible
>> to use this in debug.debug(), too? Or would that bloat liblua?
>
>
> There are licensing issues: libreadline is GPL, and you probably don't want
> liblua and anything that links to it to be covered by GPL by default. Maybe
> an interface similar to `lua_setallocf()` would be possible. Then the host
> application (e.g. the Lua interpreter) can link to libreadline if desired
> and provide the necessary function pointers to have line editing in
> `debug.debug()`. Depending on how popular `debug.debug()` really is (I think
> I've never used it) this might be overkill though.
>
> Philipp
>
>
>
I want to say this is a good idea because it also allows for getting
the input from somewhere other than the console. But then, why not
just feed that input to dostring() instead?
--
Sent from my Game Boy.