Open Janfel opened 3 years ago
I agree with this suggestion. Making the most common case the easiest makes sense to me. If a script wants to ensure a specific mode instead of relying on autodetection, it could always specify -in/-out/-filter.
However, the maintainer of xclip is not yet convinced that using isatty() a good idea. Feel free to weigh in on #88 if you have any helpful thoughts.
As of
xclip 0.13
, usingxclip
in a pipeline requires the user to explicitly add the-filter
argument. Changing the default value from-silent
toisatty(stdout) ? -silent : -filter
would remove this need. The user could then write