Lines Matching +full:video +full:- +full:related

1 /*-
2 * Copyright (c) 2013-2018 Devin Teske <dteske@FreeBSD.org>
80 * changes in terminal size in-between calls.
97 maxsize->ws_row = TTY_DEFAULT_ROWS; in tty_maxsize_update()
98 maxsize->ws_col = TTY_DEFAULT_COLS; in tty_maxsize_update()
107 * the active video resolution of the X11 environment.
110 * `maxsize'. Since video resolution changes are less common and more obtrusive
131 snprintf(cmdbuf, LINE_MAX, "%s --print-maxsize 2>&1", dialog); in x11_maxsize_update()
145 /* Check for X11-related errors */ in x11_maxsize_update()
160 maxsize->ws_row = (unsigned short)strtonum( in x11_maxsize_update()
162 maxsize->ws_col = (unsigned short)strtonum( in x11_maxsize_update()
177 return (maxsize->ws_row); in dialog_maxrows()
194 return (maxsize->ws_col - 2); in dialog_maxcols()
196 return (maxsize->ws_col); in dialog_maxcols()
198 return (maxsize->ws_col); in dialog_maxcols()
213 return (maxsize->ws_col); in tty_maxcols()
217 * Spawn an [X]dialog(1) `--gauge' box with a `--prompt' value of init_prompt.
220 * (data written to the file descriptor is seen as standard-in by the spawned
236 int stdin_pipe[2] = { -1, -1 }; in dialog_spawn_gauge()
248 height -= use_shadow ? 5 : 4; in dialog_spawn_gauge()
260 sprintf(dargv[n++], "--title"); in dialog_spawn_gauge()
265 sprintf(dargv[n++], "--title"); in dialog_spawn_gauge()
273 sprintf(dargv[n++], "--backtitle"); in dialog_spawn_gauge()
279 sprintf(dargv[n++], "--colors"); in dialog_spawn_gauge()
284 sprintf(dargv[n++], "--left"); in dialog_spawn_gauge()
287 * NOTE: Xdialog(1)'s `--wrap' appears to be broken for the in dialog_spawn_gauge()
288 * `--gauge' widget prompt-updates. Add it anyway (in-case it in dialog_spawn_gauge()
293 sprintf(dargv[n++], "--wrap"); in dialog_spawn_gauge()
297 sprintf(dargv[n++], "--gauge"); in dialog_spawn_gauge()
317 else if (*dargv[i] == '-' && *(dargv[i] + 1) == '-') in dialog_spawn_gauge()
338 * newlines and escaped-newlines into account.
414 /* If second backslash, count as a single-char */ in dialog_prompt_longestline()
489 * dwidth - 4). Also discounts dialog(1) color escape codes if enabled (via
521 /* If second backslash, count as a single-char */ in dialog_prompt_wrappedlines()
544 * Work backward to find the first whitespace on-which in dialog_prompt_wrappedlines()
550 cp--; in dialog_prompt_wrappedlines()
551 n--; in dialog_prompt_wrappedlines()
587 * if you plan to combine multiple strings into a single prompt text. In lead-
610 while (--cp >= prompt) { in dialog_prompt_nlstate()
614 * get to an escaped newline first, this prompt ends in an un- in dialog_prompt_nlstate()
619 else if (*cp == 'n' && --cp > prompt && *cp == '\\') in dialog_prompt_nlstate()