Libraryless. Click here for Pure Java version (2229L/17K/53K).
!747 m { !include #1000947 // LineBuf p { Class javax = getJavaX(); print("JavaX: " + javax); set(javax, "customSystemOut", new Appendable() { new LineBuf buf; // only using this one public Appendable append(CharSequence cs) { buf.append(cs.toString()); while (true) { S s = buf.nextLine(); if (s == null) break; reportToChat(s, true); } return this; } public Appendable append(char c) { return this; } public Appendable append(CharSequence s, int start, int end) { return this; } }); print("Hallöchen"); } }
Began life as a copy of #1000944
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: | #1000945 |
Snippet name: | Test auto-reportToChat on every print - hopefully no recursion? |
Eternal ID of this version: | #1000945/1 |
Text MD5: | feb4dbe974d930b75f67284fd6a2102b |
Transpilation MD5: | 46c96822a774b856585ecad95cea4a22 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-09-11 17:15:42 |
Source code size: | 684 bytes / 30 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 694 / 741 |
Referenced in: | [show references] |