]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
client: use bold instead of a color for command completions
authorVincent Bernat <vincent@bernat.ch>
Sat, 4 May 2019 06:58:38 +0000 (08:58 +0200)
committerVincent Bernat <vincent@bernat.ch>
Sat, 4 May 2019 06:58:38 +0000 (08:58 +0200)
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

src/client/commands.c

index beedbf1a96faa48ff154f3dac865d673d83dc27c..b96b77f8dae011f21919f52250f6aa98412e4c54 100644 (file)
@@ -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  : "...");