Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mas6y6 committed Dec 7, 2024
1 parent 4f7a5b1 commit a126598
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions plugins/hacknet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
from cipher.plugins import CipherPlugin, CipherAPI
from cipher.parsers import ArgumentParser
from rich.panel import Panel
import os, pygame, progressbar, time, cursor, subprocess, requests
import os, pygame, progressbar, time, subprocess, requests
from .cursor import hide, show

class HacknetPlugin(CipherPlugin):
def __init__(self, api: CipherAPI,config):
Expand Down Expand Up @@ -93,7 +94,7 @@ def traced(argsraw):
pygame.mixer.music.stop()
pygame.mixer.music.load(os.path.join(self.api.starterdir,"plugins","hacknet","traced.ogg"))
print("\033c", end="")
cursor.hide()
hide()
if os.name == "nt":
os.system("color 40")
elif os.name == "posix":
Expand All @@ -115,13 +116,13 @@ def traced(argsraw):
# bar[x].update(100-z)
columns, _ = shutil.get_terminal_size()
for z in range(110):
cursor.hide()
hide()
time.sleep(0.13)
random_string = ''.join(random.choices(string.ascii_letters + string.digits + string.punctuation, k=columns))
self.console.print(str(random_string),style="white on red",markup=False,highlight=False)

#time.sleep(14)
cursor.show()
show()
self.console.clear()
self.console.print(Panel(f"""
EMERGENCY TRACE AVERSION SEQUENCE
Expand Down

0 comments on commit a126598

Please sign in to comment.