/freebsd-current/contrib/bsddialog/lib/ |
H A D | lib_util.h | 103 int rows, cols; /* API rows and cols: -1, 0, >0 */ member in struct:dialog 118 int str_props(const char *mbstring, unsigned int *cols, bool *has_multi_col); 145 set_widget_size(struct bsddialog_conf *conf, int rows, int cols, int *h, 149 set_widget_autosize(struct bsddialog_conf *conf, int rows, int cols, int *h, 166 int cols, struct dialog *d);
|
H A D | barbox.c | 119 int cols, unsigned int perc, int fd, const char *sep, const char *end) 128 if (prepare_dialog(conf, text, rows, cols, &d) != 0) 210 mvwaddcstr(WINDOW *win, int y, int x, const char *mbstring, unsigned int cols) argument 224 if (w > cols) 230 if(w > cols) 231 mvwaddstr(win, y, (x + cols) - 3, "..."); 247 if (set_widget_size(d->conf, d->rows, d->cols, &d->h, &d->w) != 0) 249 if (set_widget_autosize(d->conf, d->rows, d->cols, &d->h, &d->w, 262 do_mixedgauge(struct bsddialog_conf *conf, const char *text, int rows, int cols, argument 278 if (prepare_dialog(conf, text, rows, cols, 118 bsddialog_gauge(struct bsddialog_conf *conf, const char *text, int rows, int cols, unsigned int perc, int fd, const char *sep, const char *end) argument 352 bsddialog_mixedgauge(struct bsddialog_conf *conf, const char *text, int rows, int cols, unsigned int mainperc, unsigned int nminibars, const char **minilabels, int *minipercs) argument 365 bsddialog_progressview(struct bsddialog_conf *conf, const char *text, int rows, int cols, struct bsddialog_progviewconf *pvconf, unsigned int nminibar, struct bsddialog_fileminibar *minibar) argument 466 bsddialog_rangebox(struct bsddialog_conf *conf, const char *text, int rows, int cols, int min, int max, int *value) argument 619 bsddialog_pause(struct bsddialog_conf *conf, const char *text, int rows, int cols, unsigned int *seconds) argument [all...] |
H A D | lib_util.c | 160 int str_props(const char *mbstring, unsigned int *cols, bool *has_multi_col) argument 184 if (cols != NULL) 185 *cols = ncol; 458 RETURN_ERROR("Terminal too small, screen cols - shadow <= 0"); 463 RETURN_ERROR("Terminal too small, screen cols - shadow " 678 text_size(struct bsddialog_conf *conf, int rows, int cols, const char *text, argument 701 if (cols == BSDDIALOG_AUTOSIZE) { 704 } else if (cols == BSDDIALOG_FULLSCREEN) { 708 startwtext = cols - BORDERS - TEXTHMARGINS; 719 RETURN_FMTERROR("(fixed cols o 799 set_widget_size(struct bsddialog_conf *conf, int rows, int cols, int *h, int *w) argument 829 set_widget_autosize(struct bsddialog_conf *conf, int rows, int cols, int *h, int *w, const char *text, int *rowstext, struct buttons *bs, int hnotext, int minw) argument 1128 print_string(WINDOW *win, int *rows, int cols, int *y, int *x, wchar_t *str, bool color) argument 1187 int i, j, z, rows, cols, x, y, tablen; local 1338 prepare_dialog(struct bsddialog_conf *conf, const char *text, int rows, int cols, struct dialog *d) argument [all...] |
/freebsd-current/contrib/bsddialog/utility/ |
H A D | util_builders.c | 49 return (bsddialog_infobox(conf, text, rows, cols)); 57 return (bsddialog_msgbox(conf, text, rows, cols)); 65 return (bsddialog_yesno(conf, text, rows, cols)); 74 return (bsddialog_textbox(conf, text, rows, cols)); 91 output = bsddialog_gauge(conf, text, rows, cols, perc, STDIN_FILENO, 125 output = bsddialog_mixedgauge(conf, text, rows, cols, mainperc, 142 output = bsddialog_pause(conf, text, rows, cols, &secs); 166 output = bsddialog_rangebox(conf, text, rows, cols, min, max, &value); 198 rv = bsddialog_datebox(conf, text, rows, cols, &yy, &mm, &dd); 200 rv = bsddialog_calendar(conf, text, rows, cols, [all...] |
/freebsd-current/crypto/openssh/ |
H A D | progressmeter.c | 134 int file_len, cols; local 179 file_len = cols = win_size - 36; 181 asmprintf(&buf, INT_MAX, &cols, "%-*s", file_len, file); 183 if (cols < file_len) 184 xextendf(&buf, NULL, "%*s", file_len - cols, ""); 230 cols = win_size - 1; 231 asmprintf(&obuf, INT_MAX, &cols, " %s", buf);
|
/freebsd-current/contrib/dialog/ |
H A D | inputstr.c | 484 * end-value of the cols[] array. 492 const int *cols = dlg_index_columns(string); local 493 result = cols[limit]; 509 const int *cols = dlg_index_columns(string); local 512 while (result > 0 && (cols[result] - cols[offset]) > limit) 652 const int *cols = dlg_index_columns(string); local 661 if ((cols[offset] - cols[n]) < x_last 662 && (offset == limit || (cols[offse 713 const int *cols = dlg_index_columns(string); local [all...] |
/freebsd-current/contrib/mandoc/ |
H A D | out.h | 56 struct roffcol *cols; /* master column specifiers */ member in struct:rofftbl
|
H A D | tbl_html.c | 85 if (h->tbl.cols == NULL) { 259 col = h->tbl.cols + dp->layout->col; 288 assert(h->tbl.cols); 289 free(h->tbl.cols); 290 h->tbl.cols = NULL;
|
H A D | mdoc.h | 125 const char **cols; /* -column val ptr */ member in struct:mdoc_bl
|
/freebsd-current/contrib/cortex-strings/scripts/ |
H A D | libplot.py | 23 cols = [getattr(record, name) for name in names] 24 return tuple(cols)
|
/freebsd-current/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) argument 53 vtb->vtb_cols = cols; 55 vtb->vtb_size = cols*rows; 62 if ((buf == NULL) && (cols*rows != 0)) { 64 (vm_offset_t)malloc(cols*rows*sizeof(u_int16_t), 69 cols*rows*sizeof(u_int16_t)); 112 sc_vtb_size(int cols, int rows) argument 114 return (size_t)(cols*rows*sizeof(u_int16_t));
|
H A D | schistory.c | 165 int cols; local 174 cols = imin(cols1, cols2); 177 sc_vtb_append(from, pos, to, cols); 178 if (cols < cols2) 181 cols2 - cols));
|
/freebsd-current/contrib/ncurses/form/ |
H A D | fld_def.c | 43 0, /* cols */ 261 | Function : FIELD *new_field( int rows, int cols, 265 | Description : Create a new field with this many 'rows' and 'cols', 276 new_field(int rows, int cols, int frow, int fcol, int nrow, int nbuf) 284 T((T_CALLED("new_field(%d,%d,%d,%d,%d,%d)"), rows, cols, frow, fcol, nrow, nbuf)); 286 cols > 0 && 297 New_Field->cols = (short)cols; 299 New_Field->dcols = cols; 278 new_field(int rows, int cols, int frow, int fcol, int nrow, int nbuf) argument
|
H A D | frm_def.c | 43 0, /* cols */ 136 form->rows = form->cols = 0; 217 maximum_col_in_field = fields[j]->fcol + fields[j]->cols; 221 if (form->cols < maximum_col_in_field) 222 form->cols = (short)maximum_col_in_field;
|
/freebsd-current/contrib/ncurses/ncurses/base/ |
H A D | lib_slk.c | 80 _nc_format_slks(NCURSES_SP_DCLx int cols) argument 90 gap = (cols - 3 * (3 + 4 * max_length)) / 2; 102 gap = cols - (int) (SP_PARM->_slk->maxlab * max_length) - 6; 113 gap = (cols - (SP_PARM->_slk->maxlab * max_length) - 5) 138 _nc_slk_initialize(WINDOW *stwin, int cols) argument 216 res = _nc_format_slks(NCURSES_SP_ARGx cols);
|
/freebsd-current/sys/contrib/openzfs/cmd/ |
H A D | zilstat.in | 38 cols = { 126 if interval > 0 and cols[col][1] > 100: 128 sys.stdout.write("%*s%s" % (cols[col][0], new_col, sep)) 135 val = v[cols[col][2]] 136 if interval > 0 and cols[col][1] > 100: 137 val = v[cols[col][2]] // interval 139 prettynum(cols[col][0], cols[col][1], val), sep)) 150 for key in cols: 151 sys.stderr.write("%11s : %s\n" % (key, cols[ke [all...] |
H A D | dbufstat.in | 64 cols = { 162 for key in sorted(cols.keys()): 163 sys.stderr.write("%11s : %s\n" % (key, cols[key][2])) 233 prettynum(cols[col][0], cols[col][1], v[col]), sep)) 246 sys.stdout.write("%*s%s" % (cols[col][0], col, sep)) 446 val = prettynum(cols[key][0], cols[key][1], vals[key]).strip() 597 if f[0] not in cols: 639 if ele not in cols [all...] |
H A D | arcstat.in | 62 cols = { 251 for key in cols: 252 sys.stderr.write("%11s : %s\n" % (key, cols[key][2])) 332 fmt = lambda col: prettynum(cols[col][0], cols[col][1], v[col]) 347 fmt = lambda col: "%*s" % (cols[col][0], col) 474 if ele not in cols: 491 hdr = cols.keys() 493 hdr = [col for col in cols.keys() if not col.startswith("l2")]
|
/freebsd-current/contrib/libedit/ |
H A D | filecomplete.c | 546 size_t line, lines, col, cols, thisguy; local 559 cols = (size_t)screenwidth / (width + 2); 560 if (cols == 0) 561 cols = 1; 564 lines = (num + cols - 1) / cols; 573 for (col = 0; col < cols; col++) {
|
/freebsd-current/usr.bin/who/ |
H A D | who.c | 300 char *cols, *ep; local 302 if ((cols = getenv("COLUMNS")) != NULL && *cols != '\0') { 304 width = strtol(cols, &ep, 10); 305 if (errno || width <= 0 || width > INT_MAX || ep == cols ||
|
/freebsd-current/contrib/nvi/vi/ |
H A D | vs_refresh.c | 615 (off != 0 && off + sp->cols < cnt)) { 618 } while (off + sp->cols < cnt); 774 size_t cols, curcol, curlen, endpoint, len, midpoint; local 804 for (ellipsis = 0, cols = sp->cols / 2; --p > wp;) { 809 if ((curlen += KEY_COL(sp, *p)) > cols) { 813 while (curlen > cols) { 846 cols = sp->cols - 1; 852 midpoint = (cols [all...] |
H A D | vs_line.c | 104 cols_per_screen = sp->cols; 153 *xp = sp->cols - cols_per_screen; 231 cols_per_screen = sp->cols; 253 cols_per_screen = sp->cols; 271 cols_per_screen = sp->cols; 298 cols_per_screen = sp->cols;
|
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_get/ |
H A D | zfs_get_001_pos.ksh | 110 cols=$(echo $line | awk '{print NF}') 127 elif [[ "$opt" == "-p" ]] && ((cols != 4)); then 129 "$cols columns instead of 4."
|
/freebsd-current/usr.bin/tabs/ |
H A D | tabs.c | 80 long cols, i, inc, j, margin, nstops, stops[NSTOPS]; local 149 cols = ttywidth(); 174 for (i = 0; i < cols / inc; i++) {
|
/freebsd-current/sys/contrib/openzfs/cmd/zpool/ |
H A D | zpool_iter.c | 312 if (strcmp(data->cols[j], uniq_cols[k]) == 0) 322 uniq_cols[cnt] = data->cols[j]; 343 if (strcmp(data->cols[k], uniq_cols[i]) == 0) { 405 if (strcmp(col, data->cols[i]) == 0) 422 tmp = realloc(data->cols, 423 (data->cols_cnt + 1) * sizeof (*data->cols)); 427 data->cols = tmp; 428 data->cols[data->cols_cnt] = strdup(col); 601 data->lines = data->cols = NULL; 704 free(vcdl->data[i].cols[ [all...] |