Lines Matching refs:opt
46 static void custom_text(struct options *opt, char *text, char *buf);
157 struct options opt;
178 parsed = parseargs(argc, argv, &conf, &opt);
184 if (opt.mandatory_dialog && opt.dialogbuilder == NULL)
187 if (opt.dialogbuilder == NULL && argc > 0)
191 if (opt.mandatory_dialog == false && opt.clearscreen == false &&
192 opt.savethemefile == NULL && opt.dialogbuilder == NULL) {
201 if (opt.dialogbuilder != NULL) {
207 if (opt.dialogbuilder != textbox_builder)
208 custom_text(&opt, argv[0], text);
218 if (opt.screen_mode != NULL) {
219 opt.screen_mode = tigetstr(opt.screen_mode);
220 if (opt.screen_mode != NULL &&
221 opt.screen_mode != (char*)-1) {
222 tputs(opt.screen_mode, 1, putchar);
232 if ((int)opt.theme >= 0)
233 setdeftheme(opt.theme);
234 if (opt.loadthemefile != NULL)
235 loadtheme(opt.loadthemefile, false);
236 if (opt.bikeshed)
238 if (opt.savethemefile != NULL)
239 savetheme(opt.savethemefile);
242 if (opt.dialogbuilder == NULL)
244 if (opt.backtitle != NULL)
245 if (bsddialog_backtitle(&conf, opt.backtitle))
247 retval = opt.dialogbuilder(&conf, text, rows, cols, argc, argv,
248 &opt);
253 dprintf(opt.output_fd, "DialogSize: %d, %d\n",
255 if (opt.clearscreen)
257 opt.clearscreen = false;
274 if (opt.clearscreen)
283 void custom_text(struct options *opt, char *text, char *buf)
294 crwrap = opt->cr_wrap;
296 if (opt->text_unchanged) {
314 if (opt->tab_escape) {
328 buf[j] = opt->text_unchanged ? '\t' : ' ';