Menu

Lua

Mike Jones

Lua

The lua package is based on lua 5.2.3 and is integrated with telnet. Just add the lua package and then in the telnetd configuration enable it. Then you can telnet into your system and run lua on the telnet command line.

See the lua.ecm file for an example configuration.

Testing

To test lua, use tftp to put the eightqueen.lua file found in the file area onto the filesystem. Then execute the file by typing:

lua eightqueen.lua

The eight queens example came from the book Programming in Lua by Roberto Ierusalimschy

Limitations

Lua depends on other supporting changes. There are new posix calls for making tmp files, etc. There is a change to fclose(…) so that streams can wrapper a socket in telnet.


Related

Wiki: Language Extensions

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.