Lines Matching defs:new

38  *	Create a new screen, horizontally.
45 SCR *new,
66 /* Get a new screen map. */
67 CALLOC(sp, _HMAP(new), SMAP *, SIZE_HMAP(sp), sizeof(SMAP));
68 if (_HMAP(new) == NULL)
70 _HMAP(new)->lno = sp->lno;
71 _HMAP(new)->coff = 0;
72 _HMAP(new)->soff = 1;
86 new->coff = sp->coff;
87 new->cols = sp->cols;
92 * half of the current screen, the new screen goes under the current
102 new->rows = sp->rows - half; /* New. */
103 new->roff = sp->roff;
105 sp->roff += new->rows;
111 memcpy(_HMAP(sp), _HMAP(sp) + new->rows,
112 (sp->t_maxrows - new->rows) * sizeof(SMAP));
114 new->rows = half; /* New. */
116 new->roff = sp->roff + sp->rows;
121 new->t_maxrows = IS_ONELINE(new) ? 1 : new->rows - 1;
128 * new screen sizes.
133 sp->t_rows -= new->rows;
142 new->t_minrows = new->t_rows = O_VAL(sp, O_WINDOW);
143 if (new->t_rows > new->t_maxrows)
144 new->t_rows = new->t_maxrows;
145 if (new->t_minrows > new->t_maxrows)
146 new->t_minrows = new->t_maxrows;
151 * The new screen may be a small screen, even if the parent
156 new->t_minrows = new->t_rows = O_VAL(sp, O_WINDOW);
157 if (new->t_rows > new->rows - 1)
158 new->t_minrows = new->t_rows =
159 IS_ONELINE(new) ? 1 : new->rows - 1;
162 /* Adjust the ends of the new and old maps. */
165 _TMAP(new) = IS_ONELINE(new) ?
166 _HMAP(new) : _HMAP(new) + (new->t_rows - 1);
171 if ((new->defscroll = new->t_maxrows / 2) == 0)
172 new->defscroll = 1;
175 vs_insert(new, sp->gp);
178 (void)gp->scr_split(sp, new);
193 * Draw the new screen from scratch, and add a status line.
195 F_SET(new,
203 * Create a new screen, vertically.
208 vs_vsplit(SCR *sp, SCR *new)
226 /* Get a new screen map. */
227 CALLOC(sp, _HMAP(new), SMAP *, SIZE_HMAP(sp), sizeof(SMAP));
228 if (_HMAP(new) == NULL)
230 _HMAP(new)->lno = sp->lno;
231 _HMAP(new)->coff = 0;
232 _HMAP(new)->soff = 1;
248 new->cols = sp->cols - cols - 1;
250 new->coff = sp->coff + cols + 1;
254 new->rows = sp->rows;
255 new->t_rows = sp->t_rows;
256 new->t_maxrows = sp->t_maxrows;
257 new->t_minrows = sp->t_minrows;
258 new->roff = sp->roff;
259 new->defscroll = sp->defscroll;
260 _TMAP(new) = _HMAP(new) + (new->t_rows - 1);
263 vs_insert(new, sp->gp);
266 (void)gp->scr_split(sp, new);
284 * Draw the new screen from scratch, and add a status line.
286 F_SET(new,
294 * Insert the new screen into the correct place in the logical
609 * Background the current screen, and foreground a new one.
644 /* Remove the new screen from the background queue. */
744 * The new screens may have different screen options sizes than the
746 * than the new screen sizes.
760 /* Allocate a new screen map. */
770 * The new screen replaces the old screen in the parent/child list.
771 * We insert the new screen after the old one. If we're exiting,
784 /* Draw the new screen from scratch, and add a status line. */