diff --git a/extras.c b/extras.c new file mode 100644 index 0000000..e70a274 --- /dev/null +++ b/extras.c @@ -0,0 +1,6 @@ +#include +#include "extras.h" + +void writeExtras(){ + addch(ACS_PI); +} \ No newline at end of file diff --git a/extras.h b/extras.h new file mode 100644 index 0000000..bcd992e --- /dev/null +++ b/extras.h @@ -0,0 +1 @@ +void writeExtras(); \ No newline at end of file diff --git a/main b/main index 38615f8..19612d0 100755 Binary files a/main and b/main differ diff --git a/main.c b/main.c index 607517d..8dc52d3 100644 --- a/main.c +++ b/main.c @@ -1,10 +1,13 @@ #include #include +#include "extras.h" int main(int argc,char**argv) { int rows,cols; initscr(); + start_color(); + init_pair(1,COLOR_RED,COLOR_BLACK); getmaxyx(stdscr,rows,cols); raw(); keypad(stdscr,TRUE); @@ -16,11 +19,13 @@ int main(int argc,char**argv) { addch(ACS_BLOCK); addch(ACS_BSBS); addch(ACS_BTEE); + addch(' '); + writeExtras(); mvaddch(5,17,ACS_DARROW); + attron(COLOR_PAIR(1)); mvprintw(4,7,"There are %dx%d squares.",rows,cols); - - mvchgat(4,10,4,A_REVERSE,0,NULL); + attroff(COLOR_PAIR(1)); refresh(); getch(); endwin();