mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-01-23 06:18:35 +01:00
reload tty when TERM set to linux-16colors
This commit is contained in:
parent
236aa48e74
commit
064ffed307
@ -15,7 +15,7 @@ def tty(tty_reload):
|
|||||||
tty_script = os.path.join(CACHE_DIR, "colors-tty.sh")
|
tty_script = os.path.join(CACHE_DIR, "colors-tty.sh")
|
||||||
term = os.environ.get("TERM")
|
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])
|
subprocess.Popen(["sh", tty_script])
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
[ "${{TERM:-none}}" = "linux" ] && \
|
if [ "${{TERM:-none}}" = "linux" ] || [ "${{TERM:-none}}" = "linux-16color" ]; then
|
||||||
printf '%b' '\e]P0{color0.strip}
|
printf '%b' '\e]P0{color0.strip}
|
||||||
\e]P1{color1.strip}
|
\e]P1{color1.strip}
|
||||||
\e]P2{color2.strip}
|
\e]P2{color2.strip}
|
||||||
@ -17,3 +17,4 @@
|
|||||||
\e]PE{color14.strip}
|
\e]PE{color14.strip}
|
||||||
\e]PF{color15.strip}
|
\e]PF{color15.strip}
|
||||||
\ec'
|
\ec'
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user