Lines Matching defs:to

4  * The contents of this file are subject to the terms of the
38 * Routines to deal with management of logical versus physical
40 * use of intelligent terminal operations. Routines to deal with
47 * to expand the window on an intelligent terminal if it is
49 * window before doing an insert line to keep all the good text
127 * Try to win by making the screen larger rather than inserting
133 * BUG: Should consider using clr_eol here to clear to end of line.
136 * we are overstriking with, it tends not to show.
141 * necessary to determine which way to go.
154 * want to type the '$' marking an end of line if in list mode.
163 * line has blanks/tabs at the end unless we force the cursor to appear
172 * open mode, then call sethard to move onto the next line
187 * we have to clear to the end of the line
202 * the logical line number to be inserted after, and the offset
261 * Really quick -- clear to end of screen.
280 * should try to clear to end of line.
281 * Have to use clr_eol since we don't remember what is
298 /* vt100 change scrolling region to fake insert_line */
324 * We need to know if it was done ``physically'' since in this
325 * case we accept what the hardware gives us. If we have to do
343 * for intelligent terminals is to never have @
345 * and the code makes no special effort to be nice in this
353 * Will have to clean up brute force eventually,
370 * Adjust data structure internally to account for insertion of
377 int from, to;
384 for (from = p, to = p + cnt; to <= WECHO; from++, to++)
385 vtube[to] = tlines[from];
386 for (to = p; from <= WECHO; from++, to++) {
387 vtube[to] = tlines[from];
388 vclrbyte(vtube[to], WCOLS);
391 * Have to clear the echo area since its contents aren't
429 * has standout (to prevent it from scrolling up)
470 int from, to;
482 for (to = ZERO, from = ZERO + cnt; to <= WECHO - cnt; to++, from++)
483 vtube[to] = tlines[from];
484 for (from = ZERO; to <= WECHO; to++, from++) {
485 vtube[to] = tlines[from];
486 vclrbyte(vtube[to], WCOLS);
493 * Discard logical lines due to physical wandering off the screen.
555 * In open want to notify first.
602 * to get it on the screen. We first try a redraw at the
623 * has to be done last or we may lose
677 * to a final clear of the echo area at the end if appropriate.
702 * If line image is not know to be up to date, then
722 * Now try to fill the rest of the screen with text.
779 * Send the deletes to the screen and then adjust logical
790 vputp(tparm(cursor_address, lines-1, 0), 1);/* Go to lower left corner */
804 * Adjust internal physical screen image to account for deleted lines.
810 int from, to;
817 * Would like to use structured assignment but early
822 for (from = p + cnt, to = p; from <= WECHO; from++, to++)
823 vtube[to] = tlines[from];
824 for (from = p; to <= WECHO; from++, to++) {
825 vtube[to] = tlines[from];
826 vclrbyte(vtube[to], WCOLS);
830 * Sync the screen, like redraw but more lazy and willing to leave
832 * In any case, if the redraw option is set then all syncs map to redraws
853 * The guts of a sync. Similar to redraw but
886 * Want to put a line here if not in visual and first line
900 * screen to shoot up.
949 * moved a lot. Thus we have to be careful.
956 int from, to, i;
977 * Normalize l to top of screen; the add is
1029 for (from = l + cnt, to = l; from <= vcnt; to++, from++)
1030 vlcopy(vlinfo[to], vlinfo[from]);
1056 from = vcnt, to = vcnt + newcnt;
1057 i = TUBELINES - to;
1059 from += i, to += i;
1060 vcnt = to;
1061 for (; from >= l; from--, to--)
1062 vlcopy(vlinfo[to], vlinfo[from]);
1063 for (from = to + 1, to = l; to < l + newcnt && to <= WBOT + 1; to++) {
1064 LINE(to) = LINE(from);
1065 DEPTH(to) = 0;
1066 FLAGS(to) = VDIRT;
1087 * Print an image of the line to the left of the cursor