mirror of
https://github.com/LazoCoder/Pokemon-Terminal
synced 2024-11-23 12:23:04 +00:00
Property identify iTerm instead of just checking if MacOS is being used
This commit is contained in:
parent
b92ebe0530
commit
831407d4cf
2 changed files with 2 additions and 4 deletions
|
@ -20,9 +20,7 @@ def identify():
|
|||
if "TILIX_ID" in os.environ:
|
||||
return Tilix()
|
||||
|
||||
if sys.platform == "darwin":
|
||||
# TODO: identify if we are actually using iTerm.
|
||||
# This could be the stock terminal for all we know.
|
||||
if os.environ.get("ITERM_PROFILE"):
|
||||
return ITerm()
|
||||
|
||||
return NullAdapter()
|
||||
|
|
|
@ -2,7 +2,7 @@ from adapter.base import TerminalAdapterInterface
|
|||
|
||||
|
||||
class NullAdapter(TerminalAdapterInterface):
|
||||
err = "Terminal emulator not supported."
|
||||
err = "This terminal emulator is not supported."
|
||||
|
||||
def clear(self):
|
||||
print(self.err)
|
||||
|
|
Loading…
Reference in a new issue