aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2018-09-01 10:34:55 +0100
committerGravatar jesopo2018-09-01 10:34:55 +0100
commit41817ce25569dcc2bf27d4ffa8def3ee385bff0a (patch)
tree8b44a0b33386b5122ddd82c36c83ce213f607052
parentMerge pull request #10 from dngfx/master (diff)
signature
Add Utils.bold and Utils.underline
-rw-r--r--Utils.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Utils.py b/Utils.py
index 773e3150..15d8e2be 100644
--- a/Utils.py
+++ b/Utils.py
@@ -123,6 +123,12 @@ def color(foreground, background=None):
return "%s%s%s" % (FONT_COLOR, foreground,
"" if not background else ",%s" % background)
+def bold(s):
+ return "%s%s%s" % (FONT_BOLD, s, FONT_BOLD)
+
+def underline(s):
+ return "%s%s%s" % (FONT_UNDERLINE, s, FONT_UNDERLINE)
+
TIME_SECOND = 1
TIME_MINUTE = TIME_SECOND*60
TIME_HOUR = TIME_MINUTE*60