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 |
|
|
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 |
} |
} |