Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TERM environment variable is not respected #347

Closed
1 task done
mamccollum opened this issue Sep 3, 2024 · 1 comment
Closed
1 task done

TERM environment variable is not respected #347

mamccollum opened this issue Sep 3, 2024 · 1 comment

Comments

@mamccollum
Copy link

Describe the bug

On OmniOS (Illumos, and potentially other OS families as well), the TERM environment variable is not respected when running hyfetch.

When setting TERM to xterm-mono, hyfetch still prints colors, which can be potentially dangerous to terminals that do not support colors, whether it be user choice or hardware/software support.

  • Does this issue still occur in the master branch? (Required)

Expected behavior

Hyfetch should not print colors when TERM is set to xterm-mono.

Screenshots

Please include a screenshot of your system information if the specific system environment is relevant to the bug.

image

Config file

Please paste the content of ~/.config/hyfetch.json below:

{
    "preset": "rainbow",
    "mode": "rgb",
    "light_dark": "dark",
    "lightness": 0.65,
    "color_align": {
        "mode": "horizontal",
        "custom_colors": [],
        "fore_back": null
    },
    "backend": "neofetch",
    "args": null,
    "distro": null,
    "pride_month_shown": [],
    "pride_month_disable": false
}

Additional context

System information:

rl@rl:~$ uname -a
SunOS rl 5.11 omnios-r151050-49db1c0a0fe i86pc i386 i86pc

Python version:

rl@rl:~$ python3 -V
Python 3.12.4
@mamccollum
Copy link
Author

Appears to be an issue related more to fastfetch. Also closing due to inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant