Summary: | yum progress bars scroll down the screen | ||
---|---|---|---|
Product: | [Applications] konsole | Reporter: | Orion Poplawski <orion> |
Component: | general | Assignee: | Konsole Developer <konsole-devel> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | rdieter |
Priority: | NOR | ||
Version: | 2.0 | ||
Target Milestone: | --- | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | urlgrabber output |
Description
Orion Poplawski
2008-03-12 22:10:06 UTC
Do you know of any cross-distribution programs which exhibit a similar problem, with different behavior between Xterm and Konsole? Well, yum is using urlgrabber to do the downloading, so it's really the output from that. Not really sure how "cross-platform" that is since it was developed to support yum. http://linux.duke.edu/projects/urlgrabber/ Cannot reproduce with wget or scp. If you can capture the output which is sent to the terminal then you can paste it here and I can replay it to see the effect. Created attachment 23936 [details]
urlgrabber output
Looks like urlgrabber is outputting <CR> (ctrl-M) and expecting it not to
newline, which it shouldn't.
$ stty -a
speed 38400 baud; rows 29; columns 77; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;
werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff
-iuclc -ixany -imaxbel iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0
ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
echoctl echoke
Basically identical for the xterm case.
When I cat the file attached in comment #4 I only see one line of output, which shows the progress bar at 100% as expected because the previous output on the line gets immediately overwritten. Is this the case for you? > Looks like urlgrabber is outputting <CR> (ctrl-M) and expecting it not to > newline, which it shouldn't. I don't think it is as simple as that. The Konsole code which handles <CR> is really simple, it just sets the cursor position back to the start of the current line. I also get the same results for 'echo -e "\r"' in xterm and Konsole. Running urlgrabber on its own with the syntax: urlgrabber <URL> test Produces the correct result for me, with the progress bar overwriting the current line on each update. Found the issue. konsole size was 78 characters wide so the lines wrap to the next line. Sorry about that. Actually a dupe of #160422. |