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

Ralph Corderoy ralph at inputplus.co.uk
Mon Mar 9 09:48:49 UTC 2020


Hi,

> +void console_hide_cursor(void) {
> +       if(isatty(fileno(stdout))) {
> +               printf("\x1B[?25l");
> +       }

This is an ioctl(2) each time.
Can stdout be assumed not to change and just tested once?

-- 
Cheers, Ralph.


More information about the pacman-dev mailing list