You are not logged in.

#1 2010-02-10 04:02:41

zhou13
Member
Registered: 2009-10-07
Posts: 35

[SOLVED]How to make powerpill not output too much line?

How to make powerpill not output too much line when it downloads different files at one time.

such as
8 SIZE:36.4MiB/42.1MiB(86%) CN:6 SPD:79.0KiBs ETA:01m13s](1more...) [TOTAL SPD[#8 SIZE:36.5MiB/42.1MiB(86%) CN:6 SPD:81.7KiBs ETA:01m09s](1more...) [TOTAL SPD[#8 SIZE:36.6MiB/42.1MiB(87%) CN:6 SPD:82.3KiBs ETA:01m07s](1more...) [TOTAL SPD[#8 SIZE:36.7MiB/42.1MiB(87%) CN:6 SPD:90.2KiBs ETA:01m00s](1more...) [TOTAL SPD[#8 SIZE:36.8MiB/42.1MiB(87%) CN:6 SPD:66.5KiBs ETA:01m21s](1more...) [TOTAL SPD[#8 SIZE:36.9MiB/42.1MiB(87%) CN:6 SPD:59.2KiBs ETA:01m29s](1more...) [TOTAL SPD[#8 SIZE:37.0MiB/42.1MiB(87%) CN:6 SPD:71.6KiBs ETA:01m13s](1more...) [TOTAL SPD[#8 SIZE:37.0MiB/42.1MiB(88%) CN:6 SPD:72.7KiBs ETA:01m10s](1more...) [TOTAL SPD:219.2KiBs]

Can I combine them in one line?
And Wget has the same problem.

Last edited by zhou13 (2010-02-10 09:18:51)

Offline

#2 2010-02-10 04:18:21

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

Re: [SOLVED]How to make powerpill not output too much line?

I'm interested in this as well. Actually, if you just make the terminal a bit bigger you'll see it doesn't expand to so many lines, its a running counter.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#3 2010-02-10 06:09:04

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: [SOLVED]How to make powerpill not output too much line?

@zhou13 can you post an image?

Offline

#4 2010-02-10 06:39:18

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: [SOLVED]How to make powerpill not output too much line?

I think 97% sure it's the carriage return.
When your terminal is not wide enough and a line like

[#8 SIZE:37.0MiB/42.1MiB(88%) CN:6 SPD:72.7KiBs ETA:01m10s](1more...) [TOTAL SPD:219.2KiBs]

becomes, in your case,

[#8 SIZE:37.0MiB/42.1MiB(88%) CN:6 SPD:72.7KiBs ETA:01m10s](1more...) [TOTAL SPD
:219.2KiBs]

The carriage return won't return the cursor at "[", but at ":" instead.

The solution might be to save the cursor position right before the line is printed, and then clear the whole line, and restore the cursor position when the line needs refreshing.

I'm wondering, zhou13, what a *huge* font you have... screenshot please? tongue


This silver ladybug at line 28...

Offline

#5 2010-02-10 07:49:54

zhou13
Member
Registered: 2009-10-07
Posts: 35

Re: [SOLVED]How to make powerpill not output too much line?

Right,it's the carriage return. But it is not because the font size(11).
I think width 80 is too short to use powerpill in gnome-terminal because of my font.
I wonder why your powerpill is normal.
I modify the /usr/share/vte/termcap/xterm and
set a line to

 :co#90:it#8:li#40:\

now, powerpill is perfect.

But Wget still has the problem.
I believe it is a bug in Chinese environment.

Offline

#6 2010-02-10 07:50:49

zhou13
Member
Registered: 2009-10-07
Posts: 35

Re: [SOLVED]How to make powerpill not output too much line?

and how to upload a image?

Offline

Board footer

Powered by FluxBB