[syslinux] [PATCH 05/21] lua: explicitly put the console in standard mode
Ferenc Wágner
wferi at niif.hu
Tue Oct 15 11:03:33 PDT 2013
---
com32/lua/src/lua.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/com32/lua/src/lua.c b/com32/lua/src/lua.c
index 40de6a9..98c74a4 100644
--- a/com32/lua/src/lua.c
+++ b/com32/lua/src/lua.c
@@ -6,6 +6,7 @@
#ifdef SYSLINUX
+#include <console.h>
#define signal(x,y)
#else
#include <signal.h>
@@ -490,6 +491,9 @@ int main (int argc, char **argv) {
l_message(argv[0], "cannot create state: not enough memory");
return EXIT_FAILURE;
}
+#ifdef SYSLINUX
+ openconsole(&dev_stdcon_r, &dev_stdcon_w);
+#endif
/* call 'pmain' in protected mode */
lua_pushcfunction(L, &pmain);
lua_pushinteger(L, argc); /* 1st argument */
--
1.7.10.4
More information about the Syslinux
mailing list