call the lua stuff.
This commit is contained in:
parent
ca58921e2e
commit
f164ada948
1 changed files with 7 additions and 6 deletions
3
st.c
3
st.c
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue