From: Florian Forster Date: Wed, 19 Nov 2014 17:08:14 +0000 (+0100) Subject: src/oping.c: Switch graphs when pressing "g". X-Git-Tag: liboping-1.8.0~5 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=aac3188c7af2db1a9483e03ceb31c94f174d5f9f;p=liboping.git src/oping.c: Switch graphs when pressing "g". --- diff --git a/src/oping.c b/src/oping.c index cce4379..79afb5f 100644 --- a/src/oping.c +++ b/src/oping.c @@ -1268,6 +1268,13 @@ static int check_resize (pingobj_t *ping) /* {{{ */ break; else if (key == KEY_RESIZE) need_resize = 1; + else if (key == 'g') + { + if (opt_show_graph == 3) + opt_show_graph = 1; + else if (opt_show_graph > 0) + opt_show_graph++; + } } if (need_resize)