34 lines
649 B
C
34 lines
649 B
C
#include "ncurses.h"
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
(void)argc;
|
|
(void)argv;
|
|
const int height = 3;
|
|
const int width = 4;
|
|
WINDOW *game;
|
|
|
|
initscr();
|
|
cbreak();
|
|
game = newwin(height, width, 0, 0);
|
|
box(game, 0, 0);
|
|
wrefresh(game);
|
|
// start_color();
|
|
// init_pair(0, COLOR_BLACK, COLOR_RED);
|
|
// init_pair(1, COLOR_BLACK, COLOR_GREEN);
|
|
// attron(COLOR_PAIR(0));
|
|
// wprintw(game, "^[[0;31;40m");
|
|
// wprintw(game, "Hello World !!!");
|
|
// for (int i = 0; i < argc; i++)
|
|
// {
|
|
// attron(COLOR_PAIR(1 - i % 2));
|
|
// wprintw(game, argv[i]);
|
|
// wprintw(game, " ");
|
|
// }
|
|
// wrefresh(game);
|
|
wgetch(game);
|
|
endwin();
|
|
|
|
return SUCCESS;
|
|
}
|