mikshaw
Group: Members
Posts: 4856
Joined: July 2004 |
|
Posted: Aug. 16 2006,15:27 |
|
Just messing around, seeing how small I can make some useable tools.
This is a simple "run" dialog, 155 bytes (opposed to grun's 30k). Since lua-fltk calls "sh -c" for its execute command, it should support any bash syntax (keyword "should"...i've tested only environment variables).
Code Sample | #!/bin/flua w=Window{200,24} i=Input{0,0,200,24;when=When.enter_key} function i.callback() c=i.value if c>"" then execute(c.." &") exit() end end w:show() |
-------------- http://www.tldp.org/LDP/intro-linux/html/index.html
|