FS#28568 - Jumping cursor in progress bar

Attached to Project: Pacman
Opened by Thomas (radioactiveman) - Tuesday, 21 February 2012, 20:05 GMT
Last edited by Allan McRae (Allan) - Friday, 12 July 2013, 21:51 GMT
Task Type Bug Report
Category Output
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 4.0.2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Summary and Info:

The attached video shows the problem:
For some packages the cursor jumps inside the progress bar.
It doesn't matter if ILoveCandy is enabled or disabled.

Packages:
- terminal 0.4.8-1
- gnome-terminal 3.2.1-1
- bash 4.2.020-1

Steps to Reproduce:
pacman -S foomatic-db
pacman -S qt
   Example.ogv (361.2 KiB)
This task depends upon

Closed by  Allan McRae (Allan)
Friday, 12 July 2013, 21:51 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Issue is not in pacman
Comment by Thomas (radioactiveman) - Tuesday, 21 February 2012, 20:11 GMT
'Category' should be output, sorry.
Comment by Dave Reisner (falconindy) - Tuesday, 21 February 2012, 20:57 GMT
Your terminal is a pile of crap.
Comment by Dan McGee (toofishes) - Tuesday, 21 February 2012, 20:59 GMT
Dave put it the simple way. :) What is happening here is your terminal is not line-buffered, so it is outputting half of a line at a time. Why this is even worrisome, I'm not sure, but patches welcome to hide the cursor if this bugs you.
Comment by Thomas (radioactiveman) - Wednesday, 22 February 2012, 16:02 GMT
This patch resolves the issue but I think it could be done in a better way.
For example after "checking for file conflicts" the cursor appears but it should not.

Is it possible to hide the cursor before "checking package integrity"
and reveal it after the installation of the package/s?
Comment by Thomas (radioactiveman) - Wednesday, 22 February 2012, 16:11 GMT
Do you have an idea why this bug appears only with a really small number of packages?
What is the difference here?
Comment by Dave Reisner (falconindy) - Wednesday, 22 February 2012, 16:12 GMT
Completely non-portable. This is specific to your terminal and will merely print bizzare characters on terminals that don't understand the escape. There's a reason that ncurses exists.

Loading...