]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
irqtop: hide cursor when in interactive mode
authorSami Kerola <kerolasa@iki.fi>
Sat, 22 Feb 2020 08:12:59 +0000 (08:12 +0000)
committerSami Kerola <kerolasa@iki.fi>
Sat, 22 Feb 2020 21:43:54 +0000 (21:43 +0000)
Visible cursor is distraction.  Secondly with visible cursor key commands
can be visible adding unwanted characters to end of output.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
sys-utils/irqtop.c

index bdb8c3b8772e857bb3e8ff22c0849df403858b81..05596c41b165e9b6490bb3c18f6e27e061cd29d2 100644 (file)
@@ -701,6 +701,7 @@ int main(int argc, char **argv)
                ctl.win = initscr();
                get_terminal_dimension(&ctl.cols, &ctl.rows);
                resizeterm(ctl.rows, ctl.cols);
+               curs_set(0);
        }
        ctl.smp_num_cpus = sysconf(_SC_NPROCESSORS_ONLN);
        gettime_monotonic(&ctl.uptime_tv);