Added pause functionality.

This commit is contained in:
pdw
2002-10-10 17:18:40 +00:00
parent 164fd7ef9f
commit 6ba321dd8e
5 changed files with 14 additions and 3 deletions

9
ui.c
View File

@@ -194,6 +194,10 @@ void analyse_data() {
hash_node_type* n = NULL;
int i;
if(options.paused == 0) {
return;
}
memset(&totals, 0, sizeof totals);
screen_data_clear();
@@ -491,7 +495,7 @@ void ui_loop() {
tick(1);
break;
case 'b':
case 'b':
options.showbars = !options.showbars;
tick(1);
break;
@@ -540,6 +544,9 @@ void ui_loop() {
: OPTION_PORTS_OFF;
// Don't tick here, otherwise we get a bogus display
break;
case 'P':
options.paused = !options.paused;
break;
}
tick(0);
}