Home
last modified time | relevance | path

Searched refs:width (Results 1 – 25 of 39) sorted by relevance

12

/busybox-1.35.0/scripts/kconfig/lxdialog/
Dyesno.c27 static void print_buttons(WINDOW * dialog, int height, int width, int selected) in print_buttons() argument
29 int x = width / 2 - 10; in print_buttons()
42 int dialog_yesno(const char *title, const char *prompt, int height, int width) in dialog_yesno() argument
48 x = (COLS - width) / 2; in dialog_yesno()
51 draw_shadow(stdscr, y, x, height, width); in dialog_yesno()
53 dialog = newwin(height, width, y, x); in dialog_yesno()
56 draw_box(dialog, 0, 0, height, width, dialog_attr, border_attr); in dialog_yesno()
59 for (i = 0; i < width - 2; i++) in dialog_yesno()
64 print_title(dialog, title, width); in dialog_yesno()
67 print_autowrap(dialog, prompt, width - 2, 1, 3); in dialog_yesno()
[all …]
Dmsgbox.c28 int dialog_msgbox(const char *title, const char *prompt, int height, int width, in dialog_msgbox() argument
35 x = (COLS - width) / 2; in dialog_msgbox()
38 draw_shadow(stdscr, y, x, height, width); in dialog_msgbox()
40 dialog = newwin(height, width, y, x); in dialog_msgbox()
43 draw_box(dialog, 0, 0, height, width, dialog_attr, border_attr); in dialog_msgbox()
45 print_title(dialog, title, width); in dialog_msgbox()
48 print_autowrap(dialog, prompt, width - 2, 1, 2); in dialog_msgbox()
53 for (i = 0; i < width - 2; i++) in dialog_msgbox()
58 print_button(dialog, " Ok ", height - 2, width / 2 - 4, TRUE); in dialog_msgbox()
Dinputbox.c29 static void print_buttons(WINDOW * dialog, int height, int width, int selected) in print_buttons() argument
31 int x = width / 2 - 11; in print_buttons()
44 int dialog_inputbox(const char *title, const char *prompt, int height, int width, in dialog_inputbox() argument
53 x = (COLS - width) / 2; in dialog_inputbox()
56 draw_shadow(stdscr, y, x, height, width); in dialog_inputbox()
58 dialog = newwin(height, width, y, x); in dialog_inputbox()
61 draw_box(dialog, 0, 0, height, width, dialog_attr, border_attr); in dialog_inputbox()
64 for (i = 0; i < width - 2; i++) in dialog_inputbox()
69 print_title(dialog, title, width); in dialog_inputbox()
72 print_autowrap(dialog, prompt, width - 2, 1, 3); in dialog_inputbox()
[all …]
Dtextbox.c25 static void print_page(WINDOW * win, int height, int width);
26 static void print_line(WINDOW * win, int row, int width);
28 static void print_position(WINDOW * win, int height, int width);
37 int dialog_textbox(const char *title, const char *file, int height, int width) in dialog_textbox() argument
77 x = (COLS - width) / 2; in dialog_textbox()
80 draw_shadow(stdscr, y, x, height, width); in dialog_textbox()
82 dialog = newwin(height, width, y, x); in dialog_textbox()
86 text = subwin(dialog, height - 4, width - 2, y + 1, x + 1); in dialog_textbox()
93 draw_box(dialog, 0, 0, height, width, dialog_attr, border_attr); in dialog_textbox()
97 for (i = 0; i < width - 2; i++) in dialog_textbox()
[all …]
Ddialog.h143 void attr_clear(WINDOW * win, int height, int width, chtype attr);
146 void print_autowrap(WINDOW * win, const char *prompt, int width, int y, int x);
148 void print_title(WINDOW *dialog, const char *title, int width);
149 void draw_box(WINDOW * win, int y, int x, int height, int width, chtype box,
151 void draw_shadow(WINDOW * win, int y, int x, int height, int width);
154 int dialog_yesno(const char *title, const char *prompt, int height, int width);
156 int width, int pause);
157 int dialog_textbox(const char *title, const char *file, int height, int width);
158 int dialog_menu(const char *title, const char *prompt, int height, int width,
162 int width, int list_height, int item_no,
[all …]
Dutil.c107 void attr_clear(WINDOW * win, int height, int width, chtype attr) in attr_clear() argument
114 for (j = 0; j < width; j++) in attr_clear()
183 void print_title(WINDOW *dialog, const char *title, int width) in print_title() argument
186 int tlen = MIN(width - 2, strlen(title)); in print_title()
188 mvwaddch(dialog, 0, (width - tlen) / 2 - 1, ' '); in print_title()
189 mvwaddnstr(dialog, 0, (width - tlen)/2, title, tlen); in print_title()
200 void print_autowrap(WINDOW * win, const char *prompt, int width, int y, int x) in print_autowrap() argument
218 if (prompt_len <= width - x * 2) { /* If prompt is short */ in print_autowrap()
219 wmove(win, y, (width - prompt_len) / 2); in print_autowrap()
234 room = width - cur_x; in print_autowrap()
[all …]
Dchecklist.c95 static void print_buttons(WINDOW * dialog, int height, int width, int selected) in print_buttons() argument
97 int x = width / 2 - 11; in print_buttons()
112 int width, int list_height, int item_no, in dialog_checklist() argument
140 x = (COLS - width) / 2; in dialog_checklist()
143 draw_shadow(stdscr, y, x, height, width); in dialog_checklist()
145 dialog = newwin(height, width, y, x); in dialog_checklist()
148 draw_box(dialog, 0, 0, height, width, dialog_attr, border_attr); in dialog_checklist()
151 for (i = 0; i < width - 2; i++) in dialog_checklist()
156 print_title(dialog, title, width); in dialog_checklist()
159 print_autowrap(dialog, prompt, width - 2, 1, 3); in dialog_checklist()
[all …]
Dmenubox.c154 static void print_buttons(WINDOW * win, int height, int width, int selected) in print_buttons() argument
156 int x = width / 2 - 16; in print_buttons()
181 int dialog_menu(const char *title, const char *prompt, int height, int width, in dialog_menu() argument
194 x = (COLS - width) / 2; in dialog_menu()
197 draw_shadow(stdscr, y, x, height, width); in dialog_menu()
199 dialog = newwin(height, width, y, x); in dialog_menu()
202 draw_box(dialog, 0, 0, height, width, dialog_attr, border_attr); in dialog_menu()
205 for (i = 0; i < width - 2; i++) in dialog_menu()
211 print_title(dialog, title, width); in dialog_menu()
214 print_autowrap(dialog, prompt, width - 2, 1, 3); in dialog_menu()
[all …]
/busybox-1.35.0/procps/
Dwatch.c57 unsigned width, new_width; in watch_main() local
79 width = (unsigned)-1; // make sure first time new_width != width in watch_main()
90 if (new_width != width) { in watch_main()
91 width = new_width; in watch_main()
97 (int)width, cmd in watch_main()
100 if (time_len < width) { in watch_main()
102 header + width - time_len, in watch_main()
Dpstree.c75 unsigned *width; member
98 G.width = xrealloc(G.width, G.capacity * sizeof(G.width[0])); in ensure_buffer_capacity()
255 i = G.width[lvl] + 1; in dump_tree()
295 G.width[level] = comm_len + G.cur_x - offset + add; in dump_tree()
412 free(G.width); in pstree_main()
Dps.c170 uint16_t width; member
465 new->width = strlen(new->header); in parse_o()
477 int width = 0; in alloc_line_buffer() local
483 width += out[i].width + 1; /* "FIELD " */ in alloc_line_buffer()
484 if ((int)(width - terminal_width) > 0) { in alloc_line_buffer()
495 buffer = xmalloc(width + 1); /* for trailing \0 */ in alloc_line_buffer()
513 p += sprintf(p, "%-*s ", op->width, op->header); in format_header()
526 out[i].f(p, out[i].width, ps); in format_process()
536 len = out[i].width - len + 1; in format_process()
Dps.posix94 -o user=, the field width shall be at least as wide as the default
99 ID, if it can be obtained and the field width permits, or a dec-
103 user ID, if it can be obtained and the field width permits, or a
107 group ID, if it can be obtained and the field width permits, or
111 group ID, if it can be obtained and the field width permits, or
143 tion may truncate this value to the field width; it is implemen-
/busybox-1.35.0/miscutils/
Ddevmem.c36 unsigned width = 8 * sizeof(int); in devmem_main() local
54 width = xatou(argv[2]); in devmem_main()
64 width = strchrnul(bhwl, (argv[2][0] | 0x20)) - bhwl; in devmem_main()
65 width = sizes[width]; in devmem_main()
80 if (offset_in_page + width > page_size) { in devmem_main()
99 switch (width) { in devmem_main()
119 printf("0x%0*llX\n", (width >> 2), (unsigned long long)read_result); in devmem_main()
121 switch (width) { in devmem_main()
Dfbsplash.c322 unsigned width, height; in fb_drawprogressbar() local
327 width = G.nbar_width - 1; in fb_drawprogressbar()
329 if ((int)(height | width) < 0) in fb_drawprogressbar()
337 width -= 2; in fb_drawprogressbar()
339 if ((int)(height | width) < 0) in fb_drawprogressbar()
347 pos_x += (unsigned)(width * percent) / 100; in fb_drawprogressbar()
367 left_x + width, top_y + height, in fb_drawprogressbar()
380 unsigned i, j, width, height, line_size; in fb_drawimage() local
421 width = w; /* w is on stack, width may be in register */ in fb_drawimage()
427 line_size = width*3; in fb_drawimage()
[all …]
Dconspy.c75 unsigned width; member
91 G.width = G.height = UINT_MAX; \
183 if (y >= G.height || x >= G.width) in screen_read_close()
293 if (tty_col >= G.width) in screen_dump()
317 if (cx < G.width && cy < G.height) { in curmove()
430 i = G.width; in conspy_main()
432 get_terminal_width_height(G.kbd_fd, &G.width, &G.height); in conspy_main()
434 int nx = G.remote.cursor_x - G.width + 1; in conspy_main()
460 if (i != G.width || j != G.height) { in conspy_main()
477 if (jx < G.width && DATA(data) != DATA(old)) { in conspy_main()
Dless.c200 unsigned width; member
250 #define width (G.width ) macro
324 printf(HIGHLIGHT"%.*s"NORMAL, width - 1, str); in print_statusline()
343 int w = width; in re_wrap()
470 int w = width; in read_lines()
807 char buf[width+1]; in print_found()
866 char buf[width+1]; in print_ascii()
1201 if (i >= width - sz - 1) in less_gets()
1896 …IF_FEATURE_LESS_ASK_TERMINAL(G.winsize_err =) get_terminal_width_height(tty_fd, &width, &max_displ… in less_main()
1898 if (width < 20 || max_displayed_line < 3) in less_main()
[all …]
/busybox-1.35.0/coreutils/
Dseq.c41 unsigned width; in seq_main() local
78 width = 0; in seq_main()
84 if (width < w) in seq_main()
85 width = w; in seq_main()
99 width += frac_part + 1; in seq_main()
102 width = 0; in seq_main()
108 if (printf("%s%0*.*f", sep, width, frac_part, v) < 0) in seq_main()
Dnl.c63 ns.width = 6; in nl_main()
68 &ns.width, &ns.sep, &ns.start, &ns.inc, &opt_b); in nl_main()
71 ns.empty_str = xasprintf("%*s", ns.width + (int)strlen(ns.sep), ""); in nl_main()
Dfold.c79 unsigned width; in fold_main() local
100 width = xatou_range(w_opt, 1, 10000); in fold_main()
130 if (column <= width || offset_out == 0) { in fold_main()
/busybox-1.35.0/libbb/
Dunicode.c29 size_t width; in reinit_unicode() local
46 width = unicode_strlen(unicode_0x394); in reinit_unicode()
47 unicode_status = (width == 1 ? UNICODE_ON : UNICODE_OFF); in reinit_unicode()
998 size_t width = mbstowcs(NULL, string, INT_MAX); in unicode_strlen() local
999 if (width == (size_t)-1L) in unicode_strlen()
1001 return width; in unicode_strlen()
1011 …FAST_FUNC unicode_conv_to_printable2(uni_stat_t *stats, const char *src, unsigned width, int flags) in unicode_conv_to_printable2() argument
1021 d = dst = xmalloc(width + 1); in unicode_conv_to_printable2()
1022 while ((int)--width >= 0) { in unicode_conv_to_printable2()
1027 while ((int)--width >= 0); in unicode_conv_to_printable2()
[all …]
Dutmp.c21 unsigned width; in write_new_utmp() local
37 width = sizeof(utent.ut_id); in write_new_utmp()
42 width--; in write_new_utmp()
46 strncpy(id, tty_name, width); in write_new_utmp()
Dxfuncs.c265 int FAST_FUNC get_terminal_width_height(int fd, unsigned *width, unsigned *height) in get_terminal_width_height() argument
291 if (width) in get_terminal_width_height()
292 *width = wh_helper(win.ws_col, 80, "COLUMNS", &err); in get_terminal_width_height()
301 unsigned width; in get_terminal_width() local
302 get_terminal_width_height(fd, &width, NULL); in get_terminal_width()
303 return width; in get_terminal_width()
Dprint_numbered_lines.c25 printf("%*u%s", ns->width, N, ns->sep); in print_numbered_lines()
/busybox-1.35.0/console-tools/
Dloadfont.c66 unsigned width, height; member
124 unsigned int width; /* charsize = height * ((width + 7) / 8) */ member
138 static void do_loadfont(int fd, unsigned char *inbuf, int height, int width, int charsize, int font… in do_loadfont() argument
141 int charwidth = 32 * ((width+7)/8); in do_loadfont()
144 if (height < 1 || height > 32 || width < 1 || width > 32) in do_loadfont()
145 bb_error_msg_and_die("bad character size %dx%d", height, width); in do_loadfont()
155 cfo.width = width; in do_loadfont()
273 int width = 8; in do_load() local
299 width = psf2h(buffer)->width; in do_load()
326 do_loadfont(fd, font, height, width, charsize, fontsize); in do_load()
/busybox-1.35.0/scripts/kconfig/
Dqconf.cc312 void ConfigItem::paintCell(QPainter* p, const QColorGroup& cg, int column, int width, int align) in paintCell() argument
318 Parent::paintCell(p, list->inactivedColorGroup, column, width, align); in paintCell()
320 Parent::paintCell(p, cg, column, width, align); in paintCell()
322 Parent::paintCell(p, list->disabledColorGroup, column, width, align); in paintCell()
688 if (x >= off && x < off + pm->width()) { in contentsMouseReleaseEvent()
817 int x, y, width, height; in ConfigMainWindow() local
823 width = configSettings->readNumEntry("/kconfig/qconf/window width", d->width() - 64); in ConfigMainWindow()
825 resize(width, height); in ConfigMainWindow()
836 width = d->width() - 64; in ConfigMainWindow()
838 resize(width, height); in ConfigMainWindow()
[all …]

12