/[imapfilter]/imapfilter/tty.c
ViewVC logotype

Diff of /imapfilter/tty.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by lefcha, Tue Jun 18 21:22:35 2002 UTC revision 1.5 by lefcha, Fri Jul 26 14:45:28 2002 UTC
# Line 21  int tty_store(void) Line 21  int tty_store(void)
21          error("imapfilter: getting term attributes; %s\n", strerror(errno));          error("imapfilter: getting term attributes; %s\n", strerror(errno));
22          return ERROR_TERMIO;          return ERROR_TERMIO;
23      }      }
       
24      return 0;      return 0;
25  }  }
26    
# Line 51  int tty_restore(void) Line 50  int tty_restore(void)
50  {  {
51      if (!(flags & FLAG_TTY_MODIFIED))      if (!(flags & FLAG_TTY_MODIFIED))
52          return 0;          return 0;
53        
54      if (tcsetattr(fileno(stdout), TCSAFLUSH, &otio)) {      if (tcsetattr(fileno(stdout), TCSAFLUSH, &otio)) {
55          error("imapfilter: setting term attributes; %s\n", strerror(errno));          error("imapfilter: setting term attributes; %s\n", strerror(errno));
56          return ERROR_TERMIO;          return ERROR_TERMIO;
57      }      }
   
58      flags &= ~(FLAG_TTY_MODIFIED);      flags &= ~(FLAG_TTY_MODIFIED);
59        
60      return 0;      return 0;
61  }  }

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26