pacman 6 current/total not displayed on TDE - what does old konsole lack?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



All,

  As mentioned in an earlier thread, the new pacman current/total update
scheme causes the old KDE3/TDE konsole output to look jittery instead of
updating the multi-line progress bar.

  I'm trying to track down why so we can patch TDE konsole to fix the problem,
but I'm having a difficult time chasing down just exactly what is being
written that is causing the problem.

  I've chased through callback.c:

static void dload_progress_event(const char *filename,
alpm_download_event_progress_t *data)

  Where the update is done,

https://gitlab.archlinux.org/pacman/pacman/-/blob/master/src/pacman/callback.c#L981

  Either with console_cursor_goto_bar(index) for the current file or
console_cursor_move_end() for the total and those are simple ANSI escapes from
util.c:

/* Moves console cursor `lines` up */
void console_cursor_move_up(unsigned int lines)
{
	printf("\x1B[%dF", lines);
}

/* Moves console cursor `lines` down */
void console_cursor_move_down(unsigned int lines)
{
	printf("\x1B[%dE", lines);
}

/* Erases line from the current cursor position till the end of the line */
void console_erase_line(void)
{
	printf("\x1B[K");
}

What is it that the new pacman is doing with the multi-line progress bar
TDE/konsole lacks?



-- 
David C. Rankin, J.D.,P.E.



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux