summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2018-06-21 08:19:01 +1000
committerDylan Araps <dylan.araps@gmail.com>2018-06-21 08:19:01 +1000
commit01356561c649ab90797e9d734d82f378938cb3ad (patch)
treee5a85aaf4b071c8e5d53ef48b515f8a47aee8c6f
parent55116a483429fa211566768718e4b50cb5243a46 (diff)
sequences: Fix broken sequence on macOS.
-rw-r--r--pywal/sequences.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pywal/sequences.py b/pywal/sequences.py
index 8566975..cb70e93 100644
--- a/pywal/sequences.py
+++ b/pywal/sequences.py
@@ -22,8 +22,8 @@ def set_special(index, color, iterm_name="h", alpha=100):
def set_color(index, color):
"""Convert a hex color to a text color sequence."""
- if OS == "Darwin":
- return "\033]P%x%s\033\\" % (index, color.strip("#"))
+ if OS == "Darwin" and index < 20:
+ return "\033]P%1x%s\033\\" % (index, color.strip("#"))
return "\033]4;%s;%s\033\\" % (index, color)