Description
fastfetch --show-errors reports Terminal Font: Unknown terminal: kmscon when running on kmscon (kernel mode setting framebuffer console). kmscon is not in the list of known terminals for font detection.
Current behavior
$ fastfetch -s TerminalFont --show-errors
Terminal Font: Unknown terminal: kmscon
Expected behavior
kmscon stores its font configuration in its config file (typically at <configdir>/kmscon.conf or /etc/kmscon/kmscon.conf):
font-name=Maple Mono NF CN
font-size=16
fastfetch should read this config and display the terminal font.
Suggested implementation
- Read
/proc/<pid>/cmdline to find the --configdir argument
- Parse
font-name and font-size from kmscon.conf
- Use
ffFontInitValues() to set the detected font
System info
- fastfetch 2.63.1
- kmscon 10.0.0
- NixOS unstable
Description
fastfetch --show-errorsreportsTerminal Font: Unknown terminal: kmsconwhen running onkmscon(kernel mode setting framebuffer console). kmscon is not in the list of known terminals for font detection.Current behavior
Expected behavior
kmscon stores its font configuration in its config file (typically at
<configdir>/kmscon.confor/etc/kmscon/kmscon.conf):fastfetch should read this config and display the terminal font.
Suggested implementation
/proc/<pid>/cmdlineto find the--configdirargumentfont-nameandfont-sizefromkmscon.confffFontInitValues()to set the detected fontSystem info