summaryrefslogtreecommitdiff
path: root/pywal/sequences.py
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2018-10-17 15:12:33 +1100
committerDylan Araps <dylan.araps@gmail.com>2018-10-17 15:12:33 +1100
commit842be703e1ef1011ceddbff94514d74fc2d7166b (patch)
tree8cd1d506d269b4b6606d991ad50f6f7014666dd2 /pywal/sequences.py
parent33c82904527db34965225b6bd3940ade51915dae (diff)
general: fix macos issue. Closes #302
Diffstat (limited to 'pywal/sequences.py')
-rw-r--r--pywal/sequences.py29
1 files changed, 15 insertions, 14 deletions
diff --git a/pywal/sequences.py b/pywal/sequences.py
index cb70e93..c691020 100644
--- a/pywal/sequences.py
+++ b/pywal/sequences.py
@@ -57,23 +57,24 @@ def create_sequences(colors):
set_color(232, colors["special"]["background"])
])
- # This escape sequence doesn't work in VTE terminals and their parsing of
- # unknown sequences is garbage so we need to use some escape sequence
- # M A G I C to hide the output.
- # \033[s # Save cursor position.
- # \033[1000H # Move the cursor off screen.
- # \033[8m # Conceal text.
- # \033]708;#000000\033\\ # Garbage sequence.
- # \033[u # Restore cursor position.
- sequences.extend([
- "\033[s\033[1000H\033[8m%s\033[u" %
- set_special(708, colors["special"]["background"], "h", alpha),
- set_special(13, colors["special"]["cursor"], "l")
- ])
-
if OS == "Darwin":
sequences += set_iterm_tab_color(colors["special"]["background"])
+ else:
+ # This escape sequence doesn't work in VTE terminals and their parsing of
+ # unknown sequences is garbage so we need to use some escape sequence
+ # M A G I C to hide the output.
+ # \033[s # Save cursor position.
+ # \033[1000H # Move the cursor off screen.
+ # \033[8m # Conceal text.
+ # \033]708;#000000\033\\ # Garbage sequence.
+ # \033[u # Restore cursor position.
+ sequences.extend([
+ "\033[s\033[1000H\033[8m%s\033[u" %
+ set_special(708, colors["special"]["background"], "h", alpha),
+ set_special(13, colors["special"]["cursor"], "l")
+ ])
+
return "".join(sequences)