call the lua stuff.

This commit is contained in:
Howland Owl 2017-04-25 22:51:32 +03:00
parent ca58921e2e
commit f164ada948

3
st.c
View file

@ -587,7 +587,7 @@ int dothatLua(void) {
L = luaL_newstate(); /* Create Lua state variable */
luaL_openlibs(L); /* Load Lua libraries */
if (luaL_loadfile(L, "counter.lua")) /* Load but don't run the Lua script */
if (luaL_loadfile(L, "color.lua")) /* Load but don't run the Lua script */
bail(L, "luaL_loadfile() failed"); /* Error out if file can't be read */
printf("In C, calling Lua\n");
if (lua_pcall(L, 0, 0, 0)) /* Run the loaded Lua script */
@ -4528,6 +4528,7 @@ run:
if (!opt_title && !opt_line)
opt_title = basename(xstrdup(argv[0]));
}
dothatLua();
setlocale(LC_CTYPE, "");
XSetLocaleModifiers("");
tnew(MAX(cols, 1), MAX(rows, 1));