version 1.135, 2012/05/22 09:37:54 |
version 1.136, 2012/05/22 14:32:28 |
|
|
((ctx)->xoff == 0 && screen_size_x((ctx)->wp->screen) >= (tty)->sx) |
((ctx)->xoff == 0 && screen_size_x((ctx)->wp->screen) >= (tty)->sx) |
|
|
void |
void |
tty_init(struct tty *tty, int fd, char *term) |
tty_init(struct tty *tty, struct client *c, int fd, char *term) |
{ |
{ |
char *path; |
char *path; |
|
|
|
|
else |
else |
tty->termname = xstrdup(term); |
tty->termname = xstrdup(term); |
tty->fd = fd; |
tty->fd = fd; |
|
tty->client = c; |
|
|
if ((path = ttyname(fd)) == NULL) |
if ((path = ttyname(fd)) == NULL) |
fatalx("ttyname failed"); |
fatalx("ttyname failed"); |