Re: [PATCH v2 1/2] perf hists browser: Support horizontal scrolling with '<' and '>' key

Namhyung Kim
2015-08-11T02:21:32Z

On Mon, Aug 10, 2015 at 08:14:45PM -0300, Arnaldo Carvalho de Melo wrote:
> Em Tue, Aug 11, 2015 at 01:02:56AM +0200, Jiri Olsa escreveu:
> > On Mon, Aug 10, 2015 at 07:58:22PM -0300, Arnaldo Carvalho de Melo wrote:
>
> > SNIP
>
> > > > it'd really help for perf mem output, which is quite wide.. and we probably
> > > > have more wide outputs, or users with narrow terminals ;-)
>
> > > I'm not going against horizontal scrolling, it is needed, sure thing,
> > > its surprising we are doing this only now. What I am asking is this fine
> > > scrolling of one column per <- or -> keypress, but I really need to try
> > > it with things like 'perf mem', I thought that when you pressed '>', in
> > > this patch, it would move entire sort key columns, not just one vertical
> > > column one character wide, right?
>
> > yep, the whole sort column seemed more usefull,
> > though 1 vertical column is nice also
>
> We can get that by using the right and left keys while pressing shift or
> alt, I think.

I'd also like to do it. But it seems SLang_getkey() doesn't return
the shift, alt or control key status for arrow keys. CTRL(K_LEFT) or
META(K_RIGHT) didn't work for me. Anyone has an idea?

Thanks,
Namhyung