mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-05-19 15:50:50 +02:00
sequence: Fix flash of colors on open.
This commit is contained in:
parent
e3a739c110
commit
31ef5ad58a
@ -45,6 +45,10 @@ def create_sequences(colors, vte):
|
|||||||
sequences = [set_color(index, colors["colors"]["color%s" % index])
|
sequences = [set_color(index, colors["colors"]["color%s" % index])
|
||||||
for index in range(16)]
|
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.
|
# Special colors.
|
||||||
# Source: https://goo.gl/KcoQgP
|
# Source: https://goo.gl/KcoQgP
|
||||||
# 10 = foreground, 11 = background, 12 = cursor foregound
|
# 10 = foreground, 11 = background, 12 = cursor foregound
|
||||||
@ -57,10 +61,6 @@ def create_sequences(colors, vte):
|
|||||||
if OS == "Darwin":
|
if OS == "Darwin":
|
||||||
sequences += set_iterm_tab_color(colors["special"]["background"])
|
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)
|
return "".join(sequences)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user