diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 1999-09-29 22:29:11 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 1999-09-29 22:29:11 +0000 |
commit | e910229d957f629858fbeb1fd633fe6f329e47eb (patch) | |
tree | b363b3e5a252c85e28ed1ae66df0c3b637221685 /sys/arch/i386/isa/pcvt/pcvt_out.c | |
parent | 73258f45c7115f42f1616395e5a825ea77e2a056 (diff) |
- Add an ioctl to pcvt that adjusts the size of the scrollback buffer.
- In scon(1), provide a -b option as an interface to this ioctl.
Diffstat (limited to 'sys/arch/i386/isa/pcvt/pcvt_out.c')
-rw-r--r-- | sys/arch/i386/isa/pcvt/pcvt_out.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/i386/isa/pcvt/pcvt_out.c b/sys/arch/i386/isa/pcvt/pcvt_out.c index b9cd2ce3d0b..acb7f3a3e68 100644 --- a/sys/arch/i386/isa/pcvt/pcvt_out.c +++ b/sys/arch/i386/isa/pcvt/pcvt_out.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcvt_out.c,v 1.11 1999/09/29 21:01:01 aaron Exp $ */ +/* $OpenBSD: pcvt_out.c,v 1.12 1999/09/29 22:29:10 aaron Exp $ */ /* * Copyright (c) 1992, 1995 Hellmuth Michaelis and Joerg Wunsch. @@ -1392,8 +1392,9 @@ vt_coldmalloc(void) MAXROW_VGA * MAXCOL_VGA * CHR; } + scrollback_pages = SCROLLBACK_PAGES; if ((Scrollbuffer = (u_short *)malloc(vs[0].maxcol * - vs[0].screen_rows * SCROLLBACK_PAGES * CHR, M_DEVBUF, + vs[0].screen_rows * scrollback_pages * CHR, M_DEVBUF, M_WAITOK)) == NULL) { printf("pcvt: scrollback memory malloc failed\n"); @@ -1966,7 +1967,7 @@ vt_col(struct video_state *svsp, int cols) #endif /* PCVT_SIGWINCH */ } - reallocate_scrollbuffer(svsp, SCROLLBACK_PAGES); + reallocate_scrollbuffer(svsp, scrollback_pages); return(1); } |