/freebsd/contrib/ncurses/menu/ |
H A D | m_format.c | 66 if (rows < 0 || cols < 0) in MENU_EXPORT() 79 if (cols == 0) in MENU_EXPORT() 80 cols = menu->fcols; in MENU_EXPORT() 86 menu->fcols = (short)cols; in MENU_EXPORT() 88 assert(rows > 0 && cols > 0); in MENU_EXPORT() 91 minimum(menu->nitems, cols) : in MENU_EXPORT() 95 menu->cols = (short)total_cols; in MENU_EXPORT() 107 if (cols > 0) in MENU_EXPORT() 108 _nc_Default_Menu.fcols = (short)cols; in MENU_EXPORT() 128 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/contrib/bsddialog/lib/ |
H A D | bsddialog.h | 194 int cols, unsigned int menurows, unsigned int nitems, 203 int cols, unsigned int formheight, unsigned int nitems, 212 int cols); 216 int cols, unsigned int menurows, unsigned int nitems, 226 int cols, unsigned int menurows, unsigned int ngroups, 231 int cols); 235 int cols, unsigned int *seconds); 239 int cols, unsigned int menurows, unsigned int nitems, 244 int cols, int min, int max, int *value); 248 int cols); [all …]
|
H A D | messagebox.c | 58 if (set_widget_size(d->conf, d->rows, d->cols, &d->h, &d->w) != 0) in message_size_position() 60 if (set_widget_autosize(d->conf, d->rows, d->cols, &d->h, &d->w, in message_size_position() 96 do_message(struct bsddialog_conf *conf, const char *text, int rows, int cols, in do_message() argument 105 if (prepare_dialog(conf, text, rows, cols, &d) != 0) in do_message() 194 int cols) in bsddialog_msgbox() argument 196 return (do_message(conf, text, rows, cols, OK_LABEL, NULL)); in bsddialog_msgbox() 201 int cols) in bsddialog_yesno() argument 203 return (do_message(conf, text, rows, cols, "Yes", "No")); in bsddialog_yesno() 208 int cols) in bsddialog_infobox() argument 213 if (prepare_dialog(conf, text, rows, cols, &d) != 0) in bsddialog_infobox()
|
H A D | lib_util.c | 184 if (cols != NULL) in str_props() 185 *cols = ncol; in str_props() 1151 if (*x + reallen > cols) { in print_string() 1155 wresize(win, *rows, cols); in print_string() 1160 while (j < cols && i < len) { in print_string() 1192 getmaxyx(pad, rows, cols); in print_textpad() 1217 if (x >= cols) { in print_textpad() 1227 if (x >= cols) { in print_textpad() 1236 wresize(pad, rows, cols); in print_textpad() 1328 int cols, struct dialog *d) in prepare_dialog() argument [all …]
|
H A D | lib_util.h | 98 int rows, cols; /* API rows and cols: -1, 0, >0 */ member 113 int str_props(const char *mbstring, unsigned int *cols, bool *has_multi_col); 140 set_widget_size(struct bsddialog_conf *conf, int rows, int cols, int *h, 144 set_widget_autosize(struct bsddialog_conf *conf, int rows, int cols, int *h, 161 int cols, struct dialog *d);
|
/freebsd/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 …]
|
H A D | vs_refresh.c | 615 (off != 0 && off + sp->cols < cnt)) { in vs_paint() 618 } while (off + sp->cols < cnt); in vs_paint() 774 size_t cols, curcol, curlen, endpoint, len, midpoint; in vs_modeline() local 804 for (ellipsis = 0, cols = sp->cols / 2; --p > wp;) { in vs_modeline() 809 if ((curlen += KEY_COL(sp, *p)) > cols) { in vs_modeline() 813 while (curlen > cols) { in vs_modeline() 846 cols = sp->cols - 1; in vs_modeline() 852 midpoint = (cols - ((len + 1) / 2)) / 2; in vs_modeline() 856 } else if (curlen + 2 + len < cols) { in vs_modeline() 869 endpoint = cols; in vs_modeline()
|
/freebsd/lib/libutil/ |
H A D | hexdump.c | 45 int cols; in hexdump() local 55 cols = flags & HD_COLUMN_MASK; in hexdump() 57 cols = 16; in hexdump() 60 for (i = 0; i < length; i+= cols) { in hexdump() 68 for (j = 0; j < cols; j++) { in hexdump() 79 for (j = 0; j < cols; j++) { in hexdump()
|
/freebsd/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 | 155 pos = form->begincol + field->cols; in data_ahead() 159 if (check_len >= field->cols) in data_ahead() 160 check_len = field->cols; in data_ahead() 164 pos += field->cols; in data_ahead() 180 if (!Only_Padding(form->w, field->cols, field->pad)) in data_ahead()
|
/freebsd/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/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/usr.bin/column/ |
H A D | column.c | 207 int cols, *len; member 219 wchar_t **cols; in maketbl() local 224 if ((cols = calloc((maxcols = DEFCOLS), sizeof(*cols))) == NULL) in maketbl() 230 (cols[coloff] = wcstok(p, separator, &last)); in maketbl() 233 if (!(cols = realloc(cols, ((u_int)maxcols + in maketbl() 246 for (t->cols = coloff; --coloff >= 0;) { in maketbl() 247 t->list[coloff] = cols[coloff]; in maketbl() 248 t->len[coloff] = width(cols[coloff]); in maketbl() 254 for (coloff = 0; coloff < t->cols - 1; ++coloff) in maketbl() 262 free(cols); in maketbl()
|
/freebsd/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/usr.sbin/mpsutil/ |
H A D | mpsutil.c | 165 int cols; in hexdump() local 175 cols = flags & HD_COLUMN_MASK; in hexdump() 177 cols = 16; in hexdump() 180 for (i = 0; i < length; i+= cols) { in hexdump() 188 for (j = 0; j < cols; j++) { in hexdump() 190 k = i + (cols - 1 - j); in hexdump() 202 for (j = 0; j < cols; j++) { in hexdump() 204 k = i + (cols - 1 - j); in hexdump()
|
/freebsd/contrib/bsddialog/utility/ |
H A D | util_builders.c | 48 return (bsddialog_infobox(conf, text, rows, cols)); in infobox_builder() 56 return (bsddialog_msgbox(conf, text, rows, cols)); in msgbox_builder() 64 return (bsddialog_yesno(conf, text, rows, cols)); in yesno_builder() 73 return (bsddialog_textbox(conf, text, rows, cols)); in textbox_builder() 90 output = bsddialog_gauge(conf, text, rows, cols, perc, STDIN_FILENO, in gauge_builder() 124 output = bsddialog_mixedgauge(conf, text, rows, cols, mainperc, in mixedgauge_builder() 141 output = bsddialog_pause(conf, text, rows, cols, &secs); in pause_builder() 197 rv = bsddialog_datebox(conf, text, rows, cols, &yy, &mm, &dd); in date() 199 rv = bsddialog_calendar(conf, text, rows, cols, &yy, &mm, &dd); in date() 236 return (date(conf, text, rows, cols, argc, argv, opt)); in calendar_builder() [all …]
|
/freebsd/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()
|
/freebsd/sys/dev/syscons/ |
H A D | scvtb.c | 49 sc_vtb_init(sc_vtb_t *vtb, int type, int cols, int rows, void *buf, int wait) in sc_vtb_init() argument 53 vtb->vtb_cols = cols; in sc_vtb_init() 55 vtb->vtb_size = cols*rows; in sc_vtb_init() 62 if ((buf == NULL) && (cols*rows != 0)) { in sc_vtb_init() 64 (vm_offset_t)malloc(cols*rows*sizeof(u_int16_t), in sc_vtb_init() 69 cols*rows*sizeof(u_int16_t)); in sc_vtb_init() 112 sc_vtb_size(int cols, int rows) in sc_vtb_size() argument 114 return (size_t)(cols*rows*sizeof(u_int16_t)); in sc_vtb_size()
|
/freebsd/contrib/ncurses/ncurses/base/ |
H A D | lib_slk.c | 80 _nc_format_slks(NCURSES_SP_DCLx int cols) in _nc_format_slks() argument 90 gap = (cols - 3 * (3 + 4 * max_length)) / 2; in _nc_format_slks() 102 gap = cols - (int) (SP_PARM->_slk->maxlab * max_length) - 6; in _nc_format_slks() 113 gap = (cols - (SP_PARM->_slk->maxlab * max_length) - 5) in _nc_format_slks() 138 _nc_slk_initialize(WINDOW *stwin, int cols) in _nc_slk_initialize() argument 214 res = _nc_format_slks(NCURSES_SP_ARGx cols); in _nc_slk_initialize()
|