MCPcopy Create free account
hub / github.com/antirez/ds4 / print_generated_token

Function print_generated_token

ds4_cli.c:403–410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401static void token_printer_set_grey(token_printer *p) {
402 if (p->use_color && !p->color_open) {
403 fputs("\x1b[90m", p->fp);
404 p->color_open = true;
405 }
406}
407
408static void token_printer_reset_color(token_printer *p) {
409 if (p->use_color && p->color_open) {
410 fputs("\x1b[0m", p->fp);
411 p->color_open = false;
412 }
413}

Callers

nothing calls this directly

Calls 2

ds4_token_textFunction · 0.85
token_printer_write_textFunction · 0.85

Tested by

no test coverage detected