7fbd9bc2ba251a8f8889ab7d652e17b74c976579
1 --[[ For now, this sample function will simply record all the commands executed ]]--
2 function command_executed(name
, args
)
3 os
.execute('mkdir -p /tmp/debug')
4 local f
= io
.open('/tmp/debug/ll', 'a')
5 f
:write("Command executed: " .. name
)
7 for i
, c
in pairs(args
) do
15 screen
.listen_to("cmdexecuted", "command_executed")