summaryrefslogtreecommitdiff
path: root/sys/dev/syscons/scvidctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/syscons/scvidctl.c')
-rw-r--r--sys/dev/syscons/scvidctl.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/dev/syscons/scvidctl.c b/sys/dev/syscons/scvidctl.c
index eeee089d70cc..e9716c3081ea 100644
--- a/sys/dev/syscons/scvidctl.c
+++ b/sys/dev/syscons/scvidctl.c
@@ -189,6 +189,10 @@ sc_set_text_mode(scr_stat *scp, struct tty *tp, int mode, int xsize, int ysize,
}
/* set up scp */
+#ifndef SC_NO_HISTORY
+ if (scp->history != NULL)
+ sc_hist_save(scp);
+#endif
prev_ysize = scp->ysize;
/*
* This is a kludge to fend off scrn_update() while we
@@ -401,6 +405,10 @@ sc_set_pixel_mode(scr_stat *scp, struct tty *tp, int xsize, int ysize,
}
/* set up scp */
+#ifndef SC_NO_HISTORY
+ if (scp->history != NULL)
+ sc_hist_save(scp);
+#endif
prev_ysize = scp->ysize;
scp->status |= (UNKNOWN_MODE | PIXEL_MODE);
scp->status &= ~GRAPHICS_MODE;