Skip to content

fix: replace os.system('clear') with ANSI escape code#13

Open
iRonin wants to merge 1 commit into
joeynyc:mainfrom
iRonin:fix/os-system-clear
Open

fix: replace os.system('clear') with ANSI escape code#13
iRonin wants to merge 1 commit into
joeynyc:mainfrom
iRonin:fix/os-system-clear

Conversation

@iRonin

@iRonin iRonin commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

Replaces `os.system('clear')` with `print("\033c", end="")` in all 4 neofetch theme files.

This eliminates unnecessary shell subprocess invocation for a trivial terminal-clear operation, removes linter warnings (bandit B605), and is more portable.

Changes:

  • `hermes_hud/neofetch_ai.py`
  • `hermes_hud/neofetch_anime.py`
  • `hermes_hud/neofetch_br.py`
  • `hermes_hud/neofetch_fsociety.py`

Each file also had the now-unused `import os` removed.

Closes #7.

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

Successfully merging this pull request may close these issues.

Replace os.system('clear') with ANSI escape code in neofetch themes

1 participant