Aggiunto logo all'avvio
This commit is contained in:
1 parent
750f7a9149
commit
29c375b20c
5 files changed
+18
-7
No files matched your search
Binary file not shown.
Binary file not shown.
Binary file not shown.
+17
-6
@@ -19,28 +19,34 @@
|
||||
#include <windows.h>
|
||||
#include <logic.h>
|
||||
|
||||
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");
|
||||
}
|
||||
+1
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user