diff options
| author | ruki <[email protected]> | 2018-01-26 00:27:24 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-01-25 20:44:24 +0800 |
| commit | d537a382ef3575f888c75cddc7930c911c67a600 (patch) | |
| tree | d7f454f4aed54c2249f3ae27a3718d3b74d6141b /xmake/core/ui/program.lua | |
| parent | a23ecbf53f72198bce71795839d80c10134781cd (diff) | |
add some ui apps
Diffstat (limited to 'xmake/core/ui/program.lua')
| -rw-r--r-- | xmake/core/ui/program.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/core/ui/program.lua b/xmake/core/ui/program.lua index 8407d3e6b..d1099fb32 100644 --- a/xmake/core/ui/program.lua +++ b/xmake/core/ui/program.lua @@ -39,7 +39,7 @@ local curses = require("ui/curses") local program = program or panel() -- init program -function program:init(name) +function program:init(name, argv) -- init main window local main_window = self:main_window() @@ -78,6 +78,9 @@ function program:init(name) -- get 8-bits character for getch() main_window:meta(true) + -- save the current arguments + self._ARGV = argv + -- init panel panel.init(self, name, rect {0, 0, curses.columns(), curses.lines()}) @@ -196,9 +199,6 @@ end -- run program loop function program:loop(argv) - -- save the current arguments - self._ARGV = argv - -- do message loop local e = nil local sleep = true |
