diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2017-07-30 22:16:41 +1000 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2017-07-30 22:16:41 +1000 |
| commit | ca63452eb14a4e8211ea578061973600e6b4242d (patch) | |
| tree | a382eebe6e617cf9dfecee713af3e5c84decc159 /pywal/sequences.py | |
| parent | ddcd56828980c2ae42c19c99cbc6d974abf7f7b3 (diff) | |
sequences: Send colors 0-15
Diffstat (limited to 'pywal/sequences.py')
| -rw-r--r-- | pywal/sequences.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pywal/sequences.py b/pywal/sequences.py index 4e1457d..030f030 100644 --- a/pywal/sequences.py +++ b/pywal/sequences.py @@ -3,7 +3,7 @@ Send sequences to all open terminals. """ import os -from .settings import CACHE_DIR +from .settings import CACHE_DIR, OS from . import util @@ -19,6 +19,9 @@ def set_special(index, color): def set_color(index, color): """Convert a hex color to a text color sequence.""" + if OS == "Darwin": + return f"\033]P{index:x}{color.strip('#')}\033\\" + return f"\033]4;{index};{color}\007" |
