Scheme interpreter i/o device stdio and stderr server
. __Behaviours:__ [`gen_server`](gen_server.html).Authors: Joseph Wayne Norton ([email protected]
).
mode() = read | write
mode_error() = write
opt() = {read, boolean()} | {write, boolean()} | {binary, false} | {test, boolean()}
server() = pid()
close/1 | |
close/2 | |
code_change/3 | |
flush/1 | |
getopts/1 | |
getopts/2 | |
handle_call/3 | |
handle_cast/2 | |
handle_info/2 | |
init/1 | |
is_ready/1 | |
peek/2 | |
read/2 | |
read_all/1 | |
read_line/1 | |
start/2 | |
terminate/2 | |
write/2 |
close(Server::server()) -> boolean()
close(Server::server(), Mode::read | write) -> boolean()
code_change(OldVsn, State, Extra) -> any()
flush(Server::server()) -> ok | {error, Reason::term()}
getopts(Server::server(), Mode::read | write | binary) -> boolean()
handle_call(Msg, From, State) -> any()
handle_cast(Msg, State) -> any()
handle_info(Info, State) -> any()
init(X1::{iodata() | standard_io | standard_error, [mode()]}) -> {ok, #state{}}
is_ready(Server::server()) -> boolean()
peek(Server::server(), K::non_neg_integer()) -> string() | eof | {error, Reason::term()}
read(Server::server(), K::non_neg_integer()) -> string() | eof | {error, Reason::term()}
read_all(Server::server()) -> string() | eof | {error, Reason::term()}
read_line(Server::server()) -> string() | eof | {error, Reason::term()}
start(Term::standard_io, Modes::[mode()]) -> {ok, pid()} | ignore | {error, Reason::term()}
terminate(Reason, State) -> any()
write(Server::server(), Data::string()) -> ok | {error, Reason::term()}