rts_game_backend/main.cpp

19 lines
343 B
C++
Raw Normal View History

2021-03-21 14:13:02 +03:00
#include <curses.h>
#include <cstdlib>
2021-03-21 17:36:43 +03:00
#include <unistd.h>
2021-03-21 14:13:02 +03:00
int main() {
2021-03-21 17:43:16 +03:00
size_t y;
size_t x;
2021-03-21 17:27:16 +03:00
initscr();
noecho();
curs_set(false);
2021-03-21 17:43:16 +03:00
for (size_t i = 0; ; ++i) {
clear();
getmaxyx(stdscr, y, x);
mvprintw(i % y, i % x, "Hello World!");
refresh();
usleep(30000);
}
2021-03-21 17:27:16 +03:00
endwin();
2021-03-21 14:13:02 +03:00
}