lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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