Closed dracorp closed 3 months ago
Hello @dracorp, Archey automatically detects whether output is a TTY to display colors. You can set CLICOLOR_FORCE=1
as environment variable to keep colors in your case.
Bye :wave:
Thank you. I did not find this option.
You're very welcome. It's actually documented in the manual page (which only gets installed in Linux distribution packages (see archey.1
), but not through pip)...
Describe the bug
I would like to use archey to create motd. But when I redirect the output to a file, the colors are missing. The same is for tee command.
Expected behavior
The colors should be kept. As for neofetch. The neofetch uses ascii escape:
Screenshots
Environment
aa-status
) : -Additional context
Custom configuration
Custom configuration
```json { "allow_overriding": true, "parallel_loading": true, "suppress_warnings": false, "entries_color": "", "honor_ansi_color": false, "logo_style": "", "entries_icon": false, "entries": [ { "type": "Hostname" }, { "type": "Distro" }, { "type": "Kernel", "check_version": false }, { "type": "CPU", "one_line": false, "show_cores": true }, { "type": "RAM", "warning_use_percent": 33.3, "danger_use_percent": 66.7 }, { "type": "Disk", "show_filesystems": ["local"], "combine_total": true, "disk_labels": null, "hide_entry_name": null, "warning_use_percent": 50, "danger_use_percent": 75 }, { "type": "LAN_IP", "one_line": true, "max_count": 1, "show_global": false, "show_link_local": true, "ipv6_support": false } ], "default_strings": { "latest": "latest", "available": "available", "no_address": "No Address", "not_detected": "Not detected", "virtual_environment": "Virtual Environment" } } ```