Deals with the input and output servers, their filters, and their translators.
Exported Functions | |
---|---|
flush/1 | Flushes any pending output, even if it has not been translated yet. |
input/1 | Retrieves the next character value from the input stream. |
output/2 | Sends the given character value to the output stream. |
server/1 | Spawned by start/1 . |
start/3 | Creates and spawns a new I/O subsystem. |
stop/1 | Tells the I/O server to stop. |
Internal Documented Functions | |
config/2 | Sets the various options of an I/O subsystem. |
write/5 | Writes a character to the output, within the given constraints. |
flush(pid()) -> ok
Flushes any pending output, even if it has not been translated yet.
input(pid()) -> integer() | nop
Retrieves the next character value from the input stream.
output(pid(), integer()) -> ok
Sends the given character value to the output stream.
server(IO) -> never_returns()
Spawned by start/1
.
Should not be called directly by user code.
start(Supervisor::pid(), [option()], CannedInput::string()) -> pid()
Creates and spawns a new I/O subsystem.
For a description of the allowed options, see the documentation for
the pibfi_options
module.
stop(pid()) -> ok
Tells the I/O server to stop.
config([option()], tape()) -> tape()
Sets the various options of an I/O subsystem.
write(iodevice(), Max::integer(), Min::integer(), Wrap::boolean(), char()) -> ok
Writes a character to the output, within the given constraints.