diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 1999-09-06 00:12:41 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 1999-09-06 00:12:41 +0000 |
commit | 5a62cd9616ed6003bb80b5ea059f93b7df501b4e (patch) | |
tree | 02e6bee514174c4ec97ff20a48cc6e6b1afac396 /sys/arch/i386/isa/pcvt/pcvt_drv.c | |
parent | fd7828d77426587c17477b91a61261c53380bfdb (diff) |
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.
Diffstat (limited to 'sys/arch/i386/isa/pcvt/pcvt_drv.c')
-rw-r--r-- | sys/arch/i386/isa/pcvt/pcvt_drv.c | 8 |
1 files changed, 7 insertions, 1 deletions
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(); |