diff options
author | gonzo <gonzo@FreeBSD.org> | 2018-02-14 23:51:44 +0000 |
---|---|---|
committer | gonzo <gonzo@FreeBSD.org> | 2018-02-14 23:51:44 +0000 |
commit | 416ac1f42d4b12af9f54ca147de4fbbec07302f6 (patch) | |
tree | 9d01bd937a15ef5406de5f2d12e37c0d56ca4edb /share | |
parent | 14709ae9e124d1513908191043455ee0a0b8cf06 (diff) | |
download | FreeBSD-src-416ac1f42d4b12af9f54ca147de4fbbec07302f6.zip FreeBSD-src-416ac1f42d4b12af9f54ca147de4fbbec07302f6.tar.gz |
MFC r327444, r327449, r327454
r327444:
vt(4): add support for configurable console palette
Introduce new set of loader tunables kern.vt.color.N.rgb, where N is a
number from 0 to 15. The value is either comma-separated list decimal
numbers ranging from 0 to 255 that represent values of red, green, and
blue components respectively (i.e. "128,128,128") or 6-digit hex triplet
commonly used to represent colors in HTML or xterm settings (i.e. #808080)
Each tunable overrides one of the 16 hardcoded palette codes and can be set
in loader.conf(5)
Reviewed by: bcr(docs), jilles, manu, ray
Differential Revision: https://reviews.freebsd.org/D13645
r327449:
Unbreak build broken by r327444
During review iterations function signature has changed in definition
but not in actual call. Fix call to match the definition.
Reported by: Herbert J. Skuhra
Pointyhat to: gonzo
r327454:
Fix GCC build broken by r32744
Indicate in function declaration that vt_palette_init does not take any arguments
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man4/vt.4 | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/share/man/man4/vt.4 b/share/man/man4/vt.4 index 29246b7..e4967cd 100644 --- a/share/man/man4/vt.4 +++ b/share/man/man4/vt.4 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd July 19, 2016 +.Dd December 28, 2017 .Dt "VT" 4 .Os .Sh NAME @@ -45,6 +45,7 @@ In .Xr loader.conf 5 : .Cd hw.vga.textmode=1 .Cd kern.vty=vt +.Cd kern.vt.color.<colornum>.rgb="<colorspec>" .Cd kern.vt.fb.default_mode="<X>x<Y>" .Cd kern.vt.fb.modes.<connector>="<X>x<Y>" .Pp @@ -205,6 +206,16 @@ If not set, the default in the .Pa GENERIC kernel is .Nm . +.It Va kern.vt.color. Ns Ar colornum Ns Va .rgb +Set this value to override default palette entry for color +.Pa colornum +which should be in a range from 0 to 15 inclusive. +The value should be either a comma-separated triplet of +red, green, and blue values in a range from 0 to 255 or +HTML-like hex triplet. +See +.Sx EXAMPLES +below. .It Va kern.vt.fb.default_mode Set this value to a graphic mode to override the default mode picked by the .Nm @@ -309,6 +320,11 @@ The connector name was found in .Dl info: [drm] Connector LVDS-1: get mode from tunables: .Dl info: [drm] - kern.vt.fb.modes.LVDS-1 .Dl info: [drm] - kern.vt.fb.default_mode +.Pp +To set black and white colors of console palette +.Pp +.Dl kern.vt.color.0.rgb="10,10,10" +.Dl kern.vt.color.15.rgb="#f0f0f0" .Sh SEE ALSO .Xr kbdcontrol 1 , .Xr login 1 , |