set_window_title(pref_panel_window, "Process Detail Preferences ");
wattron(pref_panel_window, A_BOLD);
mvwprintw(pref_panel_window, size + 1, 1,
- " 's' to sort");
+ " 's' : sort, space : toggle");
wattroff(pref_panel_window, A_BOLD);
if (*line_selected > (size - 1))
set_window_title(pref_panel_window, "IOTop Preferences ");
wattron(pref_panel_window, A_BOLD);
mvwprintw(pref_panel_window, size + 1, 1,
- " 's' to sort");
+ " 's' : sort, space : toggle");
wattroff(pref_panel_window, A_BOLD);
if (*line_selected > (size - 1))
set_window_title(pref_panel_window, "CPUTop Preferences ");
wattron(pref_panel_window, A_BOLD);
mvwprintw(pref_panel_window, size + 1, 1,
- " 's' to sort");
+ " 's' : sort, space : toggle");
wattroff(pref_panel_window, A_BOLD);
if (*line_selected > (size - 1))
set_window_title(pref_panel_window, "Perf Preferences ");
wattron(pref_panel_window, A_BOLD);
mvwprintw(pref_panel_window, g_hash_table_size(global_perf_liszt) + 1, 1,
- " 's' to sort");
+ " 's' : sort, space : toggle");
wattroff(pref_panel_window, A_BOLD);
if (toggle_sort == 1) {
break;
case 13: /* FIXME : KEY_ENTER ?? */
+ if (pref_panel_visible)
+ break;
if (current_view != process_details) {
previous_view = current_view;
current_view = process_details;
case 'P':
toggle_pref_panel();
break;
+ /* ESCAPE, but slow to process, don't know why */
+ case 27:
+ if (pref_panel_visible)
+ toggle_pref_panel();
+ else if (current_view == process_details) {
+ current_view = previous_view;
+ previous_view = process_details;
+ }
+ update_current_view();
+ break;
default:
if (data)
update_current_view();