changeset 47 | 537d7c6b48a2 |
child 48 | 1f00e90fd72a |
46:2b43a7f38c34 | 47:537d7c6b48a2 |
---|---|
1 #!/usr/bin/env python3 |
|
2 # -*- coding: utf-8 -*- |
|
3 |
|
4 import sys |
|
5 sys.path.insert(0, 'build/lib.linux-x86_64-3.2') |
|
6 |
|
7 from sdlterm import SDLTerminal |
|
8 |
|
9 if __name__ == '__main__': |
|
10 term = SDLTerminal() |
|
11 term.resize(800, 600) |
|
12 term.select_font("font/DejaVuSansMono.ttf", "font/DejaVuSansMono-Bold.ttf", 12) |
|
13 term.erase() |
|
14 term.putch(5, 5, 'W') |
|
15 term.commit() |
|
16 |
|
17 while True: |
|
18 event = term.get_next_event() |
|
19 break |
|
20 |