diff options
author | dumbbell <dumbbell@FreeBSD.org> | 2014-09-08 07:37:03 +0000 |
---|---|---|
committer | dumbbell <dumbbell@FreeBSD.org> | 2014-09-08 07:37:03 +0000 |
commit | 0f4ac1a14e6f55ca17b90837e69ed661222327be (patch) | |
tree | 383c917a0b96705d096f013b7dfcafc4b45f7dc6 /usr.bin/fstat | |
parent | 52c428e92c57474fd37ce8395a9e65eb26e16482 (diff) | |
download | FreeBSD-src-0f4ac1a14e6f55ca17b90837e69ed661222327be.zip FreeBSD-src-0f4ac1a14e6f55ca17b90837e69ed661222327be.tar.gz |
vt(4): Change the terminal and buffer sizes, even without a font
This fixes a bug where scroll lock would not work for tty #0 when using
vt_vga's textmode. The reason was that this window is created with a
static 256x100 buffer, larger than the real size of 80x25.
Now, in vt_change_font() and vt_compute_drawable_area(), we still
perform operations even of the window has no font loaded (this is the
case in textmode here vw->vw_font == NULL). One of these operation
resizes the buffer accordingly.
In vt_compute_drawable_area(), we take the terminal size as is (ie.
80x25) for the drawable area.
The font argument to vt_set_border() is removed (it was never used) and
the code now uses the computed drawable area instead of re-doing its own
calculation.
Reported by: Harald Schmalzbauer <h.schmalzbauer_omnilan.de>
Tested by: Harald Schmalzbauer <h.schmalzbauer_omnilan.de>
MFC after: 3 days
Diffstat (limited to 'usr.bin/fstat')
0 files changed, 0 insertions, 0 deletions