Fix extra images in ConEmu

This commit is contained in:
Charles Milette 2018-07-19 00:11:50 -04:00 committed by Samuel Henrique
parent 1961b069f8
commit b9b07ab329

View file

@ -16,7 +16,8 @@ class ConEmuProvider(_TProv):
print(output)
def change_terminal(path: str):
ConEmuProvider.__run_command(f'SetOption("Background Image", "{path}")')
# Replace single slashes by properly escaped double backslashes (for whatever escape this scripting thing does)
ConEmuProvider.__run_command('SetOption("Background Image", "{}")'.format(path.replace("\\", "\\\\")))
def clear():
ConEmuProvider.__run_command('SetOption("Background Image", "")')