You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I am using pacman , I found:
Error output in kmscon:
[]$ sudo pacman -Sy
:: Synchronizing package databases…
core
extra
core is up to date extra is up to date[]$
Correct output in getty, xterm, qterminal, konsole, etc
[]$ sudo pacman -Sy
:: Synchronizing package databases...
core is up to date
extra is up to date
[]$
I wrote a sample code to simulate it, and got the same outputs:
#include<stdio.h>#include<unistd.h>// from pacman-6.0.1/src/pacman/util.c: 1835/* Moves console cursor `lines` up */voidconsole_cursor_move_up(unsigned intlines)
{
printf("\x1B[%dF", lines);
}
/* Moves console cursor `lines` down */voidconsole_cursor_move_down(unsigned intlines)
{
printf("\x1B[%dE", lines);
}
/* Erases line from the current cursor position till the end of the line */voidconsole_erase_line(void)
{
printf("\x1B[K");
}
intmain()
{
printf(":: Synchronizing package databases...\n");
printf(" %s\n", "core");
printf(" %s\n", "extra");
sleep(1);
console_cursor_move_up(2);
printf(" %s is up to date", "core");
console_erase_line();
console_cursor_move_down(1);
printf(" %s is up to date", "extra");
console_erase_line();
printf("\n");
return0;
}
The text was updated successfully, but these errors were encountered:
When I am using pacman , I found:
Error output in kmscon:
Correct output in getty, xterm, qterminal, konsole, etc
I wrote a sample code to simulate it, and got the same outputs:
The text was updated successfully, but these errors were encountered: