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

Lines Matching refs:history

87 /* allocate a history buffer */
97 sc_vtb_t *history;
109 /* remove the history buffer while we update it */
110 history = prev_history = scp->history;
111 scp->history = NULL;
116 cur_lines = sc_vtb_rows(history);
127 scp->history = prev_history;
133 history = (sc_vtb_t *)malloc(sizeof(*history),
136 if (history != NULL) {
140 sc_vtb_init(history, VTB_RINGBUFFER, scp->xsize, lines,
143 sc_vtb_clear(history, scp->sc->scr_map[0x20],
146 copy_history(prev_history, history);
147 scp->history_pos = sc_vtb_tail(history);
159 scp->history = history;
192 sc_vtb_t *history;
196 history = scp->history;
197 scp->history = NULL;
198 if (history == NULL)
201 cur_lines = sc_vtb_rows(history);
206 sc_vtb_destroy(history);
207 free(history, M_DEVBUF);
210 /* copy entire screen into the top of the history buffer */
214 sc_vtb_append(&scp->vtb, 0, scp->history, scp->xsize*scp->ysize);
215 scp->history_pos = sc_vtb_tail(scp->history);
218 /* restore the screen by copying from the history buffer */
224 if (scp->history_pos != sc_vtb_tail(scp->history)) {
225 scp->history_pos = sc_vtb_tail(scp->history);
231 sc_vtb_seek(scp->history, sc_vtb_pos(scp->history,
232 sc_vtb_tail(scp->history),
246 pos = sc_vtb_pos(scp->history, pos, -scp->xsize);
247 sc_vtb_copy(scp->history, pos,
254 /* go to the tail of the history buffer */
258 scp->history_pos = sc_vtb_tail(scp->history);
262 /* go to the top of the history buffer */
266 scp->history_pos = sc_vtb_pos(scp->history, sc_vtb_tail(scp->history),
275 if (sc_vtb_pos(scp->history, scp->history_pos, -(scp->xsize*scp->ysize))
276 == sc_vtb_tail(scp->history))
278 scp->history_pos = sc_vtb_pos(scp->history, scp->history_pos,
288 if (scp->history_pos == sc_vtb_tail(scp->history))
290 scp->history_pos = sc_vtb_pos(scp->history, scp->history_pos,
304 case CONS_HISTORY: /* set history size */
316 sc_vtb_rows(scp->history), extra_history_size));
321 sc_vtb_clear(scp->history, scp->sc->scr_map[0x20],