From: Chris Ferron <chris.e.ferron at linux.intel.com>
To: powertop@lists.01.org
Subject: Re: [Powertop] [PATCH] tuninig: resize scaling support (v1)
Date: Fri, 24 Aug 2012 08:56:41 -0700 [thread overview]
Message-ID: <5037A439.7000505@linux.intel.com> (raw)
In-Reply-To: 20120823205337.GB3065@swordfish.minsk.epam.com
[-- Attachment #1: Type: text/plain, Size: 2519 bytes --]
On 08/23/2012 01:53 PM, Sergey Senozhatsky wrote:
> On (08/23/12 09:57), Chris Ferron wrote:
>> So this may be nice for the tuning tab, but we have an overall issue
>> with other tabs as well.
>> Maybe we should change the controls around, and just move the pad.
>> That way we could scroll all tabs and not have to truncate strings.
>> ?
>> -Chris
>>
> That was the first one in a upcoming series of patches.
> Because we have separate display logic on every tab, I was moving in a
> direction of teaching each tabs honour resize.
>
>
>> Maybe we should change the controls around, and just move the pad.
>> That way we could scroll all tabs and not have to truncate strings.
> Sorry, I'm not sure I got this one, could you please elaborate?
>
> We can't avaoid string truncation (unless we introduce support for horizontal
> scrolling as well) when X becomes smaller than the longest string in tab
> (we actually can just ignore it and print beyond the sceen, but I think the
> common behaviour in that case is to let user notice that text has been truncated
> via ~ for example). I don't know what to do with C, P states tab when we only
> have space for "Package" and "Core", or when half of currently required X space for
> "Frequency stats" tab is available -- dynamic re-arrange looks a bit complex at
> the moment.
>
> As of Y scroll, well, we can come up with a common interface:
> -- for tab w/ cursor
> scrolling happens on every n*Y cursor position, because cursor step is 1.
>
> -- for tab w/o cursor
> scroling happens every cursor step (which is Y in this case).
>
> Schematically, what we need is a common method which will tell the number
> of lines particular tab is going to print, flag that indecates cursor step
> and common method (similar to one that used in tuning tab) to print tab
> content from BEGIN positiothen to END (BEGIN and END depends on current frame).
I will have to take another look this weekend, but if I remember
correctly. We create a large pad and then place windows on for viewing.
If we change the controls a bit, I think we can use the arrow keys to
scroll the viewable window around the pad for all tab windows.
Refresh or a tab change would reset the viewable window. Then we could
scroll x y.
I think you may be right about truncating strings, but maybe only if the
string is bigger then the base pad.
Instead of arrow keys navigating tabs, we could use the "TAB" key.
Just a thought
-Chris
>
> -ss
next reply other threads:[~2012-08-24 15:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-24 15:56 Chris Ferron [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-09-11 16:53 [Powertop] [PATCH] tuninig: resize scaling support (v1) Sergey Senozhatsky
2012-09-11 16:40 Chris Ferron
2012-08-23 20:53 Sergey Senozhatsky
2012-08-23 16:57 Chris Ferron
2012-08-23 9:12 Sergey Senozhatsky
2012-08-23 8:04 Sergey Senozhatsky
2012-08-23 4:22 Magnus Fromreide
2012-08-22 22:47 Sergey Senozhatsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5037A439.7000505@linux.intel.com \
--to=powertop@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.