From nobody Tue Apr 19 10:35:56 2022 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 5906E11CB53B for ; Tue, 19 Apr 2022 10:36:20 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from smtprelay04.ispgateway.de (smtprelay04.ispgateway.de [80.67.18.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4KjKwM4vChz3GHZ for ; Tue, 19 Apr 2022 10:36:19 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from [91.20.73.33] (helo=fabiankeil.de) by smtprelay04.ispgateway.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nglEC-0006wV-6P for freebsd-hackers@freebsd.org; Tue, 19 Apr 2022 12:37:00 +0200 Date: Tue, 19 Apr 2022 12:35:56 +0200 From: Fabian Keil To: FreeBSD Hackers Subject: Changing kernel message colour when using vt(4) Message-ID: <20220419123556.675d881b@fabiankeil.de> List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/xkN1e9ppUDlyhA3Wbr5o7Tm"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Df-Sender: Nzc1MDY3 X-Rspamd-Queue-Id: 4KjKwM4vChz3GHZ X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd-listen@fabiankeil.de has no SPF policy when checking 80.67.18.16) smtp.mailfrom=freebsd-listen@fabiankeil.de X-Spamd-Result: default: False [-4.17 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_NA(0.00)[no SPF record]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; DMARC_NA(0.00)[fabiankeil.de]; AUTH_NA(1.00)[]; RWL_MAILSPIKE_GOOD(0.00)[80.67.18.16:from]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_MEDIUM(-0.97)[-0.975]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-0.999]; RCVD_IN_DNSWL_NONE(0.00)[80.67.18.16:from]; MLMMJ_DEST(0.00)[freebsd-hackers]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:8972, ipnet:80.67.16.0/20, country:DE]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[91.20.73.33:received] X-ThisMailContainsUnwantedMimeParts: N --Sig_/xkN1e9ppUDlyhA3Wbr5o7Tm Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable After rebasing ElectroBSD from stable/12 to stable/13 kernel messages no longer appear green in the console. Reading UPDATING I've come to the conclusion that this is due to the change from sc to vt. Green kernel messages used to be enabled with the line: options SC_KERNEL_CONS_ATTR=3D(FG_GREEN|BG_BLACK) in the kernel configuration. According to vt(4) the kernel message colour is now supposed to be controlled with a line like: options TERMINAL_KERN_ATTR=3D(FG_LIGHTRED|BG_BLACK) After adding the line I still get white kernel messages, though. I also tried changing TERMINAL_KERN_ATTR in sys/sys/terminal.h: --- a/sys/sys/terminal.h +++ b/sys/sys/terminal.h @@ -136,7 +136,7 @@ typedef teken_color_t term_color_t; #ifdef SC_KERNEL_CONS_ATTR #define TERMINAL_KERN_ATTR SC_KERNEL_CONS_ATTR #else -#define TERMINAL_KERN_ATTR (FG_WHITE | BG_BLACK) +#define TERMINAL_KERN_ATTR (FG_GREEN | BG_BLACK) #endif #endif but this doesn't seem to have a noticeable affect either. Has anyone already figured out how to change the kernel message colour on stable/13 when using vt(4)? Fabian --Sig_/xkN1e9ppUDlyhA3Wbr5o7Tm Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQTKUNd6H/m3+ByGULIFiohV/3dUnQUCYl6QjAAKCRAFiohV/3dU nfpGAKCXQy+CRSGrr9fcfEAbw66kHBgEFQCfUxmGRKXqV12cU4JDB8wTfq2trNs= =I1KQ -----END PGP SIGNATURE----- --Sig_/xkN1e9ppUDlyhA3Wbr5o7Tm--