[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: io.read() returns immediately under VxWorks
- From: rogerz <rogerz.zhang@...>
- Date: Fri, 27 Jun 2008 09:46:52 +0800
Hello, all:
I'm trying to use LUA as an interactive shell under VxWorks. The main loop is as following
repeat
show_menu(context)
local input=io.read()
do_it(context, input)
if context.mode=="quit" then break end
until false
It runs well under cygwin. But when I run the lua script under VxWorks by vxLuaGlue. System DOES NOT wait for my input ever. It just print menu repeatly. It seems io.read() always returns immediately. Can anyone give me some advice on it?
Thanks & Regards
--
rogerz zhang