Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
sequence: Fix flash of colors on open.
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanaraps committed Aug 27, 2017
1 parent e3a739c commit 31ef5ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pywal/sequences.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ def create_sequences(colors, vte):
sequences = [set_color(index, colors["colors"]["color%s" % index])
for index in range(16)]

# This escape sequence doesn"t work in VTE terminals.
if not vte:
sequences.append(set_special(708, colors["special"]["background"]))

# Special colors.
# Source: https://goo.gl/KcoQgP
# 10 = foreground, 11 = background, 12 = cursor foregound
Expand All @@ -57,10 +61,6 @@ def create_sequences(colors, vte):
if OS == "Darwin":
sequences += set_iterm_tab_color(colors["special"]["background"])

# This escape sequence doesn"t work in VTE terminals.
if not vte:
sequences.append(set_special(708, colors["special"]["background"]))

return "".join(sequences)


Expand Down

0 comments on commit 31ef5ad

Please sign in to comment.