Re: readline vs. editline
Adrián Pérez de Castro <[email protected]> Sat, 29 May 2004 17:31:45 +0200
| Newsgroups | gmane.comp.lang.lua.luacheia |
|---|---|
| Message-ID | <[email protected]> |
--Apple-Mail-1-163323460
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
El 28/05/2004, a las 13:14, Asko Kauppi escribi=F3:
> So, what I'm trying to do is a simple two-function wrapper ('readline'=20=
> and 'add_history') that would use OS X native libedit instead. The=20
> code compiles, but does not work as it should. For example, history=20=
> lines are not available.
>
> What am I doing wrong, here??
>
> [...]
I currently have *no time* to check your libedit code, as I must=20
prepare for some exams I will have in the next three weeks. I promise=20
to take a look as soon as I have some spare time.
In the meanwhile, I have added an autoconf check: if the popen/pclose=20
(or _popen/_pclose) functions are available support for pipes is built=20=
in Lua's standard library (i.e: io.popen() is useable from scripts).
Just one more thought: I was wondering wether it would be valuable to=20
have a GTK module in LuaCheia would be valuable. I made a small=20
proof-of-concept module (i.e: just for fun) back in the days of GTK 1.2=20=
and I was able of creating windows and adding widgets (pushbuttons,=20
textlabels and checkboxes) to them, but nothing more. The issues are:
- Do you find it to be an interesting idea?
- The API of the module would be object-oriented or just a Lua-ized=20
"copy" of the C API?
- GTK is GPL'd, so we must dynamically link against it, and rely on=20
the user having GTK installed (i.e: the module would be only built if=20
GTK is present).
Be happy!
--
Adri=E1n P=E9rez de Castro
moebius _at_ eml.cc
--Apple-Mail-1-163323460
content-type: application/pgp-signature; x-mac-type=70674453;
name=PGP.sig
content-description: Mensaje firmado digitalmente
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
iEYEARECAAYFAkC4rOkACgkQghBwwjayrGRncwCfai+EfP3LgZJx6vaSILNufw69
LIAAnjGBOgvdtmy+N/YhJN1tZqrnbPjB
=ptZd
-----END PGP SIGNATURE-----
--Apple-Mail-1-163323460--
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click