HomeFreeBSD

vt: terminal size can grow too big with small font

Description

vt: terminal size can grow too big with small font

vt is using static buffers for on screen data, the buffer size is
calculated based on maximum supported screen size and 8x16 font.

When using hi-res graphics and very smaller than 8x16 font, we
need to be careful not to overflow static buffers in vt.

Testing: I did test by building smaller buffers than vt currently is using,
royger was testing on actual 4k capable hardware.

Tested by: royger

(cherry picked from commit 32bf05ad89aaa93f4dd27e3721f4cb52cf57fa03)
Approved by: re(gjb)

Details

Provenance
tsoomeAuthored on Jan 21 2021, 10:18 PM
Parents
rGc3942b4284d1: [POWERPC64LE] add mrsas to GENERIC64LE
Branches
Unknown
Tags
Unknown