From 1a241bd3a34aaf53a9e9d222aa9cd2859a9cd986 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 28 Feb 2014 17:37:27 +0100 Subject: add draw_coloured_text MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- examples/simple | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/simple') 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') -- cgit v1.2.3-70-g09d2