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 <windows.h>
|
||||||
#include <logic.h>
|
#include <logic.h>
|
||||||
|
|
||||||
|
void printLogoBG();
|
||||||
|
|
||||||
int main(){
|
int main(){
|
||||||
initscr();
|
initscr();
|
||||||
|
|
||||||
if(has_colors() == FALSE)
|
if(has_colors() == FALSE)
|
||||||
{ endwin();
|
{ endwin();
|
||||||
warning("Your terminal does not support color");
|
warning("Your terminal does not support color");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
start_color();
|
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
|
//initialize options
|
||||||
noecho();
|
noecho();
|
||||||
curs_set(0);
|
curs_set(0);
|
||||||
raw();
|
raw();
|
||||||
mvprintw(LINES -1, COLS / 2 - 25, "Product Manager by Vincenzo Nikodem Cesqui Podiani");
|
printLogoBG();
|
||||||
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(" ");
|
statusf(" ");
|
||||||
|
refresh();
|
||||||
|
|
||||||
|
|
||||||
int running = 0;
|
int running = 0;
|
||||||
while(running != 6){
|
while(running != 6){
|
||||||
|
refresh();
|
||||||
running = runMainMenu();
|
running = runMainMenu();
|
||||||
switch(running) {
|
switch(running) {
|
||||||
case 1:
|
case 1:
|
||||||
@@ -64,3 +70,8 @@ int main(){
|
|||||||
return 0;
|
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! ");
|
mvwprintw(warningWin, 2, 2, "ATTENZIONE!!! E' avvenuto un errore! ");
|
||||||
wwrap_print(warningWin, 4, 3, string);
|
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);
|
wrefresh(warningWin);
|
||||||
getch();
|
getch();
|
||||||
|
|||||||
Reference in new issue
Block a user