changeset 84 | 04dfb5ddf031 |
parent 83 | ebe732b9ef19 |
child 85 | 6828c5b16087 |
83:ebe732b9ef19 | 84:04dfb5ddf031 |
---|---|
16 buffer.frame() |
16 buffer.frame() |
17 |
17 |
18 driver = CursesDriver() |
18 driver = CursesDriver() |
19 with driver: |
19 with driver: |
20 driver.draw(buffer) |
20 driver.draw(buffer) |
21 buffer.setattr('red on blue, bold') |
|
22 buffer.puts(8, 4, 'Hello!') |
|
21 driver.draw(buffer, 20, 10) |
23 driver.draw(buffer, 20, 10) |
22 driver.stdscr.refresh() |
24 driver.flush() |
23 driver.stdscr.getch() |
25 driver.getevents() |
24 |
26 |