From 01356561c649ab90797e9d734d82f378938cb3ad Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 21 Jun 2018 08:19:01 +1000 Subject: sequences: Fix broken sequence on macOS. --- pywal/sequences.py | 4 ++-- 1 file 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) -- cgit v1.2.3