mirror of
https://github.com/LazoCoder/Pokemon-Terminal
synced 2024-11-23 04:13:20 +00:00
conemu support
This commit is contained in:
parent
c08dcb2bf2
commit
7255865640
2 changed files with 20 additions and 1 deletions
19
pokemonterminal/terminal/adapters/conemu.py
Normal file
19
pokemonterminal/terminal/adapters/conemu.py
Normal 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"
|
2
setup.py
2
setup.py
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue