[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.81 and 1.82

version 1.81, 2009/12/26 11:02:32 version 1.82, 2010/01/01 14:29:18
Line 146 
Line 146 
 tty_start_tty(struct tty *tty)  tty_start_tty(struct tty *tty)
 {  {
         struct termios   tio;          struct termios   tio;
         int              what, mode;          int              mode;
   
         if (tty->fd == -1)          if (tty->fd == -1)
                 return;                  return;
Line 170 
Line 170 
         tio.c_cc[VTIME] = 0;          tio.c_cc[VTIME] = 0;
         if (tcsetattr(tty->fd, TCSANOW, &tio) != 0)          if (tcsetattr(tty->fd, TCSANOW, &tio) != 0)
                 fatal("tcsetattr failed");                  fatal("tcsetattr failed");
           tcflush(tty->fd, TCIOFLUSH);
         what = 0;  
         if (ioctl(tty->fd, TIOCFLUSH, &what) != 0)  
                 fatal("ioctl(TIOCFLUSH)");  
   
         tty_putcode(tty, TTYC_SMCUP);          tty_putcode(tty, TTYC_SMCUP);
   

Legend:
Removed from v.1.81  
changed lines
  Added in v.1.82