From a6c08bff8480640f41c5f70e3617498cb1d5108f Mon Sep 17 00:00:00 2001 From: C. Scott Ananian Date: Thu, 13 Dec 2007 20:28:03 +0000 Subject: Add additional escape sequences to pippy.console library. Also tweaked size() so that it returns a pair of ints; and made 'thanks' match. --- (limited to 'data') diff --git a/data/string/thanks b/data/string/thanks index acfe4ad..391d097 100644 --- a/data/string/thanks +++ b/data/string/thanks @@ -26,14 +26,15 @@ from textwrap import fill # order to wrap text to that width -- this changes # when we run as a standalone activity instead of # inside the output pane. -lines, cols = size().split(" ") +lines, cols = size() while True: reset() print fill("OLPC would like to take this opportunity to acknowledge the community of people and projects that have made the XO laptop possible.", int(cols)) subsystem = random.choice(table.keys()) - random.choice([red, green, orange, blue, purple, cyan])() + random.choice([red, green, yellow, blue, magenta, cyan])() + #random.choice([normal, bold, underlined, inverse])() print '\n', fill("%s: %s" % (subsystem, table[subsystem]), int(cols)) time.sleep(3) -- cgit v0.9.1