Lines Matching refs:color
496 enum shell_vt100_color color) in z_shell_vt100_color_set() argument
502 if (color >= VT100_COLOR_END) { in z_shell_vt100_color_set()
506 if (sh->ctx->vt100_ctx.col.col == color) { in z_shell_vt100_color_set()
510 sh->ctx->vt100_ctx.col.col = color; in z_shell_vt100_color_set()
512 if (color != SHELL_NORMAL) { in z_shell_vt100_color_set()
513 Z_SHELL_VT100_CMD(sh, "\e[1;3%dm", color); in z_shell_vt100_color_set()
520 const struct shell_vt100_colors *color) in z_shell_vt100_colors_restore() argument
526 z_shell_vt100_color_set(sh, color->col); in z_shell_vt100_colors_restore()
527 vt100_bgcolor_set(sh, color->bgcol); in z_shell_vt100_colors_restore()
530 void z_shell_vfprintf(const struct shell *sh, enum shell_vt100_color color, in z_shell_vfprintf() argument
535 (color != sh->ctx->vt100_ctx.col.col)) { in z_shell_vfprintf()
539 z_shell_vt100_color_set(sh, color); in z_shell_vfprintf()
550 enum shell_vt100_color color, in z_shell_fprintf() argument
563 z_shell_vfprintf(sh, color, fmt, args); in z_shell_fprintf()