Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/interplane-forge/blob/main/galaxy/cli.om # interplane-forge INTERPLANE Forge Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `interplane-forge / galaxy / cli.om` 42 lines ยท 562 bytes Raw Blame History 1 note cli.om: galaxy as a filter. stdin is the feed (or "css"), stdout the page. Composed after page.om. 2 fn rdin to void 3 n = ulong 0 4 k = long 1 5 while gt k 0 bound 65536 6 k = read 0 ib n sub 65535 n 7 if gt k 0 8 n = add n ulong k 9 end 10 end 11 put ibl 0 n 12 end 13 fn flush to int 14 n = get obl 0 15 o = ulong 0 16 while lt o n bound `1048576` 17 k = write 1 ob o sub n o 18 if le k 0 19 ret 1 20 end 21 o = add o ulong k 22 end 23 ret 0 24 end 25 fn main to int 26 rdin 27 n = get ibl 0 28 mode = ulong 0 29 if ge n 3 30 if eq get ib 0 99 31 if eq get ib 1 115 32 mode = ulong 1 33 end 34 end 35 end 36 if eq mode 1 37 css 38 else 39 page 40 end 41 ret flush 42 end