From dada@localhost.tu-graz.ac.at Mon Aug 16 08:38:27 1999
Return-Path: <dada@localhost.tu-graz.ac.at>
Received: from kaa.kfunigraz.ac.at (KAA16.kfunigraz.ac.at [143.50.16.17])
	by hub.freebsd.org (Postfix) with ESMTP id 9062C14CBB
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 16 Aug 1999 08:37:56 -0700 (PDT)
	(envelope-from dada@localhost.tu-graz.ac.at)
Received: from balu.kfunigraz.ac.at (balu [143.50.16.16])
	by kaa.kfunigraz.ac.at (8.9.2/8.9.2) with ESMTP id RAA02355
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 16 Aug 1999 17:36:40 +0200 (MDT)
Received: from localhost.tu-graz.ac.at (isdn267.tu-graz.ac.at [129.27.241.67])
	by balu.kfunigraz.ac.at (8.9.2/8.9.2) with ESMTP id RAA17885
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 16 Aug 1999 17:39:03 +0200 (MDT)
Received: (from dada@localhost)
	by localhost.tu-graz.ac.at (8.9.3/8.9.3) id PAA01072;
	Mon, 16 Aug 1999 15:02:02 +0200 (CEST)
	(envelope-from dada)
Message-Id: <199908161302.PAA01072@localhost.tu-graz.ac.at>
Date: Mon, 16 Aug 1999 15:02:02 +0200 (CEST)
From: dada@sbox.tu-graz.ac.at
Sender: dada@localhost.tu-graz.ac.at
Reply-To: dada@sbox.tu-graz.ac.at
To: FreeBSD-gnats-submit@freebsd.org
Subject: cannot set _default_ colours for console
X-Send-Pr-Version: 3.2

>Number:         13176
>Category:       kern
>Synopsis:       cannot set _default_ colours for console
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 16 08:40:01 PDT 1999
>Closed-Date:    Mon Nov 8 02:59:56 PST 1999
>Last-Modified:  Mon Nov  8 03:00:20 PST 1999
>Originator:     Martin Kammerhofer
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
Technische Universitt Graz
>Environment:

	FreeBSD/i386

>Description:

	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. :)
	

>How-To-Repeat:

	Try to config and build a kernel with the above options.

>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.)

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: yokota 
State-Changed-When: Mon Nov 8 02:59:56 PST 1999 
State-Changed-Why:  
Fixed in -CURRENT. 
>Unformatted:
