]> git.zerfleddert.de Git - proxmark3-svn/blame_incremental - client/scripts/cmdline.lua
Merge remote-tracking branch 'origin/DESFireAuth'
[proxmark3-svn] / client / scripts / cmdline.lua
... / ...
CommitLineData
1print("This is how a cmd-line interface could be implemented\nPrint 'exit' to exit.\n")
2local answer
3repeat
4 io.write("$>")
5 io.flush()
6 answer=io.read()
7 if answer ~= 'exit' then
8 local func = assert(loadstring("return " .. answer))
9 io.write("\n"..tostring(func() or "").."\n");
10 end--]]
11until answer=="exit"
12print("Bye\n");
Impressum, Datenschutz