5005
This commit is contained in:
parent
f0f16bdf7b
commit
5c8b1b638e
18
termbox/x.cc
18
termbox/x.cc
|
@ -1,18 +0,0 @@
|
|||
#include<iostream>
|
||||
using std::cout;
|
||||
#include"termbox.h"
|
||||
|
||||
int main() {
|
||||
tb_init();
|
||||
std::setvbuf(stdout, NULL, _IONBF, 0);
|
||||
cout << tb_width() << ' ' << tb_height();
|
||||
tb_event x;
|
||||
for (int col = 0; col <= tb_width(); ++col) {
|
||||
tb_set_cursor(col, 1);
|
||||
tb_poll_event(&x);
|
||||
cout << "a";
|
||||
tb_poll_event(&x);
|
||||
}
|
||||
tb_shutdown();
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue