-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshapes_and_colors.c
More file actions
executable file
·43 lines (37 loc) · 1.37 KB
/
Copy pathshapes_and_colors.c
File metadata and controls
executable file
·43 lines (37 loc) · 1.37 KB
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
#include <stdlib.h>
#define COLOR_RED "\x1b[31m"
#define COLOR_GREEN "\x1b[32m"
#define COLOR_YELLOW "\x1b[33m"
#define COLOR_BLUE "\x1b[34m"
#define COLOR_MAGENTA "\x1b[35m"
#define COLOR_CYAN "\x1b[36m"
#define COLOR_RESET "\x1b[0m"
#define FULL_BLOCK "\U00002588"
#define SMALL_BLOCK "\U00002584"
#define VERY_SMALL_BLOCK "\U00002582"
#define LOWER_RIGHT_TRIANGLE "\U00002599"
#define EMBLEM_OF_IRAN "\U0000262B"
char *fsh_command_line_start()
{
size_t needed_size = strlen(COLOR_RED) + strlen(COLOR_RESET) + strlen(EMBLEM_OF_IRAN) + strlen(COLOR_CYAN) + strlen(FULL_BLOCK) + strlen(FULL_BLOCK) + strlen(LOWER_RIGHT_TRIANGLE) + strlen(SMALL_BLOCK) + strlen(SMALL_BLOCK) + strlen(VERY_SMALL_BLOCK) + strlen(VERY_SMALL_BLOCK) + strlen(COLOR_RESET) + 1;
char *block = malloc(needed_size);
if (block == NULL) {
printf("fucking failed a simple allocation omg\n");
return NULL;
}
strcpy(block, COLOR_CYAN);
strcat(block, "FSH ");
strcat(block, FULL_BLOCK);
strcat(block, FULL_BLOCK);
strcat(block, LOWER_RIGHT_TRIANGLE);
strcat(block, SMALL_BLOCK);
strcat(block, SMALL_BLOCK);
strcat(block, VERY_SMALL_BLOCK);
strcat(block, VERY_SMALL_BLOCK);
strcat(block, COLOR_RESET);
strcat(block, COLOR_RED);
strcat(block, " ");
strcat(block, EMBLEM_OF_IRAN);
strcat(block, COLOR_RESET);
return block;
}