diff options
author | C. Scott Ananian <cscott@laptop.org> | 2007-12-13 20:28:03 (GMT) |
---|---|---|
committer | C. Scott Ananian <cscott@laptop.org> | 2007-12-13 20:28:03 (GMT) |
commit | a6c08bff8480640f41c5f70e3617498cb1d5108f (patch) | |
tree | 4744e50da30dbefbf4c301b098d0967f0c2e729d /data | |
parent | 79b160ce0cde1503e0564cfe9e7357e54b497bad (diff) |
Add additional escape sequences to pippy.console library.
Also tweaked size() so that it returns a pair of ints; and made 'thanks'
match.
Diffstat (limited to 'data')
-rw-r--r-- | data/string/thanks | 5 |
1 files changed, 3 insertions, 2 deletions
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) |