X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Futils%2Fsetup.c;h=2099418bf765d1d3017c65576e4235a05532d537;hb=6b8891f5080427c9de1288ded2e87b5a99138892;hp=dbcd2a3016fe033555dd460ee20e3a99d3857ade;hpb=4011c90f45d639b16aa76d626884bac9d9a587ba;p=citadel.git diff --git a/citadel/utils/setup.c b/citadel/utils/setup.c index dbcd2a301..2099418bf 100644 --- a/citadel/utils/setup.c +++ b/citadel/utils/setup.c @@ -2,13 +2,9 @@ // // Copyright (c) 1987-2022 by the citadel.org team // -// This program is open source software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License version 3. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. +// This program is open source software. Use, duplication, or disclosure +// is subject to the terms of the GNU General Public License, version 3. +// The program is distributed without any warranty, expressed or implied. #define SHOW_ME_VAPPEND_PRINTF #include @@ -236,7 +232,7 @@ int yesno(const char *question, int default_value) { char buf[SIZ]; do { - printf("%s\n%s [%s] --> ", question, _("Yes/No"), ( default_value ? _("Yes") : _("No") )); + printf("\033[31m\033[32m%s\n%s [\033[33m%s\033[32m]\033[0m --> ", question, _("Yes/No"), ( default_value ? _("Yes") : _("No") )); if (fgets(buf, sizeof buf, stdin)) { answer = tolower(buf[0]); if ((buf[0]==0) || (buf[0]==13) || (buf[0]==10)) { @@ -524,8 +520,7 @@ void set_bool_val(int msgpos, int *ip, char *DefValue) { } -void set_str_val(int msgpos, char *Target, char *DefValue) -{ +void set_str_val(int msgpos, char *Target, char *DefValue) { strprompt(setup_titles[msgpos], setup_text[msgpos], Target,