diff -r 2bead23b1262 -r ebe732b9ef19 demos/01_buffer.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/demos/01_buffer.py Sat Mar 15 11:05:12 2014 +0100 @@ -0,0 +1,22 @@ +#!/usr/bin/env python3 + +import sys +sys.path.append('..') + +from tuikit.core.buffer import Buffer +from tuikit.driver.driver import Driver + + +buffer = Buffer(16, 8) +buffer.fill(c='#') +buffer.hline(1, 1, 14, c='-') +buffer.hline(1, 6, 14, c='-') +buffer.vline(7, 2, 4, c='|') +buffer.puts(8, 4, 'Hello!') +buffer.frame() + +driver = Driver() +driver.init() +driver.draw(buffer) +driver.close() +