Skip to content

Commit 2217366

Browse files
author
ekultek
committed
voided blessings in favor of ANSI codes
1 parent cd0483d commit 2217366

3 files changed

Lines changed: 33 additions & 285 deletions

File tree

etc/modules.txt

Lines changed: 0 additions & 285 deletions
This file was deleted.

lib/output.py

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
def info(text):
2+
print(
3+
"\n[\033[1m\033[32m+\033[0m] {}".format(
4+
text
5+
)
6+
)
7+
8+
9+
def prompt(text, lowercase=True):
10+
question = raw_input(
11+
"\n[\033[1m\033[36m?\033[0m] {}: ".format(
12+
text
13+
)
14+
)
15+
if lowercase:
16+
return question.lower()
17+
return question
18+
19+
20+
def error(text):
21+
print(
22+
"\n[\033[1m\033[31m!\033[0m] {}".format(
23+
text
24+
)
25+
)
26+
27+
28+
def warning(text):
29+
print(
30+
"\n[\033[1m\033[33m-\033[0m] {}".format(
31+
text
32+
)
33+
)

lib/settings.py

Whitespace-only changes.

0 commit comments

Comments
 (0)