Skip to contentSkip to conversation

vgacon: remember scrollback buffer on console switch

PATCH Superseded Marcin Slusarz 1 participant 1 message Sep 21, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vgacon: remember scrollback buffer on console switch

This patch adds support for persistent console history, surviving console switches. It allocates new scrollback buffer only when user switches console for the first time.

---
 drivers/video/console/Kconfig  |   11 ++++++
 drivers/video/console/vgacon.c |   75 +++++++++++++++++++++++++++++++++++++--
 2 files changed, 82 insertions(+), 4 deletions(-)
drivers/video/console/Kconfig +11 -0
index 06f87b0..9efb885 100644
@@ -43,6 +43,17 @@ config VGACON_SOFT_SCROLLBACK_SIZE
 	 buffer.  Each 64KB will give you approximately 16 80x25
 	 screenfuls of scrollback buffer
 
+config VGACON_REMEMBER_SCROLLBACK
+	bool "Remember scrollback buffer on console switch"
+	depends on VGACON_SOFT_SCROLLBACK
+	default y
+	help
+	 Say 'Y' here if you want the scrollback buffer to be remembered
+	 on console switch and restored when you switch back.
+
+	 Note: every VGA console will use its own buffer, but it will be
+	 allocated only when you switch to this console for the first time.
+
 config VIDEO_SELECT
 	bool "Video mode selection support"
 	depends on  X86 && VGA_CONSOLE
drivers/video/console/vgacon.c +71 -4

108 lines not on this page · raw message

Signature · 1 line
1.5.6.4