Libraryless. Click here for Pure Java version (141L/2K/5K).
1 | !747 |
2 | |
3 | m { |
4 | static S ip = "second.tinybrain.de"; |
5 | static int port = 5000; |
6 | |
7 | p { |
8 | if (args.length > 0) ip = args[0]; |
9 | if (args.length > 1) port = parseInt(args[1]); |
10 | |
11 | final DialogIO io = talkTo(ip, port); |
12 | |
13 | // output |
14 | thread { |
15 | S line; |
16 | while ((line = readLine()) != null) |
17 | io.sendLine(line); |
18 | } |
19 | |
20 | // input |
21 | while (io.isStillConnected()) { |
22 | if (io.waitForLine()) { |
23 | S line = io.readLineNoBlock(); |
24 | print("> " + line); |
25 | } |
26 | } |
27 | |
28 | print(); |
29 | print("[logout]"); |
30 | } |
31 | } |
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1001077 |
Snippet name: | Telnet replacement using the standard console |
Eternal ID of this version: | #1001077/1 |
Text MD5: | c7a38f786e15e39da23019b291fc5bf5 |
Transpilation MD5: | efc8cfa4e41a6d1c0607c43ae392139b |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-09-20 00:31:12 |
Source code size: | 583 bytes / 31 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 712 / 782 |
Referenced in: | [show references] |