I'm working on a module for capturing io output (from io:format etc)
and passing that on in signals, so you can put them on a page, for
instance.
Also planning to capture input, but that will be when we get a use for it...
A working io_server is here: https://github.com/kaos/zotonic/tree/mod_io_server
And some test code that you can run from the erl shell (and to show
how it is working) is here:
https://github.com/kaos/zotonic/tree/mod_io_server-test
From the commit message on the test branch:
Test file for mod_io_server.
Sample output:
1> C=z:c(test_site).
{context, ...}
2> iot:setup(C).
ok
3> iot:test(C).
got put_chars signal: "this is some test output from <0.20089.1>.\n"
io_server test ok
ok
4>
Cheers,
Andreas