version 1.17, 2006/03/19 18:51:19 |
version 1.18, 2006/03/20 18:14:02 |
|
|
*/ |
*/ |
|
|
int |
int |
pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, int namebuflen) |
pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, size_t namebuflen) |
{ |
{ |
char buf[64]; |
char buf[64]; |
int i; |
int i; |
|
|
/* Changes the window size associated with the pty. */ |
/* Changes the window size associated with the pty. */ |
|
|
void |
void |
pty_change_window_size(int ptyfd, int row, int col, |
pty_change_window_size(int ptyfd, u_int row, u_int col, |
int xpixel, int ypixel) |
u_int xpixel, u_int ypixel) |
{ |
{ |
struct winsize w; |
struct winsize w; |
|
|
|
/* may truncate u_int -> u_short */ |
w.ws_row = row; |
w.ws_row = row; |
w.ws_col = col; |
w.ws_col = col; |
w.ws_xpixel = xpixel; |
w.ws_xpixel = xpixel; |