FS-4566 --resolve Show fs_cli banner in color(windows)
This commit is contained in:
parent
45baa4459a
commit
c5e33e7951
|
@ -926,7 +926,14 @@ static void print_banner(FILE *stream)
|
||||||
#include <cc.h>
|
#include <cc.h>
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
fprintf(stream, "%s%s\n%s\n", banner, cc, inf);
|
/* Print banner in yellow with blue background */
|
||||||
|
SetConsoleTextAttribute(hStdout, ESL_SEQ_FYELLOW | BACKGROUND_BLUE);
|
||||||
|
WriteFile(hStdout, banner, (DWORD) strlen(banner), NULL, NULL);
|
||||||
|
WriteFile(hStdout, cc, (DWORD) strlen(cc), NULL, NULL);
|
||||||
|
SetConsoleTextAttribute(hStdout, wOldColorAttrs);
|
||||||
|
|
||||||
|
/* Print the rest info in default colors */
|
||||||
|
fprintf(stream, "\n%s\n", inf);
|
||||||
#else
|
#else
|
||||||
fprintf(stream,
|
fprintf(stream,
|
||||||
"%s%s%s%s%s%s\n%s\n",
|
"%s%s%s%s%s%s\n%s\n",
|
||||||
|
|
Loading…
Reference in New Issue