Skip to content

Commit 4a436a1

Browse files
authored
Update main.py
Added option to print the console(since you might be using it that way)
1 parent e6f7d2b commit 4a436a1

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

main.py

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ def clear():
428428

429429
if test_string == test_string998:
430430

431-
print("\nrun 100% succesfully")
431+
print("\nran 100% succesfully")
432432

433433
if not test_string == test_string998:
434434

@@ -643,7 +643,7 @@ def clear():
643643
hex_log_three_99.write(time_usage_formatted)
644644
hex_log_three_99.close()
645645

646-
print("\n type clear to clear the text files.. or clear all to clear the text files and the color_code.txt( will not work without a color code) or you can always use delete all")
646+
print("\ntype clear to clear the text files.. or clear all to clear the text files and the color_code.txt( will not work without a color code) or you can always use delete all, use print to print the contents of the console.")
647647

648648
clear_files_option=input("\npress any button to close this window: ")
649649

@@ -829,4 +829,19 @@ def clear():
829829

830830
os.rmdir(os.getcwd()+"/hexadecimal_logs")
831831

832-
832+
if clear_files_option.lower() == "print":
833+
834+
print("\nPrinting contents of Console....")
835+
836+
print_content = 0
837+
838+
string_to_use = ""
839+
840+
while print_content < len(log.messages):
841+
842+
string_to_use=string_to_use+(log.messages[print_content])
843+
844+
print_content = print_content + 1
845+
846+
print("\n")
847+
print(string_to_use)

0 commit comments

Comments
 (0)