const char *setup_titles[eMaxQuestions];
const char *setup_text[eMaxQuestions];
+char *program_title;
void SetTitles(void)
{
break;
case UI_DIALOG:
- snprintf(buf, sizeof buf, "exec %s %s --yesno '%s' 15 75",
+ snprintf(buf, sizeof buf, "exec %s --backtitle '%s' %s --yesno '%s' 15 75",
getenv("CTDL_DIALOG"),
+ program_title,
( default_value ? "" : "--defaultno" ),
question);
i = system(buf);
break;
case UI_DIALOG:
- snprintf(buf, sizeof buf, "exec %s --msgbox '%s' 19 72",
+ snprintf(buf, sizeof buf, "exec %s --backtitle '%s' --msgbox '%s' 19 72",
getenv("CTDL_DIALOG"),
+ program_title,
msgtext);
int rv = system(buf);
if (rv != 0) {
case UI_DIALOG:
if (curr == 0) {
- snprintf(buf, sizeof buf, "exec %s --gauge '%s' 7 72 0",
+ snprintf(buf, sizeof buf, "exec %s --backtitle '%s' --gauge '%s' 7 72 0",
getenv("CTDL_DIALOG"),
+ program_title,
text);
fp = popen(buf, "w");
if (fp != NULL) {
case UI_DIALOG:
CtdlMakeTempFileName(dialog_result, sizeof dialog_result);
- snprintf(buf, sizeof buf, "exec %s --nocancel --inputbox '%s' 19 72 '%s' 2>%s",
+ snprintf(buf, sizeof buf, "exec %s --backtitle '%s' --nocancel --inputbox '%s' 19 72 '%s' 2>%s",
getenv("CTDL_DIALOG"),
+ program_title,
prompt_text,
Target,
dialog_result);
gid_t gid;
char *activity = NULL;
+ /* Keep a mild groove on */
+ program_title = _("Citadel setup program");
+
/* set an invalid setup type */
setup_type = (-1);
/* _("Citadel Setup"), */
if (setup_type == UI_TEXT) {
- printf("\n\n\n *** %s ***\n\n", _("Citadel setup program"));
+ printf("\n\n\n *** %s ***\n\n", program_title);
}
if (setup_type == UI_DIALOG) {