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

Diff of /imapfilter/tty.c

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

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

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26