Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upProvide curses ui components and support menu config #155
Comments
waruqi
added
the
new feature
label
Jan 26, 2018
waruqi
added this to the v2.1.9 milestone
Jan 26, 2018
waruqi
added
the
in progress
label
Jan 26, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
waruqi
Feb 2, 2018
Member
Add config options in menu (xmake.lua):
-- 'boolean' option
option("test1")
set_default(true)
set_showmenu(true)
set_category("root menu/test1")
-- 'choice' option with values: "a", "b", "c"
option("test2")
set_default("a")
set_values("a", "b", "c")
set_showmenu(true)
set_category("root menu/test2")
-- 'string' option
option("test3")
set_default("xx")
set_showmenu(true)
set_category("root menu/test3/test3")
-- 'number' option
option("test4")
set_default(6)
set_showmenu(true)
set_category("root menu/test4")configuration menu:
- root menu
- test1
- test2
- test3
- test3
- test4
|
Add config options in menu (xmake.lua): -- 'boolean' option
option("test1")
set_default(true)
set_showmenu(true)
set_category("root menu/test1")
-- 'choice' option with values: "a", "b", "c"
option("test2")
set_default("a")
set_values("a", "b", "c")
set_showmenu(true)
set_category("root menu/test2")
-- 'string' option
option("test3")
set_default("xx")
set_showmenu(true)
set_category("root menu/test3/test3")
-- 'number' option
option("test4")
set_default(6)
set_showmenu(true)
set_category("root menu/test4")configuration menu:
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
waruqi
removed
the
in progress
label
Feb 3, 2018
waruqi
closed this
Feb 26, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



waruqi commentedJan 26, 2018
•
edited
Edited 11 times
-
waruqi
edited Feb 3, 2018 (most recent)
-
waruqi
edited Feb 3, 2018
-
waruqi
edited Feb 3, 2018
-
waruqi
edited Feb 2, 2018
-
waruqi
edited Feb 1, 2018
-
waruqi
edited Jan 26, 2018
-
waruqi
edited Jan 26, 2018
-
waruqi
edited Jan 26, 2018
-
waruqi
edited Jan 26, 2018
-
waruqi
edited Jan 26, 2018
-
waruqi
edited Jan 26, 2018
I'm implementing menu config based on curses terminal. for example:
$ xmake [f|config] --menuIt automatically gets the options in the project to generate the menu configuration interface to implement the interactive configuration, like
make menuconfigbased KconfigSources:
Roadmap:
$xmake l ui.app.version)$xmake l ui.app.showfile /xxx/file)$xmake l tests/ui/destop.lua$xmake l tests/ui/window.lua$xmake l tests/ui/dialog.lua$xmake l tests/ui/mconfdialog.luaxmake f --menuset_category("root menu/sub menu")set_values()References: