Lines Matching refs:to

13  * Routines to manipulate the "line buffer".
15 * in preparation for output to the screen.
22 static char *attr = NULL; /* Extension of linebuf to hold attributes */
98 /* Just realloc to expand the buffer, if we can. */
182 * of plinenum to re-seek if necessary. }}
226 * Append enough spaces to bring us to the lmargin.
247 int to;
259 to = from = lmargin;
262 * to get all combining chars.
270 linebuf[to] = c;
271 attr[to++] = attr[from++];
274 linebuf[to] = linebuf[from];
275 attr[to++] = attr[from];
309 attr[to] = attr[from];
315 prev_ch = linebuf[to++] = ' ';
322 prev_attr = (to > 0) ? attr[to-1] : AT_NORMAL;
347 linebuf[to] = linebuf[from];
348 attr[to++] = attr[from++];
350 curr = to;
414 * if the character were added to the current position in the line buffer.
416 * attribute sequence to be inserted, so this must be taken into account.
439 * so we don't even try to guess; say it doesn't move.
451 * Some terminals, upon failure to compose a
479 * Delete to the previous base character in the line buffer.
557 * Append a character and attribute to the line buffer.
645 * Try to expand it.
662 * Append a tab to the line buffer.
663 * Store spaces to represent the tab.
707 * Convert to printable representation.
739 * Append a character to the line buffer.
828 * If we need to shift the line, do it.
829 * But wait until we get to at least the middle of the screen,
899 * Use the previous overstrike to resolve it.
1013 * Make sure we've shifted the line, if we need to.
1020 /* Switch to normal attribute at end of line. */
1031 * and append a '\0' to the end of the line.
1036 * (In the last case we don't want to output a newline if the terminal
1038 * But we do want to output a newline if the terminal ignores it in case
1052 * to, i.e. when the character *after* the last one to fit on a
1053 * line is output. But they are too hard to deal with when they
1061 * char on the next line. We don't need to do this "nudge"
1109 /* Make sure we're back to AT_NORMAL before the '\n'. */
1129 * Analogous to forw_line(), but deals with "raw lines":
1131 * {{ This is supposed to be more efficient than forw_line(). }}
1179 * Analogous to back_line(), but deals with "raw lines".
1180 * {{ This is supposed to be more efficient than back_line(). }}
1224 char *to;
1235 * Shift the data to the end of the new linebuf.
1238 to = linebuf + size_linebuf - 1;
1239 fm >= linebuf; fm--, to--)
1240 *to = *fm;