• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/dev/syscons/

Lines Matching refs:history

86 /* allocate a history buffer */
96 sc_vtb_t *history;
108 /* remove the history buffer while we update it */
109 history = prev_history = scp->history;
110 scp->history = NULL;
115 cur_lines = sc_vtb_rows(history);
126 scp->history = prev_history;
132 history = (sc_vtb_t *)malloc(sizeof(*history),
135 if (history != NULL) {
139 sc_vtb_init(history, VTB_RINGBUFFER, scp->xsize, lines,
142 sc_vtb_clear(history, scp->sc->scr_map[0x20],
145 copy_history(prev_history, history);
146 scp->history_pos = sc_vtb_tail(history);
158 scp->history = history;
191 sc_vtb_t *history;
195 history = scp->history;
196 scp->history = NULL;
197 if (history == NULL)
200 cur_lines = sc_vtb_rows(history);
205 sc_vtb_destroy(history);
206 free(history, M_DEVBUF);
209 /* copy entire screen into the top of the history buffer */
213 sc_vtb_append(&scp->vtb, 0, scp->history, scp->xsize*scp->ysize);
214 scp->history_pos = sc_vtb_tail(scp->history);
217 /* restore the screen by copying from the history buffer */
223 if (scp->history_pos != sc_vtb_tail(scp->history)) {
224 scp->history_pos = sc_vtb_tail(scp->history);
230 sc_vtb_seek(scp->history, sc_vtb_pos(scp->history,
231 sc_vtb_tail(scp->history),
245 pos = sc_vtb_pos(scp->history, pos, -scp->xsize);
246 sc_vtb_copy(scp->history, pos,
253 /* go to the tail of the history buffer */
257 scp->history_pos = sc_vtb_tail(scp->history);
261 /* go to the top of the history buffer */
265 scp->history_pos = sc_vtb_pos(scp->history, sc_vtb_tail(scp->history),
274 if (sc_vtb_pos(scp->history, scp->history_pos, -(scp->xsize*scp->ysize))
275 == sc_vtb_tail(scp->history))
277 scp->history_pos = sc_vtb_pos(scp->history, scp->history_pos,
287 if (scp->history_pos == sc_vtb_tail(scp->history))
289 scp->history_pos = sc_vtb_pos(scp->history, scp->history_pos,
302 case CONS_HISTORY: /* set history size */
314 sc_vtb_rows(scp->history), extra_history_size));
319 sc_vtb_clear(scp->history, scp->sc->scr_map[0x20],