[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: srlua: print statements not working
- From: Milind Gupta <milind.gupta@...>
- Date: Tue, 31 Jan 2017 10:18:01 -0800
I compiled srlua on a windows system. I used glue.exe to append a test lua file containing just 2 print statements:
But when I run the output executable is displayed on the command line. Also io.read does not work to get input from the user.
Other than input/output the lua script is being executed fine.For example in the following code:
f = io.open("testfile.txt","w+")
f:write("Test done"..(nil or "hello")..tostring(53*24))
The file is created fine but there is nothing displayed on the command line. What am I doing wrong here to redirect the input/output appropriately?