1 2 3 4 5 6 7 pre { line-height: 125%; } td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } span.line#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; }
#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; }