From 5a62cd9616ed6003bb80b5ea059f93b7df501b4e Mon Sep 17 00:00:00 2001 From: Aaron Campbell Date: Mon, 6 Sep 1999 00:12:41 +0000 Subject: Add scrollback support to the pcvt (i386 only) console driver. Press LEFT_SHIFT+PGUP/PGDN to navigate. Number of buffered pages is currently only configurable by editing sys/arch/i386/isa/pcvt/pcvt_hdr.h and changing the SCROLLBACK_PAGES constant. You must add "option PCVT_SCROLLBACK" to your kernel config file to enable this support, or uncomment it from sys/arch/i386/conf/GENERIC. Known issues: - Few little buglets when switching line (font) or column modes in scon(1). - Can't hold down LEFT_SHIFT+PGUP/PGDN keys. This will be fixed... Idea from Linux, code by me. --- sys/arch/i386/isa/pcvt/pcvt_drv.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sys/arch/i386/isa/pcvt/pcvt_drv.c') diff --git a/sys/arch/i386/isa/pcvt/pcvt_drv.c b/sys/arch/i386/isa/pcvt/pcvt_drv.c index 33f2adde5e1..1ae909417d9 100644 --- a/sys/arch/i386/isa/pcvt/pcvt_drv.c +++ b/sys/arch/i386/isa/pcvt/pcvt_drv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcvt_drv.c,v 1.22 1998/11/20 15:57:25 deraadt Exp $ */ +/* $OpenBSD: pcvt_drv.c,v 1.23 1999/09/06 00:12:39 aaron Exp $ */ /* * Copyright (c) 1992, 1995 Hellmuth Michaelis and Joerg Wunsch. @@ -706,7 +706,13 @@ pcstart(register struct tty *tp) */ while ((len = q_to_b(&tp->t_outq, buf, PCVT_PCBURST)) != 0) + { +#ifdef PCVT_SCROLLBACK + if (vs[minor(tp->t_dev)].scrolling) + sgetc(31337); +#endif sput(&buf[0], 0, len, minor(tp->t_dev)); + } s = spltty(); -- cgit v1.2.3