OutputScreenlet only displays last n lines based on height

Bug #1065143 reported by Larry Williams
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Individual Screenlets
Fix Committed
Low
Unassigned

Bug Description

I am using OutputScreenlet version 0.2.2+ in Precise. I am using it to display a total of 26 statistical lines. In order to see all 26 lines of output I must set the screenlet height greater than 775; any smaller and the top lines are not displayed.

Height > 25 line 26 displays
Height > 75 lines 25 and 26 display, bottom margin is roughly 2 blank lines.
.
.
.
Height > 775 all lines are displayed, bottom margin is roughly 21 blank lines

Revision history for this message
Fjodor (sune-molgaard) wrote : Re: [Indiv-screenlets-dev] [Bug 1065143] [NEW] OutputScreenlet only displays last n lines based on height

Larry Williams wrote:
> Public bug reported:
>
> I am using OutputScreenlet version 0.2.2+ in Precise. I am using it to
> display a total of 26 statistical lines. In order to see all 26 lines of
> output I must set the screenlet height greater than 775; any smaller and
> the top lines are not displayed.
>
> Height > 25 line 26 displays
> Height > 75 lines 25 and 26 display, bottom margin is roughly 2 blank lines.
> .
> .
> .
> Height > 775 all lines are displayed, bottom margin is roughly 21 blank lines
>
> ** Affects: indiv-screenlets
> Importance: Undecided
> Status: New
>

When working on another bug, I noticed what I think might be an
inability to calculate widths and heights for specific fonts and -sizes,
though it might be that the screenlets drawing library simply calculates
from the specific font and size that is already set.

I don't have the time, but someone might look into whether my (limited)
understanding is correct, or whether some functionality should be added
to Drawing.py...

Best regards,

Sune Mølgaard

--
The tolerance of liberty can be maintained until complete federal and
state control by Catholics has been accomplished.
- Bishop O'Connor, Pittsburgh

Märt Põder (boamaod)
Changed in indiv-screenlets:
importance: Undecided → Low
Revision history for this message
Nicolas Krzywinski (nsk7even) wrote :

Hey Larry, can you please tell how to reproduce this?
tail -26 /var/log/syslog e. g. works for me. Did you tried to increase width as well? Are there linebreaks?

Greetings,
Nicolas

Revision history for this message
Larry Williams (ltwilliams58) wrote : Re: [Bug 1065143] Re: OutputScreenlet only displays last n lines based on height

On 10/17/2012 01:01 PM, Nicolas Krzywinski wrote:
> Hey Larry, can you please tell how to reproduce this?
> tail -26 /var/log/syslog e. g. works for me. Did you tried to increase width as well? Are there linebreaks?
>
> Greetings,
> Nicolas
>

Hello Nicolas. The shell script is a series of echo statements, they
look like:
     echo " Nightly `printf %6s $fcnite`, `printf %7s $fbnite` kB"
Changing width has no effect, in fact narrowing the width causes wrap
but no loss of displayed data.
Technically there are linesbreaks since each line is a separate echo
statement.

Thanks for checking on ths

Larry

Revision history for this message
Nicolas Krzywinski (nsk7even) wrote :

Ok, I just remembered there were fixes after my modifications, so can you please check the newest version 0.2.3 from the ppa:screenlets-dev/ppa
Maybe you encountered exactly the behaviour described here: https://bugs.launchpad.net/indiv-screenlets/+bug/1024855 which is fixed in 0.2.3

Good luck!
Nicolas

Revision history for this message
Larry Williams (ltwilliams58) wrote :

On 10/19/2012 01:21 PM, Nicolas Krzywinski wrote:
> Ok, I just remembered there were fixes after my modifications, so can you please check the newest version 0.2.3 from the ppa:screenlets-dev/ppa
> Maybe you encountered exactly the behaviour described here: https://bugs.launchpad.net/indiv-screenlets/+bug/1024855 which is fixed in 0.2.3
>
> Good luck!
> Nicolas
>

Thank you Nicolas, I think this has resolved the issue. Now I can bring
the bottom of the window up close to the end of the text. It does seem
to work as expected now.

Regards,
Larry

Revision history for this message
Nicolas Krzywinski (nsk7even) wrote :
Changed in indiv-screenlets:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.