diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-01-13 19:22:33 +0100 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2021-01-13 19:22:33 +0100 |
commit | 5fde0e012762b07e4955306b743afcf43fe237c6 (patch) | |
tree | 9cafb88fd46fc8b9c9a59e0ce948107f1f6becd9 /Process.c | |
parent | 78b993dbb4d58aec8cb5b32f23014eeabd900f2f (diff) |
RichString_appendChr: add parameter to set attributes
Allows to set attributes when padding process fields in non-wide ncurses
mode.
Closes: #475
Diffstat (limited to 'Process.c')
-rw-r--r-- | Process.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -246,7 +246,7 @@ void Process_outputRate(RichString* str, char* buffer, size_t n, double rate, in void Process_printLeftAlignedField(RichString* str, int attr, const char* content, unsigned int width) { int c = RichString_appendnWide(str, attr, content, MINIMUM(width, strlen(content))); - RichString_appendChr(str, ' ', width + 1 - c); + RichString_appendChr(str, attr, ' ', width + 1 - c); } void Process_writeField(const Process* this, RichString* str, ProcessField field) { |