mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
Added new color for 'D' state.
This commit is contained in:
13
Process.c
13
Process.c
@ -533,9 +533,16 @@ static void Process_writeField(Process* this, RichString* str, ProcessField fiel
|
||||
}
|
||||
case STATE: {
|
||||
snprintf(buffer, n, "%c ", this->state);
|
||||
attr = this->state == 'R'
|
||||
? CRT_colors[PROCESS_R_STATE]
|
||||
: attr;
|
||||
switch(this->state) {
|
||||
case 'R':
|
||||
attr = CRT_colors[PROCESS_R_STATE];
|
||||
break;
|
||||
case 'D':
|
||||
attr = CRT_colors[PROCESS_D_STATE];
|
||||
break;
|
||||
default:
|
||||
attr = this->state;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case PRIORITY: {
|
||||
|
Reference in New Issue
Block a user