1 --[[ For now, this sample function will simply record all the commands executed ]]--
2 screen
.hook("cmdexecuted", function(name
, args
)
3 os
.execute('mkdir -p /tmp/debug')
4 local f
= io
.open('/tmp/debug/22', 'a')
5 f
:write("Command executed: " .. name
)
7 for i
, c
in pairs(args
) do
16 function cmd(name
, args
)
17 os
.execute('mkdir -p /tmp/debug')
18 local f
= io
.open('/tmp/debug/11', 'a')
19 f
:write("Command executed: " .. name
)
21 for i
, c
in pairs(args
) do
30 screen
.hook("cmdexecuted", "cmd")