mirror of
https://github.com/ProgramSnail/rts_game_backend.git
synced 2026-01-25 12:57:08 +00:00
hello world ncurses test
This commit is contained in:
parent
8004bb42ee
commit
8de85dcd62
5 changed files with 6 additions and 71 deletions
4
main.cpp
4
main.cpp
|
|
@ -1,9 +1,13 @@
|
|||
#include <curses.h>
|
||||
#include <cstdlib>
|
||||
#include <unistd.h>
|
||||
|
||||
int main() {
|
||||
initscr();
|
||||
noecho();
|
||||
mvprintw(0, 0, "Hello World!");
|
||||
refresh();
|
||||
sleep(1);
|
||||
curs_set(false);
|
||||
endwin();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue