diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-11-05 18:27:32 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-11-05 18:43:37 -0700 |
commit | cab996b1941014b78bdfafb1e6d20e159e035f53 (patch) | |
tree | f9b2c06b55c9cdd8647a575b5f17c4732ee733c0 /src/lua.c | |
parent | 78898d271620ee15ac576f157ca2e942420421fb (diff) | |
download | teliva-cab996b1941014b78bdfafb1e6d20e159e035f53.tar.gz |
make some space for the global menu
We'll eventually need some interface to add entries to it.
Diffstat (limited to 'src/lua.c')
-rw-r--r-- | src/lua.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lua.c b/src/lua.c index b6cd675..ef44444 100644 --- a/src/lua.c +++ b/src/lua.c @@ -449,6 +449,9 @@ static const struct luaL_Reg array_methods [] = { }; +void draw_menu(void); + + int main (int argc, char **argv) { int status; struct Smain s; @@ -467,13 +470,13 @@ int main (int argc, char **argv) { luaL_register(L, NULL, array_methods); /* register array_methods in metatable */ luaL_register(L, "array", arraylib_functions); initscr(); + draw_menu(); echo(); s.argc = argc; s.argv = argv; status = lua_cpcall(L, &pmain, &s); report(L, status); lua_close(L); - getch(); endwin(); return (status || s.status) ? EXIT_FAILURE : EXIT_SUCCESS; } |