Wishlist interactive shell
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.
Best wishes
Norbert
-------------------------------------------------------------------------------
Dr. Norbert Preining
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 -----------------------------------------------------------------
On Fr, 18 Jan 2008, Hans Hagen wrote:
while true do io.write(">> ") local s= io.read() s = loadstring(s) if s then s() end end
Grin, that is a good thing ... thanks.
Best wishes
Norbert
-------------------------------------------------------------------------------
Dr. Norbert Preining
participants (3)
-
Arthur Reutenauer
-
Hans Hagen
-
Norbert Preining