diff options
author | Paul Warren <pdw@ex-parrot.com> | 2021-12-27 18:21:55 +0000 |
---|---|---|
committer | Paul Warren <pdw@ex-parrot.com> | 2021-12-27 18:21:55 +0000 |
commit | 8df95fd01fdf88fd42ab3a48c33ef8ab52416585 (patch) | |
tree | f76c00ef5aa2f12a05f75d64bf11805f6ea42cbd | |
parent | 8d76ef06d225c4d72db544b54ea1ef1a0e077967 (diff) |
Option to reset scale during use.origin/reset-scale
-rw-r--r-- | ui.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -44,8 +44,8 @@ " S - toggle show source port l - set screen filter\n"\ " D - toggle show destination port L - lin/log scales\n"\ " p - toggle port display ! - shell command\n"\ -" q - quit\n"\ -"Sorting:\n"\ +" r - reset scale\n"\ +"Sorting: q - quit\n"\ " 1/2/3 - sort by 1st/2nd/3rd column\n"\ " < - sort by source name\n"\ " > - sort by dest name\n"\ @@ -784,6 +784,11 @@ void ui_loop() { showhelp(options.log_scale ? "Logarithmic scale" : "Linear scale"); ui_print(); break; + case 'r': + rateidx = 0; + rateidx_init = 0; + ui_print(); + break; case KEY_CLEAR: case 12: /* ^L */ wrefresh(curscr); |