No need to use pseudo-cbreak mode now that we use pipes when stdout is

not a tty.  Instead, check whether stdin is a tty and if not, delay
setting the tty to raw mode until the command tries to access it itself
(and receives SIGTTIN or SIGTTOU).
This commit is contained in:
Todd C. Miller
2010-05-10 17:23:35 -04:00
parent cbb3010d73
commit c2d0888bf9
4 changed files with 27 additions and 26 deletions

View File

@@ -178,7 +178,7 @@ void script_setup(uid_t);
int term_cbreak(int);
int term_copy(int, int);
int term_noecho(int);
int term_raw(int, int, int);
int term_raw(int, int);
int term_restore(int, int);
/* fmt_string.h */