conemu support

This commit is contained in:
Jimmy O'Rourke 2018-03-25 18:10:48 -04:00 committed by Samuel Henrique
parent c08dcb2bf2
commit 7255865640
2 changed files with 20 additions and 1 deletions

View file

@ -0,0 +1,19 @@
import os
import sys
from . import TerminalProvider as _TProv
class ConEmuProvider(_TProv):
def is_compatible() -> bool:
return "CONEMUPID" in os.environ
def change_terminal(path: str):
subprocess.run(['ConEmuC', '-GuiMacro', 'SetOption("Background Image", "{}")'.format(path)], check=True)
def clear():
subprocess.run(['ConEmuC', '-GuiMacro', 'SetOption("Background Image", "")'], check=True)
def __str__():
return "ConEmu"

View file

@ -36,7 +36,7 @@ Pokemon Terminal Themes.
from Kanto, Johto, Hoenn, Sinnoh, Unova, and Kalos.
Change the Terminal Background & Desktop Wallpaper.
Supports ITerm2, Terminology & Tilix.""",
Supports ITerm2, Terminology, Tilix, & ConEmu.""",
url="https://github.com/LazoCoder/Pokemon-Terminal",
author="LazoCoder",