From ee85ad384f17e7270f6bfe42ed146406938131a1 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 6 Nov 2021 12:44:47 -0700 Subject: simple interface for adding to app menu We're not going to enforce that the menu items actually do what they advertise. It's just a way to draw on the bottom line of screen, something apps aren't otherwise allowed to do. --- src/lua.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/lua.c') diff --git a/src/lua.c b/src/lua.c index 7142641..f2676c0 100644 --- a/src/lua.c +++ b/src/lua.c @@ -368,7 +368,7 @@ static int pmain (lua_State *L) { } -void draw_menu(void); +void draw_menu(lua_State *); char **Argv = NULL; @@ -382,7 +382,7 @@ int main (int argc, char **argv) { } initscr(); start_color(); - draw_menu(); + draw_menu(L); echo(); s.argc = argc; s.argv = argv; @@ -390,6 +390,7 @@ int main (int argc, char **argv) { status = lua_cpcall(L, &pmain, &s); report(L, status); lua_close(L); +//? getch(); /* uncomment this to see some common errors if teliva exits cryptically with a non-zero error code. */ endwin(); return (status || s.status) ? EXIT_FAILURE : EXIT_SUCCESS; } -- cgit 1.4.1-2-gfad0