Re: [PATCH 3/9] perf stat: Clear screen only if output file is a tty

From: Namhyung Kim
Date: Wed Nov 09 2022 - 13:03:38 EST


Hi Ian,

On Tue, Nov 8, 2022 at 3:16 PM Ian Rogers <irogers@xxxxxxxxxx> wrote:
>
> On Mon, Nov 7, 2022 at 1:33 PM Namhyung Kim <namhyung@xxxxxxxxxx> wrote:
> >
> > The --interval-clear option makes perf stat to clear the terminal at
> > each interval. But it doesn't need to clear the screen when it saves
> > to a file.
>
> Would it be more intuitive to warn if interval-clear is specified with a file?

Makes sense, will change.

Thanks,
Namhyung