[Dev-luatex] Wishlist interactive shell
Hans Hagen
pragma at wxs.nl
Fri Jan 18 13:52:03 CET 2008
Norbert Preining wrote:
> Hi Taco,
>
> is it complicated to add an interactive shell to texlua? I mean I don't
> need readline support or all the stuff, but playing around on a console
> would be fun.
>
> If this is too much bloat I am fine without it.
=== norbert.lua ====
while true do
io.write(">> ")
local s= io.read()
s = loadstring(s)
if s then s() end
end
texlua norbert.lua
(i'll make a nicer version but this is a start)
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
More information about the dev-luatex
mailing list