aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-02-28 17:37:27 +0100
committerMattias Andrée <maandree@operamail.com>2014-02-28 17:37:27 +0100
commit1a241bd3a34aaf53a9e9d222aa9cd2859a9cd986 (patch)
tree86008e5b961bacc409702a6143c42f85d8f1eb30 /examples
parentderp (diff)
downloadxpybar-1a241bd3a34aaf53a9e9d222aa9cd2859a9cd986.tar.gz
xpybar-1a241bd3a34aaf53a9e9d222aa9cd2859a9cd986.tar.bz2
xpybar-1a241bd3a34aaf53a9e9d222aa9cd2859a9cd986.tar.xz
add draw_coloured_text
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/simple4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/simple b/examples/simple
index 0291e2b..f14d6d2 100644
--- a/examples/simple
+++ b/examples/simple
@@ -2,9 +2,9 @@
# A simple xpybar configuration example
-OUTPUT, YPOS, TOP = 0, 24, True
+OUTPUT, HEIGHT, YPOS, TOP = 0, 24, 24, True
def redraw():
bar.clear()
- bar.draw_text(0, 10, '°°° TEST °°°')
+ bar.draw_coloured_text(0, 10, 0, 2, '°°°² \033[31;47m|T|\033[49mE|\033[mS\033[38;2;128;16;255m|T|\033[0m ²°°°\nTEST')