diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-02-28 17:37:27 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-02-28 17:37:27 +0100 |
commit | 1a241bd3a34aaf53a9e9d222aa9cd2859a9cd986 (patch) | |
tree | 86008e5b961bacc409702a6143c42f85d8f1eb30 /examples/simple | |
parent | derp (diff) | |
download | xpybar-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/simple')
-rw-r--r-- | examples/simple | 4 |
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') |