2007-06-13 23:07:59 +02:00
.TH libssh2_channel_request_pty_ex 3 "1 Jun 2007" "libssh2 0.15" "libssh2 manual"
.SH NAME
libssh2_channel_request_pty_ex - short function description
.SH SYNOPSIS
#include <libssh2.h>
int
libssh2_channel_request_pty_ex(LIBSSH2_CHANNEL *channel, const char *term, unsigned int term_len, const char *modes, unsigned int modes_len, int width, int height, int width_px, int height_px);
int
libssh2_channel_request_pty(LIBSSH2_CHANNEL *channel, char *term);
.SH DESCRIPTION
\fI channel\fP - Previously opened channel instance such as returned by
2009-03-17 00:25:14 +01:00
.BR libssh2_channel_open_ex(3)
2007-06-13 23:07:59 +02:00
\fI term\fP - Terminal emulation (e.g. vt102, ansi, etc...)
\fI term_len\fP - Length of term parameter
\fI modes\fP - Terminal mode modifier values
\fI modes_len\fP - Length of modes parameter.
\fI width\fP - Width of pty in characters
\fI height\fP - Height of pty in characters
\fI width_px\fP - Width of pty in pixels
\fI height_px\fP - Height of pty in pixels
Request a PTY on an established channel. Note that this does not make sense
for all channel types and may be ignored by the server despite returning
success.
.SH RETURN VALUE
Return 0 on success or negative on failure. It returns
LIBSSH2_ERROR_EAGAIN when it would otherwise block. While
LIBSSH2_ERROR_EAGAIN is a negative number, it isn't really a failure per se.
.SH ERRORS
\fI LIBSSH2_ERROR_ALLOC\fP - An internal memory allocation call failed.
\fI LIBSSH2_ERROR_SOCKET_SEND\fP - Unable to send data on socket.
\fI LIBSSH2_ERROR_CHANNEL_REQUEST_DENIED\fP -
.SH SEE ALSO
2009-03-17 00:25:14 +01:00
.BR libssh2_channel_open_ex(3)