Added a close method for pipes.
Bug fix: Protect against buffer underflow eof.
EOF were being reported whenever the output buffer was emptied. This is now
Bug fix: proper blocking on read-char and read-line
The start of a test suite.
Refactor: factor the pipe shuttling into its own function.
Bug fix: Fixed improper end of file handling.
Added function when connecting streams.
This function, if given, will be called on every character in the stream. This
allows you to do things like the "tee" program does in the shell.
Initial commit. I think it is working.