diff options
author | Valmiky Arquissandas <valmiky.arquissandas@ist.utl.pt> | 2014-10-14 02:30:17 +0100 |
---|---|---|
committer | Valmiky Arquissandas <valmiky.arquissandas@ist.utl.pt> | 2014-10-14 02:30:17 +0100 |
commit | 64e0d9452da6f8f4daa000fbeacbea9e36d162aa (patch) | |
tree | bc4bca00b5ad47157e2a19995eb8284f73296285 /Process.c | |
parent | 0e8a02367ec7ca8f52b10de70938dfd07faed3ab (diff) |
Added new color for 'D' state.
Diffstat (limited to 'Process.c')
-rw-r--r-- | Process.c | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -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: { |