demos/02_curses.py
changeset 84 04dfb5ddf031
parent 83 ebe732b9ef19
child 85 6828c5b16087
--- a/demos/02_curses.py	Sat Mar 15 11:05:12 2014 +0100
+++ b/demos/02_curses.py	Sat Mar 15 14:43:47 2014 +0100
@@ -18,7 +18,9 @@
 driver = CursesDriver()
 with driver:
     driver.draw(buffer)
+    buffer.setattr('red on blue, bold')
+    buffer.puts(8, 4, 'Hello!')
     driver.draw(buffer, 20, 10)
-    driver.stdscr.refresh()
-    driver.stdscr.getch()
+    driver.flush()
+    driver.getevents()