commit b4477a9dd1271f6f2963cf42c44dcdff61c46a4b
parent 66b9c41573ded51009f6657e9ece40fb76cef49b
Author: Bakar Chargeishvili <bakar@bcharge.de>
Date: Mon, 11 Dec 2023 21:20:38 +0100
Skulls work, more or less
Diffstat:
2 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/welcome.c b/welcome.c
@@ -128,6 +128,7 @@ int main()
use_default_colors();
init_pair(1, COLOR_RED, -1);
+ init_pair(2, COLOR_GREEN, -1);
WINDOW* mainframe = newwin(LINES,COLS-2,0,1);
wattron(mainframe,COLOR_PAIR(1));
@@ -175,12 +176,17 @@ int main()
wprintw(mainframe,"Wind speed:\t\t%s\n",wind.ptr);
wprintw(mainframe,"Precipitation:\t\t%s\n",precip.ptr);
wprintw(mainframe,"Sunrise and sunset:\t%s\n",sunlife.ptr);
- for (int i = 0; i < 2; ++i) {
- mvwaddstr(mainframe,20,0+i*30,skull);
- napms(200);
- }
+ WINDOW *BOARD[10];
refresh();
+ wprintw(mainframe,"%s\n", skull);
wrefresh(mainframe);
+ for (int i = 0; i < 9; i++) {
+ BOARD[i]=derwin(mainframe,8,21,20,i*20);
+ wattron(BOARD[i],COLOR_PAIR(2));
+ wprintw(BOARD[i],skull);
+ wrefresh(BOARD[i]);
+ napms(1000);
+ }
WINDOW* fr = newwin(LINES/2,EVBOX_W,LINES/2,(COLS-EVBOX_W)/2);
WINDOW* c = derwin(fr,LINES/2-2,EVBOX_W-4,1,2);
diff --git a/welcome.core b/welcome.core
Binary files differ.