Bug 13176

Summary: cannot set _default_ colours for console
Product: Base System Reporter: dada <dada>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.0-CURRENT   
Hardware: Any   
OS: Any   

Description dada 1999-08-16 16:40:01 UTC
	Finally (since version 1.307, 1999/06/22 14:13:31 of syscons.c)
	it is possible for FreeBSD users to configure console colours
	without having to patch C/Shell-sources. (Thanks to K. Yokota!)
	I'd like to add the following lines to my kernel config file:

options		SC_NORM_ATTR="(FG_GREEN|BG_BLACK)"
options		SC_NORM_REV_ATTR="(FG_YELLOW|BG_GREEN)"
options		SC_KERNEL_CONS_ATTR="(FG_YELLOW|BG_BLACK)"
options		SC_KERNEL_CONS_REV_ATTR="(FG_BLACK|BG_BROWN)"

	However this does not work because config(8) is not smart
	enough to quote options containing white space and/or
	shell metacharacters.
	Adding those options to 'options.i386' and LINT would solve
	that problem and will bring some colour into the FreeBSD
	community from the boot stage on. :)

Fix: 

Add to /sys/i386/conf/options.i386:

SC_NORM_ATTR		opt_syscons.h
SC_NORM_REV_ATTR	opt_syscons.h
SC_KERNEL_CONS_ATTR	opt_syscons.h
SC_KERNEL_CONS_REV_ATTR	opt_syscons.h

	and document those in LINT.

	See also PR conf/9246 for a one-line patch to fix a
	similar bug. (allscreens_flag knob of /etc/rc.conf
	not properly working because of missing redirection of
	stderr in vidcontrol invocation.)
How-To-Repeat: 
	Try to config and build a kernel with the above options.
Comment 1 yokota freebsd_committer freebsd_triage 1999-11-08 10:59:56 UTC
State Changed
From-To: open->closed

Fixed in -CURRENT.