Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions cupp.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,14 @@ def komb(seq, start, special=""):


def print_to_file(filename, unique_list_finished):

def clear_screen():
if(os.name == "nt"):
os.system("cls")
else:
os.system("clear")


f = open(filename, "w")
unique_list_finished.sort()
f.write(os.linesep.join(unique_list_finished))
Expand All @@ -140,6 +148,13 @@ def print_to_file(filename, unique_list_finished):
with open(filename, "r+") as wlist:
data = wlist.readlines()
for line in data:

try:
print("\033[1;32m[" + filename + "] \033[1;33m" + line)
time.sleep(0000.1)
clear_screen()
except KeyboardInterrupt:
break
print("\033[1;32m[" + filename + "] \033[1;33m" + line)
time.sleep(0000.1)
os.system("clear")
Expand Down
Binary file added screenshots/cupp_example.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.