Skip to content

Instantly share code, notes, and snippets.

@ry
Created September 21, 2011 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ry/1233308 to your computer and use it in GitHub Desktop.
Save ry/1233308 to your computer and use it in GitHub Desktop.
/*
* Gets the current Window size. The size array is filled with rows and
* columns (in that order) of the terminal.
*/
int uv_tty_get_winsize(uv_tty_t*, int size[2]);
/*
* Convience function is used to detect what type of stream should be used
* with a given file descriptor. Usually this will be used during
* initialization to guess the type of the stdio streams.
*
* On success returns UV_TTY, UV_NAMED_PIPE, or UV_FILE
* On failure returns -1.
*/
int uv_guess_handle(uv_file file);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment