-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.c
67 lines (63 loc) · 3.06 KB
/
test.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/* ************************************************************************** */
/* LE - / */
/* / */
/* test.c .:: .:/ . .:: */
/* +:+:+ +: +: +:+:+ */
/* By: cgarrot <[email protected]> +:+ +: +: +:+ */
/* #+# #+ #+ #+# */
/* Created: 2018/10/04 15:35:49 by cgarrot #+# ## ## #+# */
/* Updated: 2018/11/22 17:14:24 by cgarrot ### #+. /#+ ###.fr */
/* / */
/* / */
/* ************************************************************************** */
#include <ncurses.h>
//#include <curses.h>
#include "multipla.h"
#include <signal.h>
#include <unistd.h>
int main(void)
{
int x;
int y;
int i;
x = 200;
y = 20;
initscr();
noecho();
curs_set(0);
nodelay(stdscr, TRUE);
leaveok(stdscr, TRUE);
scrollok(stdscr, FALSE);
while (x-- != -30)
{
//printf("salut");
mvprintw(y, x, " ______________________________________ ");
mvprintw(y+1, x, " / /-----------| |----------| |--------- \\ ");
mvprintw(y+2, x, " / / | | | | \\ ");
mvprintw(y+3, x, " / / | | | | | ");
mvprintw(y+4, x, " _________/ / | | | | | ");
mvprintw(y+5, x, " _______(|___________\\_________________| |----------===============\\ ");
mvprintw(y+6, x, " / | (=) | (=)| /\\ ");
mvprintw(y+7, x, " / | | | \\/\\ ");
mvprintw(y+8, x, " /<> ________ | | |________ \\ ");
if (++i % 2 == 0)
{
mvprintw(y+9, x, " | / ______ \\ | <==================|===========> / ______ \\ -/ ");
mvprintw(y+10, x, " |) | / \\ / \\ |__|_____________________|_____________| / \\ / \\ | / ");
mvprintw(y+11, x, " \\____ | | () | |______________________________________| | () | |_/ ");
mvprintw(y+12, x, " \\_/__\\_/ \\_/__\\_/ ");
}
else
{
mvprintw(y+9, x, " | / ______ \\ | <==================|===========> / ______ \\ -/ ");
mvprintw(y+10, x, " |) | / || \\ |__|_____________________|_____________| / || \\ | / ");
mvprintw(y+11, x, " \\____ | |---()---| |______________________________________| |---()---| |_/ ");
mvprintw(y+12, x, " \\__||__/ \\__||__/ ");
}
getch();
refresh();
usleep(40000);
}
endwin();
return (0);
}