| /freebsd-14.2/contrib/ncurses/menu/ |
| H A D | m_format.c | 65 if (rows < 0 || cols < 0) in MENU_EXPORT() 80 if (cols == 0) in MENU_EXPORT() 81 cols = menu->fcols; in MENU_EXPORT() 87 menu->fcols = (short)cols; in MENU_EXPORT() 89 assert(rows > 0 && cols > 0); in MENU_EXPORT() 92 minimum(menu->nitems, cols) : in MENU_EXPORT() 96 menu->cols = (short)total_cols; in MENU_EXPORT() 108 if (cols > 0) in MENU_EXPORT() 109 _nc_Default_Menu.fcols = (short)cols; in MENU_EXPORT() 129 if (cols) in menu_format() [all …]
|
| H A D | m_scale.c | 55 scale_menu(const MENU *menu, int *rows, int *cols) in MENU_EXPORT() 60 (void *)cols)); in MENU_EXPORT() 69 if (cols) in MENU_EXPORT() 70 *cols = menu->width; in MENU_EXPORT()
|
| /freebsd-14.2/contrib/bsddialog/lib/ |
| H A D | bsddialog.h | 182 int cols, unsigned int menurows, unsigned int nitems, 196 int cols, unsigned int perc, int fd, const char *sep); 200 int cols); 204 int cols, unsigned int menurows, unsigned int nitems, 214 int cols, unsigned int menurows, unsigned int ngroups, 219 int cols); 223 int cols, unsigned int seconds); 227 int cols, unsigned int menurows, unsigned int nitems, 232 int cols, int min, int max, int *value); 236 int cols); [all …]
|
| H A D | infobox.c | 36 infobox_autosize(struct bsddialog_conf *conf, int rows, int cols, int *h, in infobox_autosize() argument 41 if (cols == BSDDIALOG_AUTOSIZE || rows == BSDDIALOG_AUTOSIZE) { in infobox_autosize() 42 if (text_size(conf, rows, cols, text, NULL, 0, 1, &htext, in infobox_autosize() 47 if (cols == BSDDIALOG_AUTOSIZE) in infobox_autosize() 56 static int infobox_checksize(int rows, int cols) in infobox_checksize() argument 58 if (cols < HBORDERS) in infobox_checksize() 70 int cols) in bsddialog_infobox() argument 75 if (set_widget_size(conf, rows, cols, &h, &w) != 0) in bsddialog_infobox() 77 if (infobox_autosize(conf, rows, cols, &h, &w, text) != 0) in bsddialog_infobox()
|
| H A D | messagebox.c | 43 if (cols == BSDDIALOG_AUTOSIZE || rows == BSDDIALOG_AUTOSIZE || in message_autosize() 45 if (text_size(conf, rows, cols, text, &bs, 0, 1, &htext, in message_autosize() 52 if (cols == BSDDIALOG_AUTOSIZE) in message_autosize() 69 if (cols < mincols) in message_checksize() 110 if (set_widget_size(conf, rows, cols, &h, &w) != 0) in do_message() 200 if (set_widget_size(conf, rows, cols, &h, &w) != 0) in do_message() 202 if (message_autosize(conf, rows, cols, &h, &w, text, in do_message() 238 int cols) in bsddialog_msgbox() argument 244 return (do_message(conf, text, rows, cols, bs)); in bsddialog_msgbox() 249 int cols) in bsddialog_yesno() argument [all …]
|
| H A D | barbox.c | 96 if (cols == BSDDIALOG_AUTOSIZE) in bar_autosize() 106 bar_checksize(int rows, int cols, struct buttons *bs) in bar_checksize() argument 117 if (cols < minwidth) in bar_checksize() 139 if (set_widget_size(conf, rows, cols, &h, &w) != 0) in bsddialog_gauge() 248 if (set_widget_size(conf, rows, cols, &h, &w) != 0) in do_mixedgauge() 257 if (cols == BSDDIALOG_AUTOSIZE) in do_mixedgauge() 431 int cols, int min, int max, int *value) in bsddialog_rangebox() argument 452 if (set_widget_size(conf, rows, cols, &h, &w) != 0) in bsddialog_rangebox() 566 if (bar_autosize(conf, rows, cols, &h, &w, text, in bsddialog_rangebox() 608 int cols, unsigned int sec) in bsddialog_pause() argument [all …]
|
| H A D | lib_util.c | 115 if (cols != NULL) in str_props() 116 *cols = ncol; in str_props() 237 getmaxyx(window, rows, cols); in draw_buttons() 446 if (*x + reallen > cols) { in print_string() 450 wresize(win, *rows, cols); in print_string() 455 while (j < cols && i < len) { in print_string() 487 getmaxyx(pad, rows, cols); in print_textpad() 512 if (x >= cols) { in print_textpad() 522 if (x >= cols) { in print_textpad() 531 wresize(pad, rows, cols); in print_textpad() [all …]
|
| H A D | textbox.c | 81 textbox_autosize(struct bsddialog_conf *conf, int rows, int cols, int *h, in textbox_autosize() argument 84 if (cols == BSDDIALOG_AUTOSIZE) in textbox_autosize() 92 textbox_checksize(int rows, int cols, int hpad, struct buttons bs) in textbox_checksize() argument 99 if (cols < mincols) in textbox_checksize() 111 int cols) in bsddialog_textbox() argument 157 if (set_widget_size(conf, rows, cols, &h, &w) != 0) in bsddialog_textbox() 159 textbox_autosize(conf, rows, cols, &h, &w, hpad, wpad, padmargin, bs); in bsddialog_textbox() 246 if (set_widget_size(conf, rows, cols, &h, &w) != 0) in bsddialog_textbox() 248 textbox_autosize(conf, rows, cols, &h, &w, hpad, wpad, in bsddialog_textbox()
|
| H A D | timebox.c | 77 if (cols == BSDDIALOG_AUTOSIZE || rows == BSDDIALOG_AUTOSIZE) { in datetime_autosize() 78 if (text_size(conf, rows, cols, text, &bs, 3, minw, &htext, in datetime_autosize() 83 if (cols == BSDDIALOG_AUTOSIZE) in datetime_autosize() 101 if (cols < mincols) in datetime_checksize() 141 if (set_widget_size(conf, rows, cols, &h, &w) != 0) in bsddialog_timebox() 143 if (datetime_autosize(conf, rows, cols, &h, &w, MINWTIME, text, in bsddialog_timebox() 255 if (set_widget_size(conf, rows, cols, &h, &w) != 0) in bsddialog_timebox() 257 if (datetime_autosize(conf, rows, cols, &h, &w, in bsddialog_timebox() 358 if (set_widget_size(conf, rows, cols, &h, &w) != 0) in bsddialog_datebox() 490 if (set_widget_size(conf, rows, cols, &h, &w) != 0) in bsddialog_datebox() [all …]
|
| H A D | lib_util.h | 51 int str_props(const char *mbstring, unsigned int *cols, bool *has_multi_col); 98 text_size(struct bsddialog_conf *conf, int rows, int cols, const char *text, 113 set_widget_size(struct bsddialog_conf *conf, int rows, int cols, int *h, 123 draw_borders(struct bsddialog_conf *conf, WINDOW *win, int rows, int cols, 127 new_boxed_window(struct bsddialog_conf *conf, int y, int x, int rows, int cols,
|
| /freebsd-14.2/contrib/nvi/vi/ |
| H A D | vs_relative.c | 38 vip->sc_smap->coff : (vip->sc_smap->soff - 1) * sp->cols) + in vs_column() 54 size_t cols, screens; in vs_screens() local 73 cols = vs_columns(sp, NULL, lno, cnop, NULL); in vs_screens() 75 screens = (cols / sp->cols + (cols % sp->cols ? 1 : 0)); in vs_screens() 147 if (!leftright && curoff >= sp->cols) { \ in vs_columns() 150 scno -= scno % sp->cols; \ in vs_columns() 152 curoff -= sp->cols; \ in vs_columns() 239 off = cno / sp->cols; in vs_colpos() 240 cno %= sp->cols; in vs_colpos() 242 for (; len && scno < sp->cols; --len) in vs_colpos() [all …]
|
| H A D | vs_split.c | 83 new->cols = sp->cols; in vs_split() 207 size_t cols; in vs_vsplit() local 243 cols = sp->cols / 2; in vs_vsplit() 244 new->cols = sp->cols - cols - 1; in vs_vsplit() 245 sp->cols = cols; in vs_vsplit() 425 tsp->cols += sp->cols + 1; /* XXX: DIVIDER */ in vs_discard() 549 if (tsp->coff + tsp->cols > sp->coff + sp->cols) in vs_join() 585 if (tsp->coff + tsp->cols > sp->coff + sp->cols) in vs_join() 733 nsp->cols = sp->cols; in vs_swap() 829 (sp->coff != next->coff || sp->cols != next->cols)) in vs_resize() [all …]
|
| /freebsd-14.2/lib/libutil/ |
| H A D | hexdump.c | 48 int cols; in hexdump() local 58 cols = flags & HD_COLUMN_MASK; in hexdump() 60 cols = 16; in hexdump() 63 for (i = 0; i < length; i+= cols) { in hexdump() 71 for (j = 0; j < cols; j++) { in hexdump() 82 for (j = 0; j < cols; j++) { in hexdump()
|
| /freebsd-14.2/contrib/ncurses/form/ |
| H A D | frm_scale.c | 49 scale_form(const FORM *form, int *rows, int *cols) in FORM_EXPORT() 54 (void *)cols)); in FORM_EXPORT() 64 if (cols) in FORM_EXPORT() 65 *cols = form->cols; in FORM_EXPORT()
|
| H A D | fld_info.c | 52 int *rows, int *cols, in FORM_EXPORT() 58 (void *)rows, (void *)cols, in FORM_EXPORT() 67 if (cols) in FORM_EXPORT() 68 *cols = field->cols; in FORM_EXPORT()
|
| H A D | frm_data.c | 153 pos = form->begincol + field->cols; in data_ahead() 158 if (check_len >= field->cols) in data_ahead() 159 check_len = field->cols; in data_ahead() 163 pos += field->cols; in data_ahead() 179 if (!Only_Padding(form->w, field->cols, field->pad)) in data_ahead()
|
| /freebsd-14.2/contrib/mandoc/ |
| H A D | out.c | 135 assert(tbl->cols == NULL); in tblcalc() 136 tbl->cols = mandoc_calloc((size_t)sp_first->opts->cols, in tblcalc() 156 col = tbl->cols + icol; in tblcalc() 187 / (sp->opts->cols + 1) : 0); in tblcalc() 221 col = tbl->cols + icol; in tblcalc() 243 width = tbl->cols[icol].width; in tblcalc() 268 width = tbl->cols[icol].width; in tblcalc() 310 tbl->cols[icol].width = wanted; in tblcalc() 331 col = tbl->cols + icol; in tblcalc() 352 col = tbl->cols + icol; in tblcalc() [all …]
|
| H A D | tbl_term.c | 182 if (tp->tbl.cols == NULL) { in term_tbl() 201 tp->tbl.cols[ic].spacing; in term_tbl() 202 if (sp->opts->cols) in term_tbl() 203 tsz += tp->tbl.cols[sp->opts->cols - 1].width; in term_tbl() 253 if (ic + 1 < sp->opts->cols) in term_tbl() 557 assert(tp->tbl.cols); in term_tbl() 558 free(tp->tbl.cols); in term_tbl() 559 tp->tbl.cols = NULL; in term_tbl() 613 col = tp->tbl.cols; in tbl_hrule() 618 col = tp->tbl.cols + cp->col; in tbl_hrule() [all …]
|
| /freebsd-14.2/contrib/dialog/ |
| H A D | demo.pl | 108 my $cols = &tput( "cols", 80 ); 109 my $maxcols = $cols - 4; 110 my $mincols = ( $cols > 8 ) ? 8 : $cols; 111 my $midcols = int( ( $cols * 3 ) / 4 ); 174 $cols / 2 182 $cols / 2 190 $cols / 2
|
| H A D | columns.c | 124 unsigned cols = split_row(*value, offsets, widths); in dlg_align_columns() local 125 if (numcols < cols) in dlg_align_columns() 126 numcols = cols; in dlg_align_columns() 127 for (n = 0; n < cols; ++n) { in dlg_align_columns() 139 unsigned cols = split_row(*value, offsets, widths); in dlg_align_columns() local 146 for (n = 0; n < cols; ++n) { in dlg_align_columns()
|
| H A D | inputstr.c | 492 const int *cols = dlg_index_columns(string); in dlg_count_columns() local 493 result = cols[limit]; in dlg_count_columns() 509 const int *cols = dlg_index_columns(string); in dlg_limit_columns() local 512 while (result > 0 && (cols[result] - cols[offset]) > limit) in dlg_limit_columns() 652 const int *cols = dlg_index_columns(string); in compute_edit_offset() local 661 if ((cols[offset] - cols[n]) < x_last in compute_edit_offset() 662 && (offset == limit || (cols[offset + 1] - cols[n]) < x_last)) { in compute_edit_offset() 668 dpy_column = cols[offset] - cols[offset2]; in compute_edit_offset() 713 const int *cols = dlg_index_columns(string); in dlg_show_string() local 726 int check = cols[i + 1] - cols[scrollamt]; in dlg_show_string() [all …]
|
| /freebsd-14.2/usr.bin/column/ |
| H A D | column.c | 220 int cols, *len; member 232 wchar_t **cols; in maketbl() local 237 if ((cols = calloc((maxcols = DEFCOLS), sizeof(*cols))) == NULL) in maketbl() 243 (cols[coloff] = wcstok(p, separator, &last)); in maketbl() 246 if (!(cols = realloc(cols, ((u_int)maxcols + in maketbl() 259 for (t->cols = coloff; --coloff >= 0;) { in maketbl() 260 t->list[coloff] = cols[coloff]; in maketbl() 261 t->len[coloff] = width(cols[coloff]); in maketbl() 267 for (coloff = 0; coloff < t->cols - 1; ++coloff) in maketbl() 275 free(cols); in maketbl()
|
| /freebsd-14.2/contrib/xz/src/xz/ |
| H A D | message.c | 573 const char *cols[5] = { in message_progress_update() local 581 tuklib_mbstr_fw(cols[0], 6), cols[0], in message_progress_update() 582 tuklib_mbstr_fw(cols[1], 35), cols[1], in message_progress_update() 583 tuklib_mbstr_fw(cols[2], 9), cols[2], in message_progress_update() 584 cols[3], in message_progress_update() 585 cols[4]); in message_progress_update() 663 tuklib_mbstr_fw(cols[0], 6), cols[0], in progress_flush() 664 tuklib_mbstr_fw(cols[1], 35), cols[1], in progress_flush() 665 tuklib_mbstr_fw(cols[2], 9), cols[2], in progress_flush() 666 cols[3], in progress_flush() [all …]
|
| /freebsd-14.2/usr.sbin/mpsutil/ |
| H A D | mpsutil.c | 166 int cols; in hexdump() local 176 cols = flags & HD_COLUMN_MASK; in hexdump() 178 cols = 16; in hexdump() 181 for (i = 0; i < length; i+= cols) { in hexdump() 189 for (j = 0; j < cols; j++) { in hexdump() 191 k = i + (cols - 1 - j); in hexdump() 203 for (j = 0; j < cols; j++) { in hexdump() 205 k = i + (cols - 1 - j); in hexdump()
|
| /freebsd-14.2/crypto/openssh/ |
| H A D | progressmeter.c | 134 int file_len, cols; in refresh_progress_meter() local 179 file_len = cols = win_size - 36; in refresh_progress_meter() 181 asmprintf(&buf, INT_MAX, &cols, "%-*s", file_len, file); in refresh_progress_meter() 183 if (cols < file_len) in refresh_progress_meter() 184 xextendf(&buf, NULL, "%*s", file_len - cols, ""); in refresh_progress_meter() 230 cols = win_size - 1; in refresh_progress_meter() 231 asmprintf(&obuf, INT_MAX, &cols, " %s", buf); in refresh_progress_meter()
|