ssm-lang / Scoria

This is an embedding of the Sparse Synchronous Model, in Haskell!
BSD 3-Clause "New" or "Revised" License
4 stars 0 forks source link

Connect standard streams to global references #62

Open Rewbert opened 2 years ago

Rewbert commented 2 years ago

Soon, support for global references in the EDSL will be merged in with #46 (after it's been merged into that branch first...), and it would be great if we could then add the standard streams to the EDSL.

stdin needs to be written to when there's something on the stdin, and similarly, when stdout & stderr are written to, that write need to be handled by a handler that writes the value to the actual streams.

j-hui commented 2 years ago

Tagging @hmontero1205 since he worked on something like this at the C level

I have also been playing around with some I/O interface code, and have ideas about what needs to be done on the Zephyr side.