-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsimplify.py
More file actions
26 lines (20 loc) · 835 Bytes
/
simplify.py
File metadata and controls
26 lines (20 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#--------------------------------------------------------------------------------------------------------------
# Dependancies
#--------------------------------------------------------------------------------------------------------------
import sys
import time
#--------------------------------------------------------------------------------------------------------------
# Functions
#--------------------------------------------------------------------------------------------------------------
def wait(duration=0.1):
"Waits a specified time."
time.sleep(duration)
def clear():
"Clears the console."
print("\033[H\033[J", flush=True)
def hide_cursor():
"Hides the console cursor."
sys.stdout.write("\033[?25l")
def show_cursor():
"Unhides the console cursor."
sys.stdout.write("\033[?25h")