reload tty when TERM set to linux-16colors

This commit is contained in:
c.magyar 2021-10-16 00:38:05 -05:00
parent 236aa48e74
commit 064ffed307
No known key found for this signature in database
GPG Key ID: 4742C8240A64DA01
2 changed files with 3 additions and 2 deletions

View File

@ -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])

View File

@ -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