Skip to content

Commit

Permalink
doc: clarify the behavior of uv_tty_init
Browse files Browse the repository at this point in the history
Closes #120

PR-URL: #121
Reviewed-By: Ben Noordhuis <[email protected]>
  • Loading branch information
saghul committed Jan 7, 2015
1 parent 72e4b5a commit 85d6624
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/src/tty.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,13 @@ API
`readable`, specifies if you plan on calling :c:func:`uv_read_start` with
this stream. stdin is readable, stdout is not.
On Unix this function will try to open ``/dev/tty`` and use it if the passed file
descriptor refers to a TTY. This lets libuv put the tty in non-blocking mode
without affecting other processes that share the tty.
.. note::
TTY streams which are not readable have blocking writes.
If opening ``/dev/tty`` fails, libuv falls back to blocking writes for non-readable
TTY streams.
.. c:function:: int uv_tty_set_mode(uv_tty_t*, uv_tty_mode_t mode)
Expand Down

0 comments on commit 85d6624

Please sign in to comment.