changeset 78 | 6031e99c8ad3 |
child 79 | dbdc38f9981a |
77:fc1989059e19 | 78:6031e99c8ad3 |
---|---|
1 #!/usr/bin/env python3 |
|
2 |
|
3 import sys |
|
4 sys.path.append('..') |
|
5 |
|
6 from tuikit.core.buffer import Buffer |
|
7 |
|
8 |
|
9 buf = Buffer(16, 8) |
|
10 buf.fill(c='#') |
|
11 buf.hline(1, 1, 14, c='-') |
|
12 buf.hline(1, 6, 14, c='-') |
|
13 buf.vline(7, 2, 4, c='|') |
|
14 buf.puts(8, 4, 'Hello!') |
|
15 |
|
16 for y in range(buf.size.h): |
|
17 for x in range(buf.size.w): |
|
18 print(buf.getch(x, y), end='') |
|
19 print() |