History log of /freebsd/stand/i386/libi386/vidconsole.c (Results 1 – 25 of 33)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 3e15b01d 22-Feb-2024 Warner Losh <imp@FreeBSD.org>

libsa: Remove redundant sys/cdefs.h

Sponsored by: Netflix


# a27c1350 14-Feb-2024 Warner Losh <imp@FreeBSD.org>

loader: Make vidc_biosputchar static

It's currently unused outside of vidconsole.c. Gerald Hicks' fix to the
beep code from de37e4a6d2333/1998 introduced the funciton as
static. Maxim Sobolev (sobom

loader: Make vidc_biosputchar static

It's currently unused outside of vidconsole.c. Gerald Hicks' fix to the
beep code from de37e4a6d2333/1998 introduced the funciton as
static. Maxim Sobolev (sobomax) made it non-static since his spinconsole
called it in c4c3b35172d67/2009. When sobomax dropped the direct call
after making spinconsole console independent in b35172d67/2017,
vidc_biosputchar remained a harmless unreferenced global. Make it static
once again.

Fixes: c7e10205ae0d
Sponsored by: Netflix

show more ...


Revision tags: release/14.0.0
# 1d386b48 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


Revision tags: release/13.2.0, release/12.4.0
# bec11d96 11-Aug-2022 Warner Losh <imp@FreeBSD.org>

stand: Remove unnecessary include

stdbool.h is implied by stand.h, so remove it.

Sponsored by: Netflix


Revision tags: release/13.1.0
# cf8880d5 11-Mar-2022 Ed Maste <emaste@FreeBSD.org>

teken: color #3 is yellow not brown - use TC_YELLOW as the name

The console escape code standard (ECMA-48) specifies color #3 (escape
code 33) as yellow. A brown console color is an artifact of the

teken: color #3 is yellow not brown - use TC_YELLOW as the name

The console escape code standard (ECMA-48) specifies color #3 (escape
code 33) as yellow. A brown console color is an artifact of the VGA
palette, which replaces dim (but not bright) yellow with brown.

Reviewed by: adrian, imp
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34531

show more ...


# e9249ef9 11-Mar-2022 Ed Maste <emaste@FreeBSD.org>

loader: accept "yellow" as a named color

For historical reasons console color number 3 may be either yellow (most
consoles) or brown (VGA palette). The console escape code standard
uses "yellow", b

loader: accept "yellow" as a named color

For historical reasons console color number 3 may be either yellow (most
consoles) or brown (VGA palette). The console escape code standard
uses "yellow", but teken color name constants appear to be based on the
VGA scheme and use TC_BROWN for color 3. Even so, the palette table
used 50,50,0 as the RGB percentage tuple, resulting in a dim yellow for
framebuffer consoles at the time teken was introduced.

Amusingly, in 19e2ce2d8367 the comment on the palette entry was changed
from "brown" to "dark yellow" but the colour itself was changed from
a pure yellow to being somewhat brown.

MFC after: 1 week
Sponsored by: The FreeBSD Foundation

show more ...


# 425e57e7 09-Mar-2022 Ed Maste <emaste@FreeBSD.org>

loader: support numeric and named bright colors (8-15)

Accept "bright" or "light" prefix for named colors.

For numeric colors, update error message to specify that values 0 to 15
are allowed, and v

loader: support numeric and named bright colors (8-15)

Accept "bright" or "light" prefix for named colors.

For numeric colors, update error message to specify that values 0 to 15
are allowed, and verify that values are in that range.

Reviewed by: imp, tsoome (both earlier version)
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34512

show more ...


Revision tags: release/12.3.0, release/13.0.0
# 61c50cbc 21-Feb-2021 Toomas Soome <tsoome@FreeBSD.org>

loader: autoload_font will hung loader when there is no local console

If we start with console set to comconsole, the local
console (vidconsole, efi) is never initialized and attempt to
use the data

loader: autoload_font will hung loader when there is no local console

If we start with console set to comconsole, the local
console (vidconsole, efi) is never initialized and attempt to
use the data can render the loader hung.

Reported by: Kamigishi Rei
MFC after: 3 days

show more ...


# 96bef205 08-Feb-2021 Toomas Soome <tsoome@FreeBSD.org>

loader: remove BORDER_PIXELS

BORDER_PIXELS is left over from picking up the source from illumos
port. Since FreeBSD VT does not use border in terminal size
calculation, there is no reason why should

loader: remove BORDER_PIXELS

BORDER_PIXELS is left over from picking up the source from illumos
port. Since FreeBSD VT does not use border in terminal size
calculation, there is no reason why should loader use it.

MFC after: 1 week

show more ...


# 0974bfa3 15-Jan-2021 Toomas Soome <tsoome@FreeBSD.org>

loader: do not update palette in text mode (real fix)

Apparently palette update while in text mode, will cause
some adapters to end up with blank display. Previous update had
condition reversed.


# 89632acb 10-Jan-2021 Toomas Soome <tsoome@FreeBSD.org>

loader: term_image_display() should test screen_buffer

Make sure screen_buffer is not NULL.


# 1790f5e6 07-Jan-2021 Toomas Soome <tsoome@FreeBSD.org>

loader: do not update palette in text mode

Apparently palette update while in text mode, will cause
some adapters to end up with blank display.


# 31c2bcad 06-Jan-2021 Toomas Soome <tsoome@FreeBSD.org>

loader: remove left over call to unsetenv()

We do not touch kern.vt.fb.default_mode.


# 99870c70 05-Jan-2021 Toomas Soome <tsoome@FreeBSD.org>

loader: rewrite vidc_install_font

Instead of trying to set reasonable register values, save significant
register values, then prepare for font upload and then restore
registers from saved data.

Thi

loader: rewrite vidc_install_font

Instead of trying to set reasonable register values, save significant
register values, then prepare for font upload and then restore
registers from saved data.

This seems to fix text mode for most cases where text mode breakage
was reported.

show more ...


# 58661b3b 04-Jan-2021 Toomas Soome <tsoome@FreeBSD.org>

loader: only use vidc_install_font() with vga controller

If the controller does not support VGA, we should not
touch VGA registers.


# 8c1dda11 04-Jan-2021 Toomas Soome <tsoome@FreeBSD.org>

loader: vidc_load_palette() does not need arguments

Remove left over argument from vidc_load_palette.


# 3630506b 21-Dec-2020 Toomas Soome <tsoome@FreeBSD.org>

loader: implement framebuffer console

Draw console on efi.
Add vbe framebuffer for BIOS loader (vbe off, vbe on, vbe list,
vbe set xxx).
autoload font (/boot/fonts) based on resolution and font size

loader: implement framebuffer console

Draw console on efi.
Add vbe framebuffer for BIOS loader (vbe off, vbe on, vbe list,
vbe set xxx).
autoload font (/boot/fonts) based on resolution and font size.
Add command loadfont (set font by file) and
variable screen.font (set font by size). Pass loaded font to kernel.

Export variables:
screen.height
screen.width
screen.depth

Add gfx primitives to draw the screen and put png image on the screen.
Rework menu draw to iterate list of consoles to enamble device specific
output.

Probably something else I forgot...

Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D27420

show more ...


Revision tags: release/12.2.0
# aeea57c7 17-Jun-2020 Toomas Soome <tsoome@FreeBSD.org>

loader: vidc_init should also erase the screen

Inject \e[J to erase the initial loader screen. We have two options,
find where out cursor is and use BIOS scroll for data from boot2 or erase the
disp

loader: vidc_init should also erase the screen

Inject \e[J to erase the initial loader screen. We have two options,
find where out cursor is and use BIOS scroll for data from boot2 or erase the
display and start from origin. Erasing the screen is easier and we also
get the screen buffer initialized.

Sponsored by: Netflix, Klara Inc.

show more ...


Revision tags: release/11.4.0, release/12.1.0
# 668ee101 26-Sep-2019 Dimitry Andric <dim@FreeBSD.org>

Merge ^/head r352587 through r352763.


# 8074c5cc 25-Sep-2019 Toomas Soome <tsoome@FreeBSD.org>

loader: fix indentation in efi_console and vidconsole

Remove extra tab.

Reported by: yuripv


# 233ab015 25-Sep-2019 Toomas Soome <tsoome@FreeBSD.org>

loader: add teken.fg_color and teken.bg_color variables

Add settable variables to control teken default color attributes.
The supported colors are 0-7 or basic color names:
black, red, green, brown,

loader: add teken.fg_color and teken.bg_color variables

Add settable variables to control teken default color attributes.
The supported colors are 0-7 or basic color names:
black, red, green, brown, blue, magenta, cyan, white.

The current implementation does add some duplication which will be addressed
later.

show more ...


# 61c1328e 13-Sep-2019 Dimitry Andric <dim@FreeBSD.org>

Merge ^/head r352105 through r352307.


# e7da26b6 10-Sep-2019 Toomas Soome <tsoome@FreeBSD.org>

loader: vidconsole should set LINES and COLUMNS

Set LINES and COLUMNS based on terminal dimensions.


# f993ed2f 09-Sep-2019 Dimitry Andric <dim@FreeBSD.org>

Merge ^/head r351732 through r352104.


# 56758831 06-Sep-2019 Toomas Soome <tsoome@FreeBSD.org>

loader: use teken teminal emulator for x86 and uefi

Replace mini cons25 emulator with teken, this does enable us proper console
terminal for loader and will make it possible to implement different
b

loader: use teken teminal emulator for x86 and uefi

Replace mini cons25 emulator with teken, this does enable us proper console
terminal for loader and will make it possible to implement different
back end callbacks to draw to screen.

At this time we still only "draw" in text mode.

show more ...


12