freebsd-skq/sys/dev/vt
dumbbell 0f4ac1a14e 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
2014-09-08 07:37:03 +00:00
..
colors vt(4): Colors are indexed against a console palette, not a VGA palette 2014-08-10 17:04:10 +00:00
font vt(4): Rename the "mouse_cursor" structure to "vt_mouse_cursor" 2014-08-21 19:42:24 +00:00
hw vt_vga: vd_setpixel_t and vd_drawrect_t are noop in text mode 2014-09-05 18:11:39 +00:00
logo
vt_buf.c vt(4): Change vb_history_size from "int" to "unsigned int" 2014-08-29 08:16:31 +00:00
vt_consolectl.c Use a common tunable to choose between vt(4)/sc(4) 2014-06-27 17:50:33 +00:00
vt_core.c vt(4): Change the terminal and buffer sizes, even without a font 2014-09-08 07:37:03 +00:00
vt_font.c Increase vt(9) max glyph data to 1MB for CJK fonts with many glyphs 2014-01-01 19:38:15 +00:00
vt_sysmouse.c vt(4): Handle global and per-window mouse cursor toggle in one place 2014-08-21 13:04:34 +00:00
vt.h vt(4): Change vb_history_size from "int" to "unsigned int" 2014-08-29 08:16:31 +00:00