\ \ \'\fBq\fR\': \fIQuit \fR
Exit the program
.TP 7
+\ \ \'\fBt\fR\': \fIThreads \fR
+Toggle threads display in CPUTop
+.TP 7
\ \ \'\fBr\fR\': \fIPreferences \fR
Display the preference menu for the current view, this menu helps select the column displayed (only in PerfTop view for now) and the column to sort, use 's' to sort and 'space' to toggle the view
.TP 7
int max_elements = 80;
-int toggle_threads = -1;
+int toggle_threads = 1;
int toggle_pause = -1;
int max_center_lines;
print_key(footer, "Space", "Highlight ", 0);
print_key(footer, "q", "Quit ", 0);
print_key(footer, "r", "Pref ", 0);
+ print_key(footer, "t", "Threads ", toggle_threads);
print_key(footer, "p", "Pause ", toggle_pause);
wrefresh(footer);
for (i = list_offset; i < data->process_table->len &&
nblinedisplayed < max_center_lines; i++) {
tmp = g_ptr_array_index(data->process_table, i);
+ if (tmp->pid != tmp->tid)
+ if (toggle_threads == -1)
+ continue;
if (process_selected(tmp)) {
wattron(center, COLOR_PAIR(6));
for (i = 0; i < data->process_table->len &&
nblinedisplayed < max_center_lines; i++) {
tmp = g_ptr_array_index(data->process_table, i);
+ if (tmp->pid != tmp->tid)
+ if (toggle_threads == -1)
+ continue;
if (process_selected(tmp)) {
wattron(center, COLOR_PAIR(6));
for (i = list_offset; i < data->process_table->len &&
nblinedisplayed < max_center_lines; i++) {
tmp = g_ptr_array_index(data->process_table, i);
+ if (tmp->pid != tmp->tid)
+ if (toggle_threads == -1)
+ continue;
if (process_selected(tmp)) {
wattron(center, COLOR_PAIR(6));