mirror of
https://github.com/Proxmark/proxmark3.git
synced 2024-11-14 12:45:26 +08:00
12 lines
344 B
Lua
12 lines
344 B
Lua
print("This is how a cmd-line interface could be implemented\nPrint 'exit' to exit.\n")
|
|
local answer
|
|
repeat
|
|
io.write("$>")
|
|
io.flush()
|
|
answer=io.read()
|
|
if answer ~= 'exit' then
|
|
local func = assert(loadstring("return " .. answer))
|
|
io.write("\n"..tostring(func() or "").."\n");
|
|
end--]]
|
|
until answer=="exit"
|
|
print("Bye\n");
|