Home
last modified time | relevance | path

Searched refs:bold (Results 1 – 5 of 5) sorted by relevance

/redis-3.2.3/deps/linenoise/
H A Dexample.c14 char *hints(const char *buf, int *color, int *bold) { in hints() argument
17 *bold = 0; in hints()
H A Dlinenoise.h52 typedef char*(linenoiseHintsCallback)(const char *, int *color, int *bold);
H A DREADME.markdown170 to the color the user is typing, and can also be bold.
182 char *hints(const char *buf, int *color, int *bold) {
185 *bold = 0;
205 can be provided together with a `bold` attribute. If no color is set, the
206 current terminal foreground color is used. If no bold attribute is set,
207 non-bold text is printed.
H A Dlinenoise.c479 int color = -1, bold = 0; in refreshShowHints() local
480 char *hint = hintsCallback(l->buf,&color,&bold); in refreshShowHints()
485 if (bold == 1 && color == -1) color = 37; in refreshShowHints()
486 if (color != -1 || bold != 0) in refreshShowHints()
487 snprintf(seq,64,"\033[%d;%d;49m",bold,color); in refreshShowHints()
490 if (color != -1 || bold != 0) in refreshShowHints()
/redis-3.2.3/src/
H A Dredis-cli.c423 static char *hintsCallback(const char *buf, int *color, int *bold) { in hintsCallback() argument
442 *bold = 0; in hintsCallback()
628 int bold = strstr(color,"bold") != NULL; in sdscatcolor() local
639 o = sdscatfmt(o,"\033[%i;%i;49m",bold,ccode); in sdscatcolor()