Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Reload tty when TERM is set to linux-16color #639

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pywal/reload.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def tty(tty_reload):
tty_script = os.path.join(CACHE_DIR, "colors-tty.sh")
term = os.environ.get("TERM")

if tty_reload and term == "linux":
if tty_reload and (term == "linux" or term == "linux-16color"):
subprocess.Popen(["sh", tty_script])


Expand Down
3 changes: 2 additions & 1 deletion pywal/templates/colors-tty.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
[ "${{TERM:-none}}" = "linux" ] && \
if [ "${{TERM:-none}}" = "linux" ] || [ "${{TERM:-none}}" = "linux-16color" ]; then
printf '%b' '\e]P0{color0.strip}
\e]P1{color1.strip}
\e]P2{color2.strip}
Expand All @@ -17,3 +17,4 @@
\e]PE{color14.strip}
\e]PF{color15.strip}
\ec'
fi