You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+13-4
Original file line number
Diff line number
Diff line change
@@ -43,12 +43,21 @@ The UI consist of the following:
43
43
* 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.
44
44
* a status/output window, that shows the output of 'print' function, and is scrollable should there be many lines of output
45
45
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:
47
47
48
48
$SDK/platform-tools/adb forward tcp:3333 tcp:3333
49
49
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`.
51
51
52
-
cat test/sieve.lua | nc localhost 3333
52
+
For example:
53
53
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.
0 commit comments