Shawn O. Pearce 8f82a4f828 Don't start the pager if stdout is a pipe
The repo script often uses a pager by default and will produce
control characters (coloring) to standard output when using the
pager, even if the output is redirected to another pipe or script.
This is because the pager setup checked for the terminal presence
on FD 0, and in case of redirection FD 0 is still attached to
the terminal.

Instead require that both FD 0 and FD 1 are connected to the terminal
in order to start the pager.

Bug: REPO-19, b.android.com/2004
Signed-off-by: Shawn O. Pearce <sop@google.com>
2009-04-01 07:24:22 -07:00
2008-10-21 07:00:00 -07:00
2008-10-21 07:00:00 -07:00
2008-10-21 07:00:00 -07:00
2009-03-09 18:26:31 -07:00
S
Description
Cryptsetup是一个基于块设备加密内核模块,用于方便地设置磁盘加密的实用工具。Cryptsetup is utility used to conveniently setup disk encryption based on DMCrypt kernel module.
15 MiB
Languages
C 60.7%
Shell 27.6%
Makefile 7.9%
M4 3.8%