summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2017-12-27 19:44:22 +1100
committerDylan Araps <dylan.araps@gmail.com>2017-12-27 19:44:22 +1100
commitf52953ca6c191deffdb6f91824017dd9c7db5366 (patch)
tree76bd17051af6b1a4186e6eb34eb944a30c211143
parentc0db2e92f1565f2e68b17463c6dd2841ecd7e5ea (diff)
sequences: This is it, my magnum opus
-rw-r--r--pywal/sequences.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/pywal/sequences.py b/pywal/sequences.py
index 32595d7..61c981b 100644
--- a/pywal/sequences.py
+++ b/pywal/sequences.py
@@ -60,8 +60,14 @@ def create_sequences(colors):
# Send sequences to object.
util.Color.sequences = "".join(sequences)
- # This escape sequence doesn"t work in VTE terminals.
- sequences.append(set_special(708, 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.
+ # \0337 # Save cursor position.
+ # \033[8m # Conceal text.
+ # \033]708;#000000\007 # Garbage sequence.
+ # \0338 i # Restore cursor position.
+ sequences.append(f"\0337\033[8m\033]708;{colors['special']['background']}\007\0338")
return "".join(sequences)