It would be cool if you could do something like runal -f sketch.js -p 2222 and have it start as an ssh server on port 2222
I tried a really quick attempt to see if I could make it kind of work. See this branch on my fork: https://github.com/rahji/runal/tree/run2 I basically hacked the Run function so it takes an io.Writer instead of always using io.Stdout. Then I used an ssh.Session (from gliderlabs/ssh)as the argument.
The colors example does kind of work. You can't disconnect and it is just a still image so it was the easiest attempt. I tried adding some movement between frames and that didn't work. Also tried the mouse example to see if input would be recognized but it's totally broken.
There's also wish, which uses gliderlabs/ssh under the hood, but it was easier to start with gliderlabs. Anyway, I'd say it's on my wishlist, but I haven't been using the runal command. So my real wish is to get it working in Go, which maybe just requires finding the right solution to make an existing runal sketch work with whatever server I get working.
It would be cool if you could do something like
runal -f sketch.js -p 2222and have it start as an ssh server on port 2222I tried a really quick attempt to see if I could make it kind of work. See this branch on my fork: https://github.com/rahji/runal/tree/run2 I basically hacked the
Runfunction so it takes anio.Writerinstead of always usingio.Stdout. Then I used anssh.Session(fromgliderlabs/ssh)as the argument.The
colorsexample does kind of work. You can't disconnect and it is just a still image so it was the easiest attempt. I tried adding some movement between frames and that didn't work. Also tried themouseexample to see if input would be recognized but it's totally broken.There's also
wish, which usesgliderlabs/sshunder the hood, but it was easier to start with gliderlabs. Anyway, I'd say it's on my wishlist, but I haven't been using therunalcommand. So my real wish is to get it working in Go, which maybe just requires finding the right solution to make an existing runal sketch work with whatever server I get working.