Skip to content

[FEAT] Add kmscon terminal font detection #2393

@1hpEcVns

Description

@1hpEcVns

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

  1. Read /proc/<pid>/cmdline to find the --configdir argument
  2. Parse font-name and font-size from kmscon.conf
  3. Use ffFontInitValues() to set the detected font

System info

  • fastfetch 2.63.1
  • kmscon 10.0.0
  • NixOS unstable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions