mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-01-10 16:08:11 +01:00
sequences: Fix bell sounding
This commit is contained in:
parent
8d391d0820
commit
249a00ef74
@ -16,9 +16,9 @@ def set_special(index, color, iterm_name="h"):
|
|||||||
return "\033]P%s%s\033\\" % (iterm_name, color.strip("#"))
|
return "\033]P%s%s\033\\" % (iterm_name, color.strip("#"))
|
||||||
|
|
||||||
if index in [11, 708] and alpha != 100:
|
if index in [11, 708] and alpha != 100:
|
||||||
return "\033]%s;[%s]%s\007" % (index, alpha, color)
|
return "\033]%s;[%s]%s\033\\" % (index, alpha, color)
|
||||||
|
|
||||||
return "\033]%s;%s\007" % (index, color)
|
return "\033]%s;%s\033\\" % (index, color)
|
||||||
|
|
||||||
|
|
||||||
def set_color(index, color):
|
def set_color(index, color):
|
||||||
@ -26,7 +26,7 @@ def set_color(index, color):
|
|||||||
if OS == "Darwin":
|
if OS == "Darwin":
|
||||||
return "\033]P%x%s\033\\" % (index, color.strip("#"))
|
return "\033]P%x%s\033\\" % (index, color.strip("#"))
|
||||||
|
|
||||||
return "\033]4;%s;%s\007" % (index, color)
|
return "\033]4;%s;%s\033\\" % (index, color)
|
||||||
|
|
||||||
|
|
||||||
def set_iterm_tab_color(color):
|
def set_iterm_tab_color(color):
|
||||||
@ -65,9 +65,9 @@ def create_sequences(colors):
|
|||||||
# \033[s # Save cursor position.
|
# \033[s # Save cursor position.
|
||||||
# \033[1000H # Move the cursor off screen.
|
# \033[1000H # Move the cursor off screen.
|
||||||
# \033[8m # Conceal text.
|
# \033[8m # Conceal text.
|
||||||
# \033]708;#000000\007 # Garbage sequence.
|
# \033]708;#000000\033\\ # Garbage sequence.
|
||||||
# \033[u # Restore cursor position.
|
# \033[u # Restore cursor position.
|
||||||
sequences.append("\033[s\033[1000H\033[8m\033]708;%s\007\033[u" %
|
sequences.append("\033[s\033[1000H\033[8m\033]708;%s\234\033[u" %
|
||||||
colors['special']['background'])
|
colors['special']['background'])
|
||||||
|
|
||||||
# Show the cursor.
|
# Show the cursor.
|
||||||
|
Loading…
Reference in New Issue
Block a user