[SeaBIOS] [PATCH] vgabios: Support emulated text in gfx_read_char()

Kevin O'Connor kevin at koconnor.net
Fri Jan 9 20:16:55 CET 2015


On Tue, Jan 06, 2015 at 10:49:27AM -0500, Kevin O'Connor wrote:
> If emulating text, return a foreground and background attribute from
> gfx_read_char().  Also, prefer returning a space character (instead of
> null) on blank cells.  This may help with some users of "cbvga"
> seavgabios.
> 
> This also returns the foreground color (instead of always returning
> zero) for regular graphics mode gfx_read_char() calls.  This seems
> fine as tests show other vgabios implementations also return various
> values here.
> 
> Signed-off-by: Kevin O'Connor <kevin at koconnor.net>

FYI, I pushed this (slightly modified) patch to the main repo.

-Kevin



More information about the SeaBIOS mailing list