mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-09 21:14:02 +00:00
Add configure flags to moderate the ClueCon nags
The default remains the same: we show the huge ClueCon nag banner on startup and in fs_cli. However, if you pass --disable-huge-cluecon-nag, no banner will be shown. If you pass --enable-modest-cluecon-nag, a modest text-based ClueCon reminder will be shown instead.
This commit is contained in:
1 parent
53c24a93e0
commit
fb2ffbafe2
7 files changed
+55
-17
No files matched your search
+5
-5
@@ -931,17 +931,17 @@ static void print_banner(FILE *stream)
|
||||
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
|
||||
fprintf(stream,
|
||||
"%s%s%s%s%s%s\n%s\n",
|
||||
#elif SHOW_HUGE_CLUECON_NAG
|
||||
fprintf(stream, "%s%s%s%s%s%s\n%s\n",
|
||||
ESL_SEQ_DEFAULT_COLOR,
|
||||
ESL_SEQ_FYELLOW, ESL_SEQ_BBLUE,
|
||||
banner,
|
||||
cc, ESL_SEQ_DEFAULT_COLOR, inf);
|
||||
|
||||
fprintf(stream, "%s", output_text_color);
|
||||
#else
|
||||
fprintf(stream, "%s%s%s\n%s\n", ESL_SEQ_DEFAULT_COLOR, banner, cc, inf);
|
||||
fprintf(stream, "%s", output_text_color);
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user