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_threads = -1;
int toggle_pause = -1;
if (current_line == selected_line) {
selected_process = tmp;
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);
}
wattron(center, COLOR_PAIR(5));
mvwhline(center, current_line + header_offset, 1, ' ', COLS-3);
}
update_current_view();
break;
case KEY_F(2):
current_view = cpu;
update_current_view();
break;
case KEY_F(2):
current_view = cpu;
update_current_view();
break;
case KEY_F(3):
current_view = perf;
update_current_view();
break;
case KEY_F(3):
current_view = perf;
update_current_view();
break;
case KEY_F(4):
current_view = iostream;
update_current_view();
break;
case KEY_F(4):
current_view = iostream;
update_current_view();
break;
case KEY_F(10):
update_current_view();
break;
case KEY_F(10):