summaryrefslogtreecommitdiffstats
path: root/sys/dev/syscons/scvidctl.c
diff options
context:
space:
mode:
authoryokota <yokota@FreeBSD.org>1999-09-19 08:07:46 +0000
committeryokota <yokota@FreeBSD.org>1999-09-19 08:07:46 +0000
commit09aa378c3422ad091498dce5633107c5610ab1e1 (patch)
treedc367cc913ac237b97db13ba9587b3ba4d2a4818 /sys/dev/syscons/scvidctl.c
parent30dba378e9ab72e2f18039afa73b5517a1b7f4e5 (diff)
downloadFreeBSD-src-09aa378c3422ad091498dce5633107c5610ab1e1.zip
FreeBSD-src-09aa378c3422ad091498dce5633107c5610ab1e1.tar.gz
- Preserve the content of the back scroll buffer when changing the
video mode. Requested by: a lot of people. PR: kern/13764
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 eeee089..e9716c3 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;
OpenPOWER on IntegriCloud