[BACK]Return to tty.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/tty.c between version 1.135 and 1.136

version 1.135, 2012/05/22 09:37:54 version 1.136, 2012/05/22 14:32:28
Line 64 
Line 64 
         ((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;
   
Line 76 
Line 76 
         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");

Legend:
Removed from v.1.135  
changed lines
  Added in v.1.136