Skip to content

Commit 8ae3651

Browse files
committed
updated readme
1 parent 22c0cef commit 8ae3651

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

README.md

+13-4
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,21 @@ The UI consist of the following:
4343
* a text editor, where you can write Lua code, conveniently preloaded with the classic "Hello World!" example. A long click on the whole editor will clear it.
4444
* a status/output window, that shows the output of 'print' function, and is scrollable should there be many lines of output
4545

46-
You can also write code by connecting to the TCP port 3333 of the device. You can do that either directly by using WiFi, or through the USB cable. For that you need to run the following:
46+
You can also work interactively by connecting to the TCP port 3333 of the device. You can do that either directly by using WiFi, or through the USB cable. For that you need to run the following:
4747

4848
$SDK/platform-tools/adb forward tcp:3333 tcp:3333
4949

50-
and then connect to localhost:3333. For example:
50+
In this version, there is a simple client `interp.lua` that uses LuaSocket. By default it will initially read stuff from `init.lua`.
5151

52-
cat test/sieve.lua | nc localhost 3333
52+
For example:
5353

54-
The text sent through TCP will be appended to the text in the edit box. Then you only need to press "Execute" to run the code and enjoy the output.
54+
$ lua interp.lua
55+
loading init.lua
56+
57+
> = activity
58+
sk.kottman.androlua.Main@405166c0
59+
> for i = 1,4 do print(i) end
60+
1
61+
2
62+
3
63+
4

0 commit comments

Comments
 (0)