mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-06-13 13:17:31 +02:00
General: Remove unused function.
This commit is contained in:
parent
c90be029e5
commit
793bf3d119
@ -45,7 +45,7 @@ def send_sequences(colors, vte):
|
|||||||
sequences.append(set_special(14, colors[0]))
|
sequences.append(set_special(14, colors[0]))
|
||||||
|
|
||||||
# Set a blank color that isn"t affected by bold highlighting.
|
# Set a blank color that isn"t affected by bold highlighting.
|
||||||
sequences.append(set_special(66, colors[0]))
|
sequences.append(set_color(66, colors[0]))
|
||||||
|
|
||||||
# This escape sequence doesn"t work in VTE terminals.
|
# This escape sequence doesn"t work in VTE terminals.
|
||||||
if not vte:
|
if not vte:
|
||||||
@ -75,6 +75,6 @@ def reload_colors(vte):
|
|||||||
sequences = re.sub(r"\]708;\#.{6}", "", sequences)
|
sequences = re.sub(r"\]708;\#.{6}", "", sequences)
|
||||||
|
|
||||||
# Make the terminal interpret escape sequences.
|
# Make the terminal interpret escape sequences.
|
||||||
print(util.fix_escape(sequences), end="")
|
print(sequences, end="")
|
||||||
|
|
||||||
exit(0)
|
exit(0)
|
||||||
|
@ -28,11 +28,6 @@ def hex_to_rgb(color):
|
|||||||
return f"{red},{green},{blue}"
|
return f"{red},{green},{blue}"
|
||||||
|
|
||||||
|
|
||||||
def fix_escape(string):
|
|
||||||
"""Decode a string."""
|
|
||||||
return bytes(string, "utf-8").decode("unicode_escape")
|
|
||||||
|
|
||||||
|
|
||||||
def disown(*cmd):
|
def disown(*cmd):
|
||||||
"""Call a system command in the background,
|
"""Call a system command in the background,
|
||||||
disown it and hide it's output."""
|
disown it and hide it's output."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user