From f52953ca6c191deffdb6f91824017dd9c7db5366 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 27 Dec 2017 19:44:22 +1100 Subject: sequences: This is it, my magnum opus --- pywal/sequences.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'pywal') 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) -- cgit v1.2.3