diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2017-06-26 09:54:24 +1000 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2017-06-26 09:54:24 +1000 |
| commit | 58e128629f8ae302f7fc1e283fac735a45a90d46 (patch) | |
| tree | 7fc23d1c78cee66c1546c22e0ea83b760d364627 | |
| parent | 9930a18a34261780941db8a1d0af1fe9e8f24c17 (diff) | |
export: Fix bug with color66 appearing in export files. Closes #6
| -rwxr-xr-x | wal | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -273,6 +273,10 @@ def set_special(index, color): ColorType.xrdb.append(f"URxvt*cursorColor: {color}") ColorType.xrdb.append(f"XTerm*cursorColor: {color}") + elif index == 66: + ColorType.xrdb.append(f"*color{index}: {color}") + ColorType.sequences.append(f"\\033]4;{index};{color}\\007") + def set_color(index, color): """Build the escape sequence we need for each color.""" @@ -320,7 +324,7 @@ def send_sequences(colors, vte): [set_color(num, color) for num, color in enumerate(colors)] # Set a blank color that isn"t affected by bold highlighting. - set_color(66, colors[0]) + set_special(66, colors[0]) # Make the terminal interpret escape sequences. sequences = fix_escape("".join(ColorType.sequences)) |
