diff --git a/build/main.o b/build/main.o index 6565e06..bbe69c6 100644 Binary files a/build/main.o and b/build/main.o differ diff --git a/build/windows.o b/build/windows.o index 014ce38..e4b04df 100644 Binary files a/build/windows.o and b/build/windows.o differ diff --git a/productManager b/productManager index 7f36848..9081935 100755 Binary files a/productManager and b/productManager differ diff --git a/src/main.c b/src/main.c index 53743a1..ca62a04 100644 --- a/src/main.c +++ b/src/main.c @@ -19,28 +19,34 @@ #include #include +void printLogoBG(); + int main(){ initscr(); + if(has_colors() == FALSE) { endwin(); warning("Your terminal does not support color"); exit(1); } start_color(); + //initialize colors + init_pair(1, COLOR_RED, COLOR_BLACK); + init_pair(2, COLOR_BLACK, COLOR_BLUE); + init_pair(3, COLOR_BLACK, COLOR_BLUE); + //initialize options noecho(); curs_set(0); raw(); - mvprintw(LINES -1, COLS / 2 - 25, "Product Manager by Vincenzo Nikodem Cesqui Podiani"); + printLogoBG(); + statusf(" "); refresh(); - //initialize colors - init_pair(1, COLOR_RED, COLOR_BLACK); - init_pair(2, COLOR_BLACK, COLOR_BLUE); - init_pair(3, COLOR_BLACK, COLOR_YELLOW); - statusf(""); + int running = 0; while(running != 6){ + refresh(); running = runMainMenu(); switch(running) { case 1: @@ -64,3 +70,8 @@ int main(){ return 0; } + +void printLogoBG(){ + wwrap_print(stdscr, LINES / 2 - 3, COLS / 2 - 5," ######### \n ################### \n ######## ##### \n ####### ### \n ###### ### \n ###### ### ## \n ############ # ### ## \n ################ ### # \n ############ ##### # \n ############## \n ######### \n ## \n ####### \n ## ## \n ## ## ###### ## ## # ## ## \n ###### ##### ######## #### ## ## ## # ## \n ## ## ## ## ## ## ## ##### ## ## ## # ## ## \n ## ## #### ## ## ## #### ####### ##### ##### ##### "); + mvprintw(LINES -1, COLS / 2 - 25, "Product Manager by Vincenzo Nikodem Cesqui Podiani"); +} diff --git a/src/windows.c b/src/windows.c index 9508ada..e413f60 100644 --- a/src/windows.c +++ b/src/windows.c @@ -155,7 +155,7 @@ void warning(char *string){ mvwprintw(warningWin, 2, 2, "ATTENZIONE!!! E' avvenuto un errore! "); wwrap_print(warningWin, 4, 3, string); - mvwprintw(warningWin, height - 1, width /2, " Premi un tasto per continuare . . . "); + mvwprintw(warningWin, height - 1, 3, " Premi un tasto per continuare . . . "); wrefresh(warningWin); getch();