[syslinux:master] lua: explicitly put the console in standard mode

syslinux-bot for Ferenc Wágner wferi at niif.hu
Sun Mar 2 13:48:10 PST 2014


Commit-ID:  585dc11c333c87aefa2ed9a7eaa509cfe0ca6600
Gitweb:     http://www.syslinux.org/commit/585dc11c333c87aefa2ed9a7eaa509cfe0ca6600
Author:     Ferenc Wágner <wferi at niif.hu>
AuthorDate: Tue, 15 Oct 2013 15:18:39 +0200
Committer:  Ferenc Wágner <wferi at niif.hu>
CommitDate: Sat, 1 Mar 2014 17:40:34 +0100

lua: explicitly put the console in standard mode


---
 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 */


More information about the Syslinux-commits mailing list