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

Diff of /imapfilter/tty.c

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

revision 1.5.2.1 by lefcha, Sun Feb 2 17:44:01 2003 UTC revision 1.5.2.2 by lefcha, Sun May 25 11:20:24 2003 UTC
# Line 18  static struct termios otio, ntio;      /* Ori Line 18  static struct termios otio, ntio;      /* Ori
18   */   */
19  int tty_store(void)  int tty_store(void)
20  {  {
21      if (isatty(fileno(stdin)))      if (isatty(fileno(stdin))) {
22          flags |= FLAG_TTY;          flags |= FLAG_TTY;
23    
24      if (tcgetattr(fileno(stdin), &otio)) {          if (tcgetattr(fileno(stdin), &otio)) {
25          error("imapfilter: getting term attributes; %s\n", strerror(errno));              error("imapfilter: getting term attributes; %s\n", strerror(errno));
26          return ERROR_TERMIO;              return ERROR_TERMIO;
27            }
28      }      }
29      return 0;      return 0;
30  }  }

Legend:
Removed from v.1.5.2.1  
changed lines
  Added in v.1.5.2.2

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26