[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.184 and 1.185

version 1.184, 2015/07/13 15:49:31 version 1.185, 2015/07/13 15:51:31
Line 59 
Line 59 
 #define tty_pane_full_width(tty, ctx) \  #define tty_pane_full_width(tty, ctx) \
         ((ctx)->xoff == 0 && screen_size_x((ctx)->wp->screen) >= (tty)->sx)          ((ctx)->xoff == 0 && screen_size_x((ctx)->wp->screen) >= (tty)->sx)
   
 int  int
 tty_init(struct tty *tty, struct client *c, int fd, char *term)  tty_init(struct tty *tty, struct client *c, int fd, char *term)
 {  {
         char    *path;          char    *path;
   
         if (!isatty(fd))          if (!isatty(fd))
                 return (-1);                  return (-1);
   
         memset(tty, 0, sizeof *tty);          memset(tty, 0, sizeof *tty);
         tty->log_fd = -1;          tty->log_fd = -1;
   
Line 78 
Line 78 
         tty->client = c;          tty->client = c;
   
         if ((path = ttyname(fd)) == NULL)          if ((path = ttyname(fd)) == NULL)
                 return (-1);                  return (-1);
         tty->path = xstrdup(path);          tty->path = xstrdup(path);
         tty->cstyle = 0;          tty->cstyle = 0;
         tty->ccolour = xstrdup("");          tty->ccolour = xstrdup("");
   
         tty->flags = 0;          tty->flags = 0;
         tty->term_flags = 0;          tty->term_flags = 0;
   
         return (0);          return (0);
 }  }
   
 int  int

Legend:
Removed from v.1.184  
changed lines
  Added in v.1.185