Merge 064ffed307cc19699d7c5f252da26e05b9000fff into 236aa48e741ff8d65c4c3826db2813bf2ee6f352

This commit is contained in:
arcmags 2021-10-16 01:10:11 -05:00 committed by GitHub
commit 2f6472fdf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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") 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])

View File

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