Skip to content
  • Anatol Pomozov's avatar
    Implement multibar UI · b96e0df4
    Anatol Pomozov authored and Allan McRae's avatar Allan McRae committed
    
    
    Multiplexed download requires ability to draw UI for multiple active progress
    bars. To implement it we use ANSI codes to move cursor up/down and then
    redraw the required progress bar.
    `pacman_multibar_ui.active_downloads` field represents the list of active
    downloads that correspond to progress bars.
    `struct pacman_progress_bar` is a data structure for a progress bar.
    
    In some cases (e.g. database downloads) we want to keep progress bars in order.
    In some other cases (package downloads) we want to move completed items to the
    top of the screen. Function `multibar_move_completed_up` allows to configure
    such behavior.
    
    Per discussion in the maillist we do not want to show download progress for
    signature files.
    
    Signed-off-by: default avatarAnatol Pomozov <anatol.pomozov@gmail.com>
    Signed-off-by: default avatarAllan McRae <allan@archlinux.org>
    b96e0df4