Searched refs:ncols (Results 1 - 25 of 138) sorted by relevance

123456

/netbsd-current/lib/libcurses/
H A Dresize.c45 static int __resizeterm(WINDOW *win, int nlines, int ncols);
46 static int __resizewin(WINDOW *win, int nlines, int ncols);
56 int ncols = req_ncols; local
62 win, nlines, ncols);
75 if (win->begx + ncols > win->orig->begx + win->orig->maxx)
76 ncols = 0;
77 if (ncols <= 0)
78 ncols += win->orig->begx + win->orig->maxx - win->begx;
79 if (ncols < 1)
80 ncols
135 is_term_resized(int nlines, int ncols) argument
149 resizeterm(int nlines, int ncols) argument
181 resize_term(int nlines, int ncols) argument
225 __resizeterm(WINDOW *win, int nlines, int ncols) argument
249 __resizewin(WINDOW *win, int nlines, int ncols) argument
[all...]
H A Dnewwin.c47 static WINDOW *__makenew(SCREEN *screen, int nlines, int ncols, int by,
49 static WINDOW *__subwin(WINDOW *orig, int nlines, int ncols, int by, int bx,
58 derwin(WINDOW *orig, int nlines, int ncols, int by, int bx) argument
61 return __subwin(orig, nlines, ncols, orig->begy + by, orig->begx + bx,
71 subpad(WINDOW *orig, int nlines, int ncols, int by, int bx) argument
74 return __subwin(orig, nlines, ncols, orig->begy + by, orig->begx + bx,
101 newwin(int nlines, int ncols, int by, int bx) argument
104 return __newwin(_cursesi_screen, nlines, ncols, by, bx, FALSE, FALSE);
112 newpad(int nlines, int ncols) argument
115 if (nlines < 1 || ncols <
121 __newwin(SCREEN *screen, int nlines, int ncols, int by, int bx, int ispad, int isstdscr) argument
182 subwin(WINDOW *orig, int nlines, int ncols, int by, int bx) argument
189 __subwin(WINDOW *orig, int nlines, int ncols, int by, int bx, int ispad) argument
256 __makenew(SCREEN *screen, int nlines, int ncols, int by, int bx, int sub, int ispad) argument
[all...]
H A Dcur_hash.c68 __hash_line(const __LDATA *cp, int ncols) argument
76 for (x = 0; x < ncols; x++) {
85 return __hash(cp, (size_t)(ncols * __LDATASIZE));
H A Dtstp.c256 int nlines, ncols; local
290 ncols = COLS;
291 if (curscr->maxy != nlines || curscr->maxx != ncols)
292 wresize(curscr, nlines, ncols);
293 if (stdscr->maxy != nlines || stdscr->maxx != ncols)
294 wresize(stdscr, nlines, ncols);
/netbsd-current/sys/dev/ic/
H A Dpcdisplay_subr.c66 off = (scr->cursorrow * scr->type->ncols + scr->cursorcol) * 2
100 off = scr->cursorrow * scr->type->ncols + scr->cursorcol;
114 off = (scr->cursorrow * scr->type->ncols + scr->cursorcol);
136 + row * scr->type->ncols + col;
163 off = row * scr->type->ncols + col;
166 if (__predict_false(off >= (scr->type->ncols * scr->type->nrows)))
179 pcdisplay_copycols(void *id, int row, int srccol, int dstcol, int ncols) argument
186 srcoff = dstoff = row * scr->type->ncols;
194 ncols);
196 memcpy(&scr->mem[dstoff], &scr->mem[srcoff], ncols *
200 pcdisplay_erasecols(void *id, int row, int startcol, int ncols, long fillattr) argument
227 int ncols = scr->type->ncols; local
[all...]
H A Dvga_raster.c450 type->nrows * type->ncols * type->fontheight;
463 if (cpos < 0 || cpos >= type->nrows * type->ncols)
501 scr->cursorrow = cpos / type->ncols;
502 scr->cursorcol = cpos % type->ncols;
720 type->ncols * type->nrows, M_DEVBUF, M_WAITOK);
1048 off = (scr->cursorrow * scr->type->ncols + scr->cursorcol) +
1072 off = scr->cursorrow * scr->type->ncols + scr->cursorcol;
1094 off = scr->cursorrow * scr->type->ncols + scr->cursorcol;
1132 off = row * scr->type->ncols + col;
1134 if (__predict_false(off >= (scr->type->ncols * sc
1258 vga_raster_copycols(void *id, int row, int srccol, int dstcol, int ncols) argument
1288 vga_raster_erasecols(void *id, int row, int startcol, int ncols, long fillattr) argument
1307 int ncols; local
[all...]
H A Dhd44780_subr.c144 hlcd_copycols(void *id, int row, int srccol, int dstcol, int ncols) argument
148 if ((dstcol + ncols - 1) > hdscr->hlcd_sc->sc_cols)
149 ncols = hdscr->hlcd_sc->sc_cols - srccol;
154 ncols);
156 memmove(&hdscr->image[dstcol], &hdscr->image[srccol], ncols);
164 hlcd_erasecols(void *id, int row, int startcol, int ncols, long fillattr) argument
168 if ((startcol + ncols) > hdscr->hlcd_sc->sc_cols)
169 ncols = hdscr->hlcd_sc->sc_cols - startcol;
173 ' ', ncols);
175 memset(&hdscr->image[startcol], ' ', ncols);
183 int ncols = hdscr->hlcd_sc->sc_cols; local
195 int ncols = hdscr->hlcd_sc->sc_cols; local
[all...]
H A Dvga.c455 scr->maxdispoffset = 0x8000 - type->nrows * type->ncols * 2;
464 if (cpos < 0 || cpos >= type->nrows * type->ncols)
487 scr->pcs.cursorrow = cpos / type->ncols;
488 scr->pcs.cursorcol = cpos % type->ncols;
877 malloc(scr1->pcs.type->ncols * scr1->pcs.type->nrows * 2,
885 scr->pcs.mem = malloc(type->ncols * type->nrows * 2,
1039 oldtype->ncols * oldtype->nrows);
1057 scr->pcs.dispoffset, scr->pcs.mem, type->ncols * type->nrows);
1136 int ncols = scr->pcs.type->ncols; local
[all...]
/netbsd-current/usr.bin/sort/
H A Dinit.c83 int ncols = 0; variable
101 p = realloc(clist, (ncols + 2) * sizeof(*clist));
105 memset(&clist[ncols], 0, sizeof(clist[ncols]));
107 for (i = 0; i < ncols; i++)
111 memmove(clist+i+1, clist+i, sizeof(COLDESC)*(ncols-i));
113 ncols++;
116 for (i = 0; i < ncols; i++)
120 memmove(clist+i+1, clist+i,sizeof(COLDESC)*(ncols-i));
122 ncols
[all...]
H A Dfields.c110 for (i = 0; i < ncols; i++) {
127 for (; i <= ncols; i++)
185 lineend = clist[ncols].end;
/netbsd-current/sys/dev/wscons/
H A Dvt100_base.h35 u_int nrows, ncols, crow, ccol; member in struct:vt100base_data
83 if ((d)->ccol > ((d)->ncols >> 1) - 1) \
84 (d)->ccol = ((d)->ncols >> 1) - 1; \
88 #define NCOLS(d) ((d)->ncols >> (d)->dw)
H A Dwsemul_dumb.c74 u_int nrows, ncols, crow, ccol; member in struct:wsemul_dumb_emuldata
91 edp->ncols = type->ncols;
114 edp->ncols = type->ncols;
153 edp->ncols - edp->ccol - 1);
177 if (edp->ccol < edp->ncols)
H A Dwsemul_sun.c84 u_int nrows, ncols, crow, ccol; member in struct:wsemul_sun_emuldata
112 #define COLS_LEFT (edp->ncols - edp->ccol - 1)
128 edp->ncols = type->ncols;
189 edp->ncols = type->ncols;
280 if (edp->ccol < edp->ncols)
350 if (dst < edp->ncols) {
352 src, dst, edp->ncols - dst);
380 edp->ccol = uimin(NORMALIZE_ARG(0), edp->ncols)
[all...]
H A Dwscons_rops.c148 rcons_copycols(void *id, int row, int srccol, int dstcol, int ncols) argument
156 nx = rc->rc_font->width * ncols;
167 rcons_erasecols(void *id, int row, int startcol, int ncols, long fillattr) argument
174 nx = rc->rc_font->width * ncols;
H A Dwsemul_vt100.c152 vd->ncols = type->ncols;
301 KASSERT(type->ncols >= 0);
303 KASSERT(type->ncols <= 1024);
306 edp->bd.ncols = MAX(0, MIN(type->ncols, 1024));
350 memset(vd->tabs, 0, vd->ncols);
351 for (i = 8; i < vd->ncols; i += 8)
918 for (i = 0; i < vd->ncols / 2; i++)
923 i, vd->ncols
[all...]
/netbsd-current/external/gpl3/gdb.old/dist/gdb/
H A Dosdata.c201 int ncols = 0; local
217 ncols = last->columns.size ();
233 --ncols;
237 ui_out_emit_table table_emitter (uiout, ncols, nrows, "OSDataTable");
241 if (ncols == 0)
/netbsd-current/external/gpl3/gdb/dist/gdb/
H A Dosdata.c201 int ncols = 0; local
217 ncols = last->columns.size ();
233 --ncols;
237 ui_out_emit_table table_emitter (uiout, ncols, nrows, "OSDataTable");
241 if (ncols == 0)
/netbsd-current/external/bsd/openldap/dist/servers/slapd/back-sql/
H A Dsql-wrap.c142 rc = SQLNumResultCols( sth, &row->ncols );
159 "ncols=%d\n", (int)row->ncols );
162 row->col_names = (BerVarray)ber_memcalloc_x( row->ncols + 1,
168 row->col_prec = (UDWORD *)ber_memcalloc_x( row->ncols,
174 row->col_type = (SQLSMALLINT *)ber_memcalloc_x( row->ncols,
180 row->cols = (char **)ber_memcalloc_x( row->ncols + 1,
186 row->value_len = (SQLLEN *)ber_memcalloc_x( row->ncols,
211 for ( i = 0; i < row->ncols; i++ ) {
/netbsd-current/sys/dev/isa/
H A Dega.c346 scr->maxdispoffset = 0x8000 - type->nrows * type->ncols * 2;
353 if (cpos < 0 || cpos >= type->nrows * type->ncols)
368 scr->pcs.cursorrow = cpos / type->ncols;
369 scr->pcs.cursorcol = cpos % type->ncols;
595 malloc(type->ncols * type->nrows * 2, M_DEVBUF, M_WAITOK);
606 scr->pcs.mem = malloc(type->ncols * type->nrows * 2,
709 oldtype->ncols * oldtype->nrows);
728 type->ncols * type->nrows);
838 int ncols = scr->pcs.type->ncols; local
[all...]
/netbsd-current/external/bsd/mdocml/dist/
H A Dmdoc.h124 size_t ncols; /* -column arg count */ member in struct:mdoc_bl
/netbsd-current/usr.bin/column/
H A Dcolumn.c218 char **cols, **ncols; local
227 ncols = erealloc(cols, (maxcols +
228 DEFCOLS) * sizeof(*ncols));
231 cols = ncols;
/netbsd-current/usr.sbin/sunlabel/
H A Dsunlabel.c971 int ncols; local
982 ncols = 80;
988 ncols = n;
993 ncols = wsz.ws_col;
997 ncols = tsz.ts_cols;
1000 if (ncols < 20)
1001 ncols = 20;
1002 return ncols;
1019 size_t ncols; local
1083 ncols
[all...]
/netbsd-current/sys/dev/hpc/
H A Dhpcfb.c241 /* XXX: ncols/nrows will be filled in -- shouldn't, they are global */
409 hpcfb_console_wsscreen.ncols = hpcfb_console_dc.dc_cols;
759 hpcfb_stdscreen.ncols = dc->dc_cols;
1067 int ncols)
1084 memcpy(dvc, svc, ncols*sizeof(struct hpcfb_vchar));
1085 if (vscn[row].maxcol < srccol+ncols-1)
1086 vscn[row].maxcol = srccol+ncols-1;
1087 if (vscn[row].maxcol < dstcol+ncols-1)
1088 vscn[row].maxcol = dstcol+ncols-1;
1096 hpcfb_copycols(void *cookie, int row, int srccol, int dstcol, int ncols) argument
1066 hpcfb_tv_copycols(struct hpcfb_devconfig *dc, int row, int srccol, int dstcol, int ncols) argument
1143 hpcfb_tv_erasecols(struct hpcfb_devconfig *dc, int row, int startcol, int ncols, long attr) argument
1169 hpcfb_erasecols(void *cookie, int row, int startcol, int ncols, long attr) argument
[all...]
/netbsd-current/sys/arch/amiga/dev/
H A Damidisplaycc.c277 int ncols; member in struct:amidisplaycc_screen
461 adp->gfxwidth = amidisplaycc_screentab[0].wsdescr.ncols *
509 if (row < 0 || col < 0 || row >= scr->nrows || col >= scr->ncols)
605 if (row < 0 || col < 0 || row >= scr->nrows || col >= scr->ncols)
702 amidisplaycc_copycols(void *screen, int row, int srccol, int dstcol, int ncols) argument
717 if (srccol < 0 || srccol + ncols > scr->ncols ||
718 dstcol < 0 || dstcol + ncols > scr->ncols ||
734 for (i = ncols
753 amidisplaycc_erasecols(void *screen, int row, int startcol, int ncols, long attr) argument
[all...]
/netbsd-current/sys/arch/evbmips/gdium/
H A Dgdium_genfb.c95 gdium_stdscreen.ncols = ri->ri_cols;

Completed in 247 milliseconds

123456