Skip to content

[FEAT] Get current logo ansi with json format #2124

@NNBnh

Description

@NNBnh

Description

I love to get the system logo ascii/ansi when running fastfetch --format json, with all ansi escape sequences:

[
  // ...
  {
    "type": "Logo",
    "result": "\e[34m        ,'''''. \e[0m\n\e[34m       |   ,.  |\e[0m\n\e[34m       |  |  '_'\e[0m\n\e[34m  ,....|  |..   \e[0m\n\e[34m.'  ,_;|   ..'  \e[0m\n\e[34m|  |   |  |     \e[0m\n\e[34m|  ',_,'  |     \e[0m\n\e[34m '.     ,'      \e[0m\n\e[34m   '''''        \e[0m"
  },
  // ...
]

Motivation

So that user can have more freedom to display system information with other tool. Thanks!

Additional context

https://github.com/fastfetch-cli/fastfetch/tree/dev/src/logo/ascii

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions