diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2017-06-26 14:41:57 +1000 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2017-06-26 14:41:57 +1000 |
| commit | 0bf70c105ec6cc5b6cfa3c4710c01fa78b968c54 (patch) | |
| tree | e75e02b944ea9ea9772af571eea28f2cfa1d77cb /pywal/export.py | |
| parent | 5567d576c47aa0171ab0d36ad28009eb4aad0fac (diff) | |
General: Cleanup
Diffstat (limited to 'pywal/export.py')
| -rw-r--r-- | pywal/export.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/pywal/export.py b/pywal/export.py index a153f7f..bfe3974 100644 --- a/pywal/export.py +++ b/pywal/export.py @@ -1,8 +1,6 @@ """ Export colors in various formats. """ -import pathlib -import re import shutil import subprocess @@ -17,23 +15,6 @@ def save_colors(colors, export_file, message): print(f"export: exported {message}.") -def reload_colors(vte): - """Reload colors.""" - sequence_file = pathlib.Path(s.CACHE_DIR / "sequences") - - if sequence_file.is_file(): - sequences = "".join(util.read_file(sequence_file)) - - # If vte mode was used, remove the problem sequence. - if vte: - sequences = re.sub(r"\]708;\#.{6}", "", sequences) - - # Make the terminal interpret escape sequences. - print(util.fix_escape(sequences), end="") - - exit(0) - - def reload_xrdb(export_file): """Merge the colors into the X db so new terminals use them.""" if shutil.which("xrdb"): |
