summaryrefslogtreecommitdiffstats
path: root/Process.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-01-13 19:22:33 +0100
committerChristian Göttsche <cgzones@googlemail.com>2021-01-13 19:22:33 +0100
commit5fde0e012762b07e4955306b743afcf43fe237c6 (patch)
tree9cafb88fd46fc8b9c9a59e0ce948107f1f6becd9 /Process.c
parent78b993dbb4d58aec8cb5b32f23014eeabd900f2f (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Process.c b/Process.c
index a78fd235..152fbe68 100644
--- a/Process.c
+++ b/Process.c
@@ -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) {

© 2014-2024 Faster IT GmbH | imprint | privacy policy