You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
curses/main.c

29 lines
529 B

#include <stdlib.h>
#include <ncurses.h>
2 years ago
2 years ago
int main(int argc,char**argv) {
int rows,cols;
initscr();
getmaxyx(stdscr,rows,cols);
raw();
keypad(stdscr,TRUE);
noecho();
addch(ACS_BULLET);
addch(ACS_BOARD);
addch(ACS_CKBOARD);
addch(ACS_BBSS);
addch(ACS_BLOCK);
addch(ACS_BSBS);
addch(ACS_BTEE);
mvaddch(5,17,ACS_DARROW);
mvprintw(4,7,"There are %dx%d squares.",rows,cols);
2 years ago
mvchgat(4,10,4,A_REVERSE,0,NULL);
refresh();
getch();
endwin();
return 0;
}