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

Diff of /imapfilter/tty.c

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

revision 1.11 by lefcha, Fri Feb 13 12:17:16 2004 UTC revision 1.12 by lefcha, Fri Feb 13 13:18:38 2004 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    
23          if (isatty(fileno(stdin))) {          if (isatty(fileno(stdin))) {
24                  flags |= FLAG_TTY;                  flags |= FLAG_TTY;
25    
# Line 37  tty_store(void) Line 38  tty_store(void)
38  int  int
39  tty_noecho(void)  tty_noecho(void)
40  {  {
41    
42          if (!(flags & FLAG_TTY))          if (!(flags & FLAG_TTY))
43                  return 0;                  return 0;
44    
# Line 59  tty_noecho(void) Line 61  tty_noecho(void)
61  int  int
62  tty_restore(void)  tty_restore(void)
63  {  {
64    
65          if (!(flags & FLAG_TTY) || !(flags & FLAG_TTYMOD))          if (!(flags & FLAG_TTY) || !(flags & FLAG_TTYMOD))
66                  return 0;                  return 0;
67    

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26