From f164ada948594ff8aca3dc24d3fad2295f9cc1b1 Mon Sep 17 00:00:00 2001 From: Howland Owl Date: Tue, 25 Apr 2017 22:51:32 +0300 Subject: [PATCH] call the lua stuff. --- st.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/st.c b/st.c index 81c22f3..63ba573 100644 --- a/st.c +++ b/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 */ @@ -3985,21 +3985,21 @@ xdrawcursor(void) case 8: utf8decode("䷀", &g.u, UTF_SIZ); case 9: - utf8decode("䷬", &g.u, UTF_SIZ); + utf8decode("䷬", &g.u, UTF_SIZ); case 10: utf8decode("䷑", &g.u, UTF_SIZ); case 11: - utf8decode("䷼", &g.u, UTF_SIZ); + utf8decode("䷼", &g.u, UTF_SIZ); case 12: utf8decode("░", &g.u, UTF_SIZ); case 13: - utf8decode("▒", &g.u, UTF_SIZ); + utf8decode("▒", &g.u, UTF_SIZ); case 14: utf8decode("▓", &g.u, UTF_SIZ); case 15: - utf8decode("▣", &g.u, UTF_SIZ); */ + utf8decode("▣", &g.u, UTF_SIZ); */ case 7: /* st extension: snowman */ - utf8decode("▒", &g.u, UTF_SIZ); + utf8decode("▒", &g.u, UTF_SIZ); // utf8decode("☃", &g.u, UTF_SIZ); case 0: /* Blinking Block */ case 1: /* Blinking Block (Default) */ @@ -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));