diff options
author | Ferenc Wágner <wferi@niif.hu> | 2013-10-15 15:18:39 +0200 |
---|---|---|
committer | Ferenc Wágner <wferi@niif.hu> | 2014-03-01 17:40:34 +0100 |
commit | 585dc11c333c87aefa2ed9a7eaa509cfe0ca6600 (patch) | |
tree | e74a4aabd4b5026236f5f4b592047841886a8f05 | |
parent | b24197836513d67e2fdad2f1f8254ed01775b32e (diff) | |
download | syslinux-585dc11c333c87aefa2ed9a7eaa509cfe0ca6600.tar.gz syslinux-585dc11c333c87aefa2ed9a7eaa509cfe0ca6600.tar.xz syslinux-585dc11c333c87aefa2ed9a7eaa509cfe0ca6600.zip |
lua: explicitly put the console in standard mode
-rw-r--r-- | com32/lua/src/lua.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/com32/lua/src/lua.c b/com32/lua/src/lua.c index 40de6a99..98c74a45 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 */ |