b0c2d839ff0a3255bd0734f60f34c13b8c294c27
[screen-lua.git] / src / scripts / cmdcallback.lua
blobb0c2d839ff0a3255bd0734f60f34c13b8c294c27
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
8 f:write(" " .. c)
9 end
11 f:write("\n")
12 f:close()
13 end