From 314a655520f2fcb73cbfd3e987750281328e83c8 Mon Sep 17 00:00:00 2001 From: jeremy Date: Sat, 25 Apr 2020 11:31:33 +0200 Subject: [PATCH] merge detect trem and creat term obj --- main.py | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/main.py b/main.py index ec48913..b0e6dc3 100755 --- a/main.py +++ b/main.py @@ -1,16 +1,22 @@ #!/usr/bin/env python3 -import os import time -from term_utils import TermUtils +from term_utils import Term from detect_term import DetectTerm from command_helper import CommandHelper -print(DetectTerm.find_terminal()) +print(Term.find_terminal()) time.sleep(1) -TermUtils.print("YOU HAVE BEEN HACKED.\n") +Term.print_all("YOU HAVE BEEN HACKED.\n") + +term1 = Term.create_tty() +print(term1) +term2 = Term.create_tty() +print(term2) +term3 = Term.create_tty() +print(term3) while True: if CommandHelper.run("killall htop") == 0 or CommandHelper.run("killall top") == 0: - TermUtils.print("You tough that this will be as easy as this?\n") + Term.print("You tough that this will be as easy as this?\n") time.sleep(1)