From 10eb63b320ba0431f5b7d634f57ce4df0f965184 Mon Sep 17 00:00:00 2001 From: jeremy Date: Sat, 25 Apr 2020 14:23:27 +0200 Subject: [PATCH] add print creepy --- term_utils.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/term_utils.py b/term_utils.py index 3a013dc..ffae161 100644 --- a/term_utils.py +++ b/term_utils.py @@ -1,6 +1,7 @@ import os import shutil import time +import random from command_helper import CommandHelper @@ -33,12 +34,20 @@ class Term: def __init__(self): self.tty = self.create_tty() - time.sleep(.5) + time.sleep(1) def print(self, msg): with open(self.tty, "w") as file: file.write(msg) + def print_creepy(self, msg): + with open(self.tty, "w") as file: + for char in msg: + file.write(char) + file.flush() + time.sleep(random.uniform(0, 0.2)) + + @staticmethod def print_all(msg): for file in os.listdir("/dev/pts"):