Added new color for 'D' state.

This commit is contained in:
Valmiky Arquissandas
2014-10-14 02:30:17 +01:00
parent 0e8a02367e
commit 64e0d9452d
3 changed files with 18 additions and 3 deletions

View File

@ -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: {