Commit ad398ddb authored by Lasse Karstensen's avatar Lasse Karstensen Committed by Dridi Boukelmoune

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.
parent d7be5334
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment