[systemd-devel] Antw: [EXT] Re: [systemd‑devel] Removing bold fonts from boot messages

2021-10-14 Thread Ulrich Windl
>>> Frank Steiner  schrieb am 13.10.2021 um 
>>> 18:29 in
Nachricht :
> Ulrich Windl wrote:
> 
>> Stupid question: If you see bold face at the end of the serial line, 
> wouldn't
>> changing the terminal type ($TERM) do?
>> Maybe construct your own terminal capabilities.
> 
> I'd need a TERM that has colors but disallows bold fonts. For some
> reason I wasn't even able to construct a terminfo that would disallow
> colors when using that $TERM inside xterm (and starting a new bash).
> It seems that xterm always has certain capabilities, i.e. "ls --color"
> is always showing colors in xterm, also with TERM=xterm-mono and
> everything else I tried.

You are mixing sender and receiver:
You cannot disable colors in the xterm binary (receiver) via termcap; instead 
you must restrict what the sender outputs via termcap:
Xterm won't add colors when not requested. Also, not all programs use termcap. 
Classic VI and Emacs are probably good example who do use termcap/terminfo.


> 
> Anway, settings a translation to bind "allow-bold-fonts(toggle)"
> to a key in xterm resources allows to block bold fonts whenever
> watching systemd boot messages via ipmi or AMT in a xterm...

That's a translation in the receiver. You could also represent bold by colored 
text, but that's something different.
Also if the ANSI escape sequences are hard-coded (monoculture?), you're out of 
luck.


> 
> 
> -- 
> Dipl.-Inform. Frank Steiner   Web:  http://www.bio.ifi.lmu.de/~steiner/ 
> Lehrstuhl f. BioinformatikMail: http://www.bio.ifi.lmu.de/~steiner/m/ 
> LMU, Amalienstr. 17   Phone: +49 89 2180-4049
> 80333 Muenchen, Germany   Fax:   +49 89 2180-99-4049
> * Rekursion kann man erst verstehen, wenn man Rekursion verstanden hat. *






[systemd-devel] Antw: [EXT] Re: [systemd‑devel] Removing bold fonts from boot messages

2021-10-12 Thread Ulrich Windl
>>> Lennart Poettering  schrieb am 12.10.2021 um 12:56
in
Nachricht :
> On Di, 12.10.21 12:09, Frank Steiner (fsteiner‑ma...@bio.ifi.lmu.de) wrote:
> 
>> Hi,
>>
>> after upgrading from SLES 15 SP2 (systemd 2.34) to SP3 (systemd 2.46)
>> the boot messages are not only colored (which I like for seeing failures
>> in red) but partially printed in bold face. This makes messages indeed
>> harder to read on serial console (with amt or ipmi), so I wonder if
>> there is a place where the ascii sequences for colors and font faces
>> are defined and can be adjusted?

Stupid question: If you see bold face at the end of the serial line, wouldn't
changing the terminal type ($TERM) do?
Maybe construct your own terminal capabilities.

> 
> Sounds like in an graphics issue in your terminal emulator, no?
> 
>> Or is there some option to remove the bold face only, but not the colors?
>> systemd.log_color=0 removes all formatting, but I'd like to keep the
>> colors...
> 
> No, this is not configurable. We are not a themeable desktop, sorry.
> 
> Lennart
> 
> ‑‑
> Lennart Poettering, Berlin