diff options
Diffstat (limited to 'lib/stdlib/src/io.erl')
-rw-r--r-- | lib/stdlib/src/io.erl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/stdlib/src/io.erl b/lib/stdlib/src/io.erl index b11d41e2eb..f2a241fb1f 100644 --- a/lib/stdlib/src/io.erl +++ b/lib/stdlib/src/io.erl @@ -172,10 +172,12 @@ get_password(Io) -> -type encoding() :: 'latin1' | 'unicode' | 'utf8' | 'utf16' | 'utf32' | {'utf16', 'big' | 'little'} | {'utf32','big' | 'little'}. -type expand_fun() :: fun((term()) -> {'yes'|'no', string(), [string(), ...]}). +-type max_length() :: 'unlimited' | pos_integer(). -type opt_pair() :: {'binary', boolean()} | {'echo', boolean()} | {'expand_fun', expand_fun()} - | {'encoding', encoding()}. + | {'encoding', encoding()} + | {'max_length', max_length()}. -spec getopts() -> [opt_pair()]. @@ -552,6 +554,8 @@ request(Request) -> request(standard_io, Request) -> request(group_leader(), Request); +request(Pid, Request) when Pid=:=self() -> + execute_request(group_leader(), io_request(Pid, Request)); request(Pid, Request) when is_pid(Pid) -> execute_request(Pid, io_request(Pid, Request)); request(Name, Request) when is_atom(Name) -> |