Skip to content

Commit

Permalink
Update device.py
Browse files Browse the repository at this point in the history
  • Loading branch information
enty8080 authored Jul 23, 2024
1 parent afbfd6f commit e1d2e9a
Showing 1 changed file with 1 addition and 27 deletions.
28 changes: 1 addition & 27 deletions ghost/core/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,22 +210,6 @@ def is_rooted(self) -> bool:

return True

def do_clear(self, _) -> None:
""" Clear terminal window.
:return None: None
"""

self.print_empty('%clear', end='')

def do_exit(self, _) -> None:
""" Exit current device.
:return None: None
"""

raise EOFError

def interact(self) -> None:
""" Interact with the specified device.
Expand All @@ -238,14 +222,4 @@ def interact(self) -> None:
self.print_process("Loading device modules...")

self.print_information(f"Modules loaded: {str(len(self.external))}")

while True:
try:
self.loop()

except (EOFError, KeyboardInterrupt):
self.print_empty(end='')
break

except Exception as e:
self.print_error(f"An error occurred: {str(e)}!")
self.loop()

0 comments on commit e1d2e9a

Please sign in to comment.