diff --git a/pywal/reload.py b/pywal/reload.py index 24106c74..df3277b1 100644 --- a/pywal/reload.py +++ b/pywal/reload.py @@ -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]) diff --git a/pywal/templates/colors-tty.sh b/pywal/templates/colors-tty.sh index 5eb5487a..41d3e061 100644 --- a/pywal/templates/colors-tty.sh +++ b/pywal/templates/colors-tty.sh @@ -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} @@ -17,3 +17,4 @@ \e]PE{color14.strip} \e]PF{color15.strip} \ec' +fi