From: Vincent Bernat Date: Sat, 4 May 2019 06:58:38 +0000 (+0200) Subject: client: use bold instead of a color for command completions X-Git-Tag: 1.0.4~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fbb30189306c6fdf4cad5ad46ec440f458420555;p=thirdparty%2Flldpd.git client: use bold instead of a color for command completions The color needs to be readable on both light and dark backgrounds and should be readable on most themes. 1;35m would be a fit, but let's stay safe by just using bold. Fix #326 --- diff --git a/src/client/commands.c b/src/client/commands.c index beedbf1a..b96b77f8 100644 --- a/src/client/commands.c +++ b/src/client/commands.c @@ -504,7 +504,7 @@ end: if (!complete) { snprintf(fmt, sizeof(fmt), "%s%%%ds%s %%s\n", - "\033[1;30m", (int)maxl, "\033[0m"); + "\033[1m", (int)maxl, "\033[0m"); fprintf(stderr, fmt, cword->word ? cword->word : "WORD", cword->doc ? cword->doc : "...");