Every time the user switches to a different view, the blue line is reset
to the first line and he can use the enter key to enter in the process
details view (and reuse enter to switch back).
Signed-off-by: Julien Desfossez <julien.desfossez@efficios.com>
int toggle_threads = -1;
int toggle_pause = -1;
-int toggle_tree = -1;
int max_center_lines;
if (current_line == selected_line) {
selected_process = tmp;
+ selected_tid = tmp->tid;
+ selected_comm = tmp->comm;
wattron(center, COLOR_PAIR(5));
mvwhline(center, current_line + header_offset, 1, ' ', COLS-3);
}
break;
case KEY_F(1):
- toggle_tree *= -1;
current_view = cpu;
+ selected_line = 0;
update_current_view();
break;
case KEY_F(2):
current_view = cpu;
+ selected_line = 0;
update_current_view();
break;
case KEY_F(3):
current_view = perf;
- toggle_tree = -1;
+ selected_line = 0;
update_current_view();
break;
case KEY_F(4):
current_view = iostream;
- toggle_tree = -1;
+ selected_line = 0;
update_current_view();
break;
case KEY_F(10):