summaryrefslogtreecommitdiff
path: root/xmake/core/ui/program.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-12-14 00:46:35 +0800
committerruki <[email protected]>2017-12-13 22:39:31 +0800
commit42cc615918ee1e4cc3ce435172e9f91dc1df1086 (patch)
tree323c0dbb450f137d1b15eb31a0f279dcd2675309 /xmake/core/ui/program.lua
parent2694f86469cdd776ba2caba9bcd7ec261457aa2c (diff)
fix log and application bug
Diffstat (limited to 'xmake/core/ui/program.lua')
-rw-r--r--xmake/core/ui/program.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/core/ui/program.lua b/xmake/core/ui/program.lua
index da4edabc7..75c08fc79 100644
--- a/xmake/core/ui/program.lua
+++ b/xmake/core/ui/program.lua
@@ -36,7 +36,7 @@ local curses = require("ui/curses")
local program = program or group()
-- init program
-function program:init()
+function program:init(name)
-- init main window
local main_window = self:main_window()
@@ -76,7 +76,7 @@ function program:init()
main_window:meta(true)
-- init group
- group.init(self, rect {0, 0, curses.columns(), curses.lines()})
+ group.init(self, name, rect {0, 0, curses.columns(), curses.lines()})
end
-- exit program
@@ -118,8 +118,8 @@ function program:argv()
return self._ARGV
end
--- run program
-function program:run(argv)
+-- run program loop
+function program:loop(argv)
-- save the current arguments
self._ARGV = argv