From nobody Tue Apr 19 10:41:44 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 186B911CD319 for ; Tue, 19 Apr 2022 10:41:47 +0000 (UTC) (envelope-from sblachmann@gmail.com) Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KjL2f2wTxz3Hw9 for ; Tue, 19 Apr 2022 10:41:46 +0000 (UTC) (envelope-from sblachmann@gmail.com) Received: by mail-ej1-x635.google.com with SMTP id lc2so31946417ejb.12 for ; Tue, 19 Apr 2022 03:41:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=nxl5HX8oudWp9/BdFEhsvPEWpLF83Ty7T1XO4vFXwjk=; b=i17odBC5k8G+rEH6zOMElxLc75tNtQ72AzkmyPL2gvmavv2htF6VhjsejTV5KTFYc3 jhpNob0yaqGYTWo2VcWjx3qbA1apCdSH9KHsQZTJjpIKt68iRQ8LyseuqagjQl/pjxtj SziB4lK2SQHS6Bj9mnt+Fg5AyFS8ueZPT9+E8ooYjcmZQO9Tl/ZYfJksXIpwXzjj/53d 9XJTBUyOzZLdEvEhC0Di4PQ7bRmg8ihJOAJsXSrZhD93GF1KAGxlQ1VnsQrlxqSbD8t9 T4d7yvWfAiM7B1NCq/oHWzli258Um2e34gEaJf2KrOLtdTavnMHkmDqPT/Xp/oXw2joQ Nx/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=nxl5HX8oudWp9/BdFEhsvPEWpLF83Ty7T1XO4vFXwjk=; b=DZZbGnjzZiZbSoHSaS6OF4pC5vVpLWK4hNnZSp6FDG/GwDwN0ghhZN8hdL/b6nkuPT LCW+iTFyZSYXHHJE53f5SN2DXqL8zbCLdIJrzD6q3nE/4DUKtcabKK2BiFkmQ1Nc3YCK PILeMiVkM3VtOmfffd3uftJmrcsHS7GLYqrzGH2KZDhH8ErxWW9Z58EIQ/a2rw3U/6S7 SRjQYcmO5woDeMl8JEREeeFqpnfMM2BKurcPw+reQcGtwEZcLHfSss3DqOSptcZX1orM 93C4TwxRJysjfY8junoPhP8EdE8lBSMiFvh1rToE38sLiYUbbshfyiMtXDIFWfIEbEnz MGhw== X-Gm-Message-State: AOAM530h2yNX/JRt2fzY6CreoE9CAHAQGMGKF9RhXPsfoTWnbkghVGGK lHQX256xdJ+H3fy17fgENhzmZr1+Rkrn6t8Bxkkimjud X-Google-Smtp-Source: ABdhPJwOorDrEaVcDt5XitgEl6HQh2R4kla7cDLHCXfiNEtN9sjqG3oHycqC5rNZ8H4UeBFlKeTHDO940ZHupQyAJTo= X-Received: by 2002:a17:906:9b96:b0:6e8:6e4c:8249 with SMTP id dd22-20020a1709069b9600b006e86e4c8249mr12764421ejc.281.1650364905403; Tue, 19 Apr 2022 03:41:45 -0700 (PDT) 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 Received: by 2002:a54:2a05:0:0:0:0:0 with HTTP; Tue, 19 Apr 2022 03:41:44 -0700 (PDT) In-Reply-To: <20220419123556.675d881b@fabiankeil.de> References: <20220419123556.675d881b@fabiankeil.de> From: Stefan Blachmann Date: Tue, 19 Apr 2022 12:41:44 +0200 Message-ID: Subject: Re: Changing kernel message colour when using vt(4) To: Fabian Keil Cc: FreeBSD Hackers Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4KjL2f2wTxz3Hw9 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=i17odBC5; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of sblachmann@gmail.com designates 2a00:1450:4864:20::635 as permitted sender) smtp.mailfrom=sblachmann@gmail.com X-Spamd-Result: default: False [-0.48 / 15.00]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; NEURAL_SPAM_MEDIUM(0.52)[0.520]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::635:from]; MID_RHS_MATCH_FROMTLD(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hackers]; NEURAL_HAM_SHORT(-1.00)[-0.997]; NEURAL_SPAM_LONG(1.00)[0.996]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-ThisMailContainsUnwantedMimeParts: N This issue is because of some changes in the loader that have not been added to the documentation. Please read my bug report: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261311 On 4/19/22, Fabian Keil wrote: > 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=(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=(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 >