[pacman-dev] [PATCH v2] Hide cursor while pacman is running

Allan McRae allan at archlinux.org
Mon Mar 9 03:09:22 UTC 2020


On 9/3/20 6:22 am, Anatol Pomozov wrote:
> Use ASCII control codes to hide cursor at the pacman start and then
> show the cursor when pacman finishes.
> 
> It helps to avoid annoying blinking when progress bars are re-drawn.
> 
> Cursor is reenabled if pacman expects user's input.
> 
> Signed-off-by: Anatol Pomozov <anatol.pomozov at gmail.com>
> ---
>  src/common/util-common.c | 13 +++++++++++++
>  src/common/util-common.h |  3 +++
>  src/pacman/pacman.c      |  2 ++
>  src/pacman/sighandler.c  |  5 +++++
>  src/pacman/util.c        | 19 ++++++++++++++-----
>  src/pacman/util.h        |  1 +
>  6 files changed, 38 insertions(+), 5 deletions(-)

I'm happy with the content of the patch.

Final request, move changes in src/common/util-common.* to
src/pacman/util.* - this should be entirely contained to pacman, not
libalpm.

Thanks,
Allan


More information about the pacman-dev mailing list