mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 05:13:46 -07:00
refactoring
This commit is contained in:
parent
6fbd45aaed
commit
9bf961cb8a
2 changed files with 60 additions and 49 deletions
|
@ -1,12 +1,16 @@
|
|||
--[[
|
||||
A sampe script file on how to implement at cmd line inteface.
|
||||
--]]
|
||||
|
||||
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()
|
||||
answer = io.read()
|
||||
if answer ~= 'exit' then
|
||||
local func = assert(loadstring("return " .. answer))
|
||||
io.write("\n"..tostring(func() or "").."\n");
|
||||
end--]]
|
||||
until answer=="exit"
|
||||
until answer == "exit"
|
||||
print("Bye\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue