Permalink
Browse files

Handle Home and End keys in varnishstat.

This has bugged me (slightly) for ages.

Too trivial to warrant its own line(s) in test-case/u00008.vtc.
  • Loading branch information...
lkarsten committed Jan 9, 2019
1 parent e46ae71 commit 3e15c14ff6fcd009b90f5136c8c4b3265ac20f60
Showing with 12 additions and 0 deletions.
  1. +6 −0 bin/varnishstat/varnishstat_curses.c
  2. +6 −0 doc/sphinx/reference/varnishstat.rst
@@ -890,6 +890,12 @@ handle_keypress(int ch)
if (page_start + l_points < n_ptarray - 1)
page_start += l_points;
break;
case KEY_HOME:
current = 0;
break;
case KEY_END:
current = n_ptarray - 1;
break;
case 'd':
hide_unseen = 1 - hide_unseen;
rebuild = 1;
@@ -85,6 +85,12 @@ The following keys control the interactive display:
<PAGEDOWN> or <SPACE>
Navigate the counter list one page down.

<HOME>
Navigate the counter list to the top.

<END>
Navigate the counter list to the bottom.

<d>
Toggle between showing and hiding unseen counters. Unseen
counters are those that has been zero for the entire runtime

0 comments on commit 3e15c14

Please sign in to comment.