ufos 1.0.91 → 1.0.94
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +62 -51
- data/VERSION_NUMBER +1 -1
- data/bin/autocorrect +312 -0
- data/bin/black +0 -0
- data/bin/black_bold +0 -0
- data/bin/black_bold_underline +0 -0
- data/bin/black_underline +0 -0
- data/bin/blue +0 -0
- data/bin/blue_bold +0 -0
- data/bin/blue_bold_underline +0 -0
- data/bin/blue_underline +0 -0
- data/bin/bold +0 -0
- data/bin/cyan +0 -0
- data/bin/cyan_bold +0 -0
- data/bin/cyan_bold_underline +0 -0
- data/bin/cyan_underline +0 -0
- data/bin/green +0 -0
- data/bin/green_bold +0 -0
- data/bin/green_bold_underline +0 -0
- data/bin/green_underline +0 -0
- data/bin/magenta +0 -0
- data/bin/magenta_bold +0 -0
- data/bin/magenta_bold_underline +0 -0
- data/bin/magenta_underline +0 -0
- data/bin/red +0 -0
- data/bin/red_bold +0 -0
- data/bin/red_bold_underline +0 -0
- data/bin/red_underline +0 -0
- data/bin/underline +0 -0
- data/bin/white +0 -0
- data/bin/white_bold +0 -0
- data/bin/white_bold_underline +0 -0
- data/bin/white_underline +0 -0
- data/bin/yellow +0 -0
- data/bin/yellow_bold +0 -0
- data/bin/yellow_bold_underline +0 -0
- data/bin/yellow_underline +0 -0
- data/documentation/autocorrect +3 -0
- data/documentation/ctit +12 -1
- data/documentation/email +2 -2
- data/documentation/left_right.exe +4 -3
- data/gem_data/VERSION_NUMBER +1 -1
- data/gem_data/push_snap +30 -0
- data/images/Store.png +0 -0
- data/index.html +60 -57
- data/non_compiled_programs/autocorrect +312 -0
- data/push_snap +30 -0
- data/src/color_tools/black +0 -0
- data/src/color_tools/black.c +9 -12
- data/src/color_tools/black_bold +0 -0
- data/src/color_tools/black_bold.c +9 -12
- data/src/color_tools/black_bold_underline +0 -0
- data/src/color_tools/black_bold_underline.c +9 -12
- data/src/color_tools/black_underline +0 -0
- data/src/color_tools/black_underline.c +9 -12
- data/src/color_tools/blue +0 -0
- data/src/color_tools/blue.c +9 -12
- data/src/color_tools/blue_bold +0 -0
- data/src/color_tools/blue_bold.c +9 -12
- data/src/color_tools/blue_bold_underline +0 -0
- data/src/color_tools/blue_bold_underline.c +9 -12
- data/src/color_tools/blue_underline +0 -0
- data/src/color_tools/blue_underline.c +9 -12
- data/src/color_tools/bold +0 -0
- data/src/color_tools/bold.c +9 -12
- data/src/color_tools/colors.rb +9 -12
- data/src/color_tools/cyan +0 -0
- data/src/color_tools/cyan.c +9 -12
- data/src/color_tools/cyan_bold +0 -0
- data/src/color_tools/cyan_bold.c +9 -12
- data/src/color_tools/cyan_bold_underline +0 -0
- data/src/color_tools/cyan_bold_underline.c +9 -12
- data/src/color_tools/cyan_underline +0 -0
- data/src/color_tools/cyan_underline.c +9 -12
- data/src/color_tools/green +0 -0
- data/src/color_tools/green.c +9 -12
- data/src/color_tools/green_bold +0 -0
- data/src/color_tools/green_bold.c +9 -12
- data/src/color_tools/green_bold_underline +0 -0
- data/src/color_tools/green_bold_underline.c +9 -12
- data/src/color_tools/green_underline +0 -0
- data/src/color_tools/green_underline.c +9 -12
- data/src/color_tools/magenta +0 -0
- data/src/color_tools/magenta.c +9 -12
- data/src/color_tools/magenta_bold +0 -0
- data/src/color_tools/magenta_bold.c +9 -12
- data/src/color_tools/magenta_bold_underline +0 -0
- data/src/color_tools/magenta_bold_underline.c +9 -12
- data/src/color_tools/magenta_underline +0 -0
- data/src/color_tools/magenta_underline.c +9 -12
- data/src/color_tools/red +0 -0
- data/src/color_tools/red.c +9 -12
- data/src/color_tools/red_bold +0 -0
- data/src/color_tools/red_bold.c +9 -12
- data/src/color_tools/red_bold_underline +0 -0
- data/src/color_tools/red_bold_underline.c +9 -12
- data/src/color_tools/red_underline +0 -0
- data/src/color_tools/red_underline.c +9 -12
- data/src/color_tools/underline +0 -0
- data/src/color_tools/underline.c +9 -12
- data/src/color_tools/white +0 -0
- data/src/color_tools/white.c +9 -12
- data/src/color_tools/white_bold +0 -0
- data/src/color_tools/white_bold.c +9 -12
- data/src/color_tools/white_bold_underline +0 -0
- data/src/color_tools/white_bold_underline.c +9 -12
- data/src/color_tools/white_underline +0 -0
- data/src/color_tools/white_underline.c +9 -12
- data/src/color_tools/yellow +0 -0
- data/src/color_tools/yellow.c +9 -12
- data/src/color_tools/yellow_bold +0 -0
- data/src/color_tools/yellow_bold.c +9 -12
- data/src/color_tools/yellow_bold_underline +0 -0
- data/src/color_tools/yellow_bold_underline.c +9 -12
- data/src/color_tools/yellow_underline +0 -0
- data/src/color_tools/yellow_underline.c +9 -12
- metadata +8 -2
data/src/color_tools/red.c
CHANGED
@@ -42,11 +42,11 @@
|
|
42
42
|
#define FIRST_COLOR "\e[31m"
|
43
43
|
#define SECOND_COLOR "\e[0m"
|
44
44
|
|
45
|
-
int main(int argc, char** argv) {
|
46
|
-
fputs(FIRST_COLOR, stdout);
|
47
45
|
|
48
|
-
|
46
|
+
int main(int argc, char** argv) {
|
49
47
|
if (argc != 1) {
|
48
|
+
fputs(FIRST_COLOR, stdout);
|
49
|
+
|
50
50
|
for (int i = 1; i < argc; ++i) {
|
51
51
|
if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) {
|
52
52
|
fputs(HELP_STR, stdout);
|
@@ -57,22 +57,19 @@ int main(int argc, char** argv) {
|
|
57
57
|
}
|
58
58
|
|
59
59
|
putchar('\n');
|
60
|
-
|
61
|
-
|
60
|
+
|
61
|
+
fputs(SECOND_COLOR, stdout);
|
62
|
+
return 0;
|
62
63
|
}
|
64
|
+
|
65
|
+
fputs(FIRST_COLOR, stdout);
|
63
66
|
|
64
67
|
for (;;) {
|
65
68
|
const int c = getchar();
|
66
69
|
|
67
|
-
if (c == EOF)
|
68
|
-
|
70
|
+
if (c == EOF) { fputs(SECOND_COLOR, stdout); return 0; }
|
69
71
|
putchar(c);
|
70
72
|
}
|
71
|
-
|
72
|
-
|
73
|
-
end:
|
74
|
-
fputs(SECOND_COLOR, stdout);
|
75
|
-
return 0;
|
76
73
|
}
|
77
74
|
|
78
75
|
|
data/src/color_tools/red_bold
CHANGED
Binary file
|
data/src/color_tools/red_bold.c
CHANGED
@@ -42,11 +42,11 @@
|
|
42
42
|
#define FIRST_COLOR "\e[1m\e[31m"
|
43
43
|
#define SECOND_COLOR "\e[0m\e[0m"
|
44
44
|
|
45
|
-
int main(int argc, char** argv) {
|
46
|
-
fputs(FIRST_COLOR, stdout);
|
47
45
|
|
48
|
-
|
46
|
+
int main(int argc, char** argv) {
|
49
47
|
if (argc != 1) {
|
48
|
+
fputs(FIRST_COLOR, stdout);
|
49
|
+
|
50
50
|
for (int i = 1; i < argc; ++i) {
|
51
51
|
if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) {
|
52
52
|
fputs(HELP_STR, stdout);
|
@@ -57,22 +57,19 @@ int main(int argc, char** argv) {
|
|
57
57
|
}
|
58
58
|
|
59
59
|
putchar('\n');
|
60
|
-
|
61
|
-
|
60
|
+
|
61
|
+
fputs(SECOND_COLOR, stdout);
|
62
|
+
return 0;
|
62
63
|
}
|
64
|
+
|
65
|
+
fputs(FIRST_COLOR, stdout);
|
63
66
|
|
64
67
|
for (;;) {
|
65
68
|
const int c = getchar();
|
66
69
|
|
67
|
-
if (c == EOF)
|
68
|
-
|
70
|
+
if (c == EOF) { fputs(SECOND_COLOR, stdout); return 0; }
|
69
71
|
putchar(c);
|
70
72
|
}
|
71
|
-
|
72
|
-
|
73
|
-
end:
|
74
|
-
fputs(SECOND_COLOR, stdout);
|
75
|
-
return 0;
|
76
73
|
}
|
77
74
|
|
78
75
|
|
Binary file
|
@@ -42,11 +42,11 @@
|
|
42
42
|
#define FIRST_COLOR "\e[4m\e[1m\e[31m"
|
43
43
|
#define SECOND_COLOR "\e[0m\e[0m\e[0m"
|
44
44
|
|
45
|
-
int main(int argc, char** argv) {
|
46
|
-
fputs(FIRST_COLOR, stdout);
|
47
45
|
|
48
|
-
|
46
|
+
int main(int argc, char** argv) {
|
49
47
|
if (argc != 1) {
|
48
|
+
fputs(FIRST_COLOR, stdout);
|
49
|
+
|
50
50
|
for (int i = 1; i < argc; ++i) {
|
51
51
|
if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) {
|
52
52
|
fputs(HELP_STR, stdout);
|
@@ -57,22 +57,19 @@ int main(int argc, char** argv) {
|
|
57
57
|
}
|
58
58
|
|
59
59
|
putchar('\n');
|
60
|
-
|
61
|
-
|
60
|
+
|
61
|
+
fputs(SECOND_COLOR, stdout);
|
62
|
+
return 0;
|
62
63
|
}
|
64
|
+
|
65
|
+
fputs(FIRST_COLOR, stdout);
|
63
66
|
|
64
67
|
for (;;) {
|
65
68
|
const int c = getchar();
|
66
69
|
|
67
|
-
if (c == EOF)
|
68
|
-
|
70
|
+
if (c == EOF) { fputs(SECOND_COLOR, stdout); return 0; }
|
69
71
|
putchar(c);
|
70
72
|
}
|
71
|
-
|
72
|
-
|
73
|
-
end:
|
74
|
-
fputs(SECOND_COLOR, stdout);
|
75
|
-
return 0;
|
76
73
|
}
|
77
74
|
|
78
75
|
|
Binary file
|
@@ -42,11 +42,11 @@
|
|
42
42
|
#define FIRST_COLOR "\e[4m\e[31m"
|
43
43
|
#define SECOND_COLOR "\e[0m\e[0m"
|
44
44
|
|
45
|
-
int main(int argc, char** argv) {
|
46
|
-
fputs(FIRST_COLOR, stdout);
|
47
45
|
|
48
|
-
|
46
|
+
int main(int argc, char** argv) {
|
49
47
|
if (argc != 1) {
|
48
|
+
fputs(FIRST_COLOR, stdout);
|
49
|
+
|
50
50
|
for (int i = 1; i < argc; ++i) {
|
51
51
|
if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) {
|
52
52
|
fputs(HELP_STR, stdout);
|
@@ -57,22 +57,19 @@ int main(int argc, char** argv) {
|
|
57
57
|
}
|
58
58
|
|
59
59
|
putchar('\n');
|
60
|
-
|
61
|
-
|
60
|
+
|
61
|
+
fputs(SECOND_COLOR, stdout);
|
62
|
+
return 0;
|
62
63
|
}
|
64
|
+
|
65
|
+
fputs(FIRST_COLOR, stdout);
|
63
66
|
|
64
67
|
for (;;) {
|
65
68
|
const int c = getchar();
|
66
69
|
|
67
|
-
if (c == EOF)
|
68
|
-
|
70
|
+
if (c == EOF) { fputs(SECOND_COLOR, stdout); return 0; }
|
69
71
|
putchar(c);
|
70
72
|
}
|
71
|
-
|
72
|
-
|
73
|
-
end:
|
74
|
-
fputs(SECOND_COLOR, stdout);
|
75
|
-
return 0;
|
76
73
|
}
|
77
74
|
|
78
75
|
|
data/src/color_tools/underline
CHANGED
Binary file
|
data/src/color_tools/underline.c
CHANGED
@@ -42,11 +42,11 @@
|
|
42
42
|
#define FIRST_COLOR "\e[4m"
|
43
43
|
#define SECOND_COLOR "\e[0m"
|
44
44
|
|
45
|
-
int main(int argc, char** argv) {
|
46
|
-
fputs(FIRST_COLOR, stdout);
|
47
45
|
|
48
|
-
|
46
|
+
int main(int argc, char** argv) {
|
49
47
|
if (argc != 1) {
|
48
|
+
fputs(FIRST_COLOR, stdout);
|
49
|
+
|
50
50
|
for (int i = 1; i < argc; ++i) {
|
51
51
|
if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) {
|
52
52
|
fputs(HELP_STR, stdout);
|
@@ -57,22 +57,19 @@ int main(int argc, char** argv) {
|
|
57
57
|
}
|
58
58
|
|
59
59
|
putchar('\n');
|
60
|
-
|
61
|
-
|
60
|
+
|
61
|
+
fputs(SECOND_COLOR, stdout);
|
62
|
+
return 0;
|
62
63
|
}
|
64
|
+
|
65
|
+
fputs(FIRST_COLOR, stdout);
|
63
66
|
|
64
67
|
for (;;) {
|
65
68
|
const int c = getchar();
|
66
69
|
|
67
|
-
if (c == EOF)
|
68
|
-
|
70
|
+
if (c == EOF) { fputs(SECOND_COLOR, stdout); return 0; }
|
69
71
|
putchar(c);
|
70
72
|
}
|
71
|
-
|
72
|
-
|
73
|
-
end:
|
74
|
-
fputs(SECOND_COLOR, stdout);
|
75
|
-
return 0;
|
76
73
|
}
|
77
74
|
|
78
75
|
|
data/src/color_tools/white
CHANGED
Binary file
|
data/src/color_tools/white.c
CHANGED
@@ -42,11 +42,11 @@
|
|
42
42
|
#define FIRST_COLOR "\e[37m"
|
43
43
|
#define SECOND_COLOR "\e[0m"
|
44
44
|
|
45
|
-
int main(int argc, char** argv) {
|
46
|
-
fputs(FIRST_COLOR, stdout);
|
47
45
|
|
48
|
-
|
46
|
+
int main(int argc, char** argv) {
|
49
47
|
if (argc != 1) {
|
48
|
+
fputs(FIRST_COLOR, stdout);
|
49
|
+
|
50
50
|
for (int i = 1; i < argc; ++i) {
|
51
51
|
if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) {
|
52
52
|
fputs(HELP_STR, stdout);
|
@@ -57,22 +57,19 @@ int main(int argc, char** argv) {
|
|
57
57
|
}
|
58
58
|
|
59
59
|
putchar('\n');
|
60
|
-
|
61
|
-
|
60
|
+
|
61
|
+
fputs(SECOND_COLOR, stdout);
|
62
|
+
return 0;
|
62
63
|
}
|
64
|
+
|
65
|
+
fputs(FIRST_COLOR, stdout);
|
63
66
|
|
64
67
|
for (;;) {
|
65
68
|
const int c = getchar();
|
66
69
|
|
67
|
-
if (c == EOF)
|
68
|
-
|
70
|
+
if (c == EOF) { fputs(SECOND_COLOR, stdout); return 0; }
|
69
71
|
putchar(c);
|
70
72
|
}
|
71
|
-
|
72
|
-
|
73
|
-
end:
|
74
|
-
fputs(SECOND_COLOR, stdout);
|
75
|
-
return 0;
|
76
73
|
}
|
77
74
|
|
78
75
|
|
data/src/color_tools/white_bold
CHANGED
Binary file
|
@@ -42,11 +42,11 @@
|
|
42
42
|
#define FIRST_COLOR "\e[1m\e[37m"
|
43
43
|
#define SECOND_COLOR "\e[0m\e[0m"
|
44
44
|
|
45
|
-
int main(int argc, char** argv) {
|
46
|
-
fputs(FIRST_COLOR, stdout);
|
47
45
|
|
48
|
-
|
46
|
+
int main(int argc, char** argv) {
|
49
47
|
if (argc != 1) {
|
48
|
+
fputs(FIRST_COLOR, stdout);
|
49
|
+
|
50
50
|
for (int i = 1; i < argc; ++i) {
|
51
51
|
if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) {
|
52
52
|
fputs(HELP_STR, stdout);
|
@@ -57,22 +57,19 @@ int main(int argc, char** argv) {
|
|
57
57
|
}
|
58
58
|
|
59
59
|
putchar('\n');
|
60
|
-
|
61
|
-
|
60
|
+
|
61
|
+
fputs(SECOND_COLOR, stdout);
|
62
|
+
return 0;
|
62
63
|
}
|
64
|
+
|
65
|
+
fputs(FIRST_COLOR, stdout);
|
63
66
|
|
64
67
|
for (;;) {
|
65
68
|
const int c = getchar();
|
66
69
|
|
67
|
-
if (c == EOF)
|
68
|
-
|
70
|
+
if (c == EOF) { fputs(SECOND_COLOR, stdout); return 0; }
|
69
71
|
putchar(c);
|
70
72
|
}
|
71
|
-
|
72
|
-
|
73
|
-
end:
|
74
|
-
fputs(SECOND_COLOR, stdout);
|
75
|
-
return 0;
|
76
73
|
}
|
77
74
|
|
78
75
|
|
Binary file
|
@@ -42,11 +42,11 @@
|
|
42
42
|
#define FIRST_COLOR "\e[4m\e[1m\e[37m"
|
43
43
|
#define SECOND_COLOR "\e[0m\e[0m\e[0m"
|
44
44
|
|
45
|
-
int main(int argc, char** argv) {
|
46
|
-
fputs(FIRST_COLOR, stdout);
|
47
45
|
|
48
|
-
|
46
|
+
int main(int argc, char** argv) {
|
49
47
|
if (argc != 1) {
|
48
|
+
fputs(FIRST_COLOR, stdout);
|
49
|
+
|
50
50
|
for (int i = 1; i < argc; ++i) {
|
51
51
|
if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) {
|
52
52
|
fputs(HELP_STR, stdout);
|
@@ -57,22 +57,19 @@ int main(int argc, char** argv) {
|
|
57
57
|
}
|
58
58
|
|
59
59
|
putchar('\n');
|
60
|
-
|
61
|
-
|
60
|
+
|
61
|
+
fputs(SECOND_COLOR, stdout);
|
62
|
+
return 0;
|
62
63
|
}
|
64
|
+
|
65
|
+
fputs(FIRST_COLOR, stdout);
|
63
66
|
|
64
67
|
for (;;) {
|
65
68
|
const int c = getchar();
|
66
69
|
|
67
|
-
if (c == EOF)
|
68
|
-
|
70
|
+
if (c == EOF) { fputs(SECOND_COLOR, stdout); return 0; }
|
69
71
|
putchar(c);
|
70
72
|
}
|
71
|
-
|
72
|
-
|
73
|
-
end:
|
74
|
-
fputs(SECOND_COLOR, stdout);
|
75
|
-
return 0;
|
76
73
|
}
|
77
74
|
|
78
75
|
|
Binary file
|
@@ -42,11 +42,11 @@
|
|
42
42
|
#define FIRST_COLOR "\e[4m\e[37m"
|
43
43
|
#define SECOND_COLOR "\e[0m\e[0m"
|
44
44
|
|
45
|
-
int main(int argc, char** argv) {
|
46
|
-
fputs(FIRST_COLOR, stdout);
|
47
45
|
|
48
|
-
|
46
|
+
int main(int argc, char** argv) {
|
49
47
|
if (argc != 1) {
|
48
|
+
fputs(FIRST_COLOR, stdout);
|
49
|
+
|
50
50
|
for (int i = 1; i < argc; ++i) {
|
51
51
|
if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) {
|
52
52
|
fputs(HELP_STR, stdout);
|
@@ -57,22 +57,19 @@ int main(int argc, char** argv) {
|
|
57
57
|
}
|
58
58
|
|
59
59
|
putchar('\n');
|
60
|
-
|
61
|
-
|
60
|
+
|
61
|
+
fputs(SECOND_COLOR, stdout);
|
62
|
+
return 0;
|
62
63
|
}
|
64
|
+
|
65
|
+
fputs(FIRST_COLOR, stdout);
|
63
66
|
|
64
67
|
for (;;) {
|
65
68
|
const int c = getchar();
|
66
69
|
|
67
|
-
if (c == EOF)
|
68
|
-
|
70
|
+
if (c == EOF) { fputs(SECOND_COLOR, stdout); return 0; }
|
69
71
|
putchar(c);
|
70
72
|
}
|
71
|
-
|
72
|
-
|
73
|
-
end:
|
74
|
-
fputs(SECOND_COLOR, stdout);
|
75
|
-
return 0;
|
76
73
|
}
|
77
74
|
|
78
75
|
|
data/src/color_tools/yellow
CHANGED
Binary file
|
data/src/color_tools/yellow.c
CHANGED
@@ -42,11 +42,11 @@
|
|
42
42
|
#define FIRST_COLOR "\e[33m"
|
43
43
|
#define SECOND_COLOR "\e[0m"
|
44
44
|
|
45
|
-
int main(int argc, char** argv) {
|
46
|
-
fputs(FIRST_COLOR, stdout);
|
47
45
|
|
48
|
-
|
46
|
+
int main(int argc, char** argv) {
|
49
47
|
if (argc != 1) {
|
48
|
+
fputs(FIRST_COLOR, stdout);
|
49
|
+
|
50
50
|
for (int i = 1; i < argc; ++i) {
|
51
51
|
if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) {
|
52
52
|
fputs(HELP_STR, stdout);
|
@@ -57,22 +57,19 @@ int main(int argc, char** argv) {
|
|
57
57
|
}
|
58
58
|
|
59
59
|
putchar('\n');
|
60
|
-
|
61
|
-
|
60
|
+
|
61
|
+
fputs(SECOND_COLOR, stdout);
|
62
|
+
return 0;
|
62
63
|
}
|
64
|
+
|
65
|
+
fputs(FIRST_COLOR, stdout);
|
63
66
|
|
64
67
|
for (;;) {
|
65
68
|
const int c = getchar();
|
66
69
|
|
67
|
-
if (c == EOF)
|
68
|
-
|
70
|
+
if (c == EOF) { fputs(SECOND_COLOR, stdout); return 0; }
|
69
71
|
putchar(c);
|
70
72
|
}
|
71
|
-
|
72
|
-
|
73
|
-
end:
|
74
|
-
fputs(SECOND_COLOR, stdout);
|
75
|
-
return 0;
|
76
73
|
}
|
77
74
|
|
78
75
|
|
data/src/color_tools/yellow_bold
CHANGED
Binary file
|
@@ -42,11 +42,11 @@
|
|
42
42
|
#define FIRST_COLOR "\e[1m\e[33m"
|
43
43
|
#define SECOND_COLOR "\e[0m\e[0m"
|
44
44
|
|
45
|
-
int main(int argc, char** argv) {
|
46
|
-
fputs(FIRST_COLOR, stdout);
|
47
45
|
|
48
|
-
|
46
|
+
int main(int argc, char** argv) {
|
49
47
|
if (argc != 1) {
|
48
|
+
fputs(FIRST_COLOR, stdout);
|
49
|
+
|
50
50
|
for (int i = 1; i < argc; ++i) {
|
51
51
|
if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) {
|
52
52
|
fputs(HELP_STR, stdout);
|
@@ -57,22 +57,19 @@ int main(int argc, char** argv) {
|
|
57
57
|
}
|
58
58
|
|
59
59
|
putchar('\n');
|
60
|
-
|
61
|
-
|
60
|
+
|
61
|
+
fputs(SECOND_COLOR, stdout);
|
62
|
+
return 0;
|
62
63
|
}
|
64
|
+
|
65
|
+
fputs(FIRST_COLOR, stdout);
|
63
66
|
|
64
67
|
for (;;) {
|
65
68
|
const int c = getchar();
|
66
69
|
|
67
|
-
if (c == EOF)
|
68
|
-
|
70
|
+
if (c == EOF) { fputs(SECOND_COLOR, stdout); return 0; }
|
69
71
|
putchar(c);
|
70
72
|
}
|
71
|
-
|
72
|
-
|
73
|
-
end:
|
74
|
-
fputs(SECOND_COLOR, stdout);
|
75
|
-
return 0;
|
76
73
|
}
|
77
74
|
|
78
75
|
|
Binary file
|
@@ -42,11 +42,11 @@
|
|
42
42
|
#define FIRST_COLOR "\e[4m\e[1m\e[33m"
|
43
43
|
#define SECOND_COLOR "\e[0m\e[0m\e[0m"
|
44
44
|
|
45
|
-
int main(int argc, char** argv) {
|
46
|
-
fputs(FIRST_COLOR, stdout);
|
47
45
|
|
48
|
-
|
46
|
+
int main(int argc, char** argv) {
|
49
47
|
if (argc != 1) {
|
48
|
+
fputs(FIRST_COLOR, stdout);
|
49
|
+
|
50
50
|
for (int i = 1; i < argc; ++i) {
|
51
51
|
if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) {
|
52
52
|
fputs(HELP_STR, stdout);
|
@@ -57,22 +57,19 @@ int main(int argc, char** argv) {
|
|
57
57
|
}
|
58
58
|
|
59
59
|
putchar('\n');
|
60
|
-
|
61
|
-
|
60
|
+
|
61
|
+
fputs(SECOND_COLOR, stdout);
|
62
|
+
return 0;
|
62
63
|
}
|
64
|
+
|
65
|
+
fputs(FIRST_COLOR, stdout);
|
63
66
|
|
64
67
|
for (;;) {
|
65
68
|
const int c = getchar();
|
66
69
|
|
67
|
-
if (c == EOF)
|
68
|
-
|
70
|
+
if (c == EOF) { fputs(SECOND_COLOR, stdout); return 0; }
|
69
71
|
putchar(c);
|
70
72
|
}
|
71
|
-
|
72
|
-
|
73
|
-
end:
|
74
|
-
fputs(SECOND_COLOR, stdout);
|
75
|
-
return 0;
|
76
73
|
}
|
77
74
|
|
78
75
|
|
Binary file
|
@@ -42,11 +42,11 @@
|
|
42
42
|
#define FIRST_COLOR "\e[4m\e[33m"
|
43
43
|
#define SECOND_COLOR "\e[0m\e[0m"
|
44
44
|
|
45
|
-
int main(int argc, char** argv) {
|
46
|
-
fputs(FIRST_COLOR, stdout);
|
47
45
|
|
48
|
-
|
46
|
+
int main(int argc, char** argv) {
|
49
47
|
if (argc != 1) {
|
48
|
+
fputs(FIRST_COLOR, stdout);
|
49
|
+
|
50
50
|
for (int i = 1; i < argc; ++i) {
|
51
51
|
if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) {
|
52
52
|
fputs(HELP_STR, stdout);
|
@@ -57,22 +57,19 @@ int main(int argc, char** argv) {
|
|
57
57
|
}
|
58
58
|
|
59
59
|
putchar('\n');
|
60
|
-
|
61
|
-
|
60
|
+
|
61
|
+
fputs(SECOND_COLOR, stdout);
|
62
|
+
return 0;
|
62
63
|
}
|
64
|
+
|
65
|
+
fputs(FIRST_COLOR, stdout);
|
63
66
|
|
64
67
|
for (;;) {
|
65
68
|
const int c = getchar();
|
66
69
|
|
67
|
-
if (c == EOF)
|
68
|
-
|
70
|
+
if (c == EOF) { fputs(SECOND_COLOR, stdout); return 0; }
|
69
71
|
putchar(c);
|
70
72
|
}
|
71
|
-
|
72
|
-
|
73
|
-
end:
|
74
|
-
fputs(SECOND_COLOR, stdout);
|
75
|
-
return 0;
|
76
73
|
}
|
77
74
|
|
78
75
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ufos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.94
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gregory Cohen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-06-
|
11
|
+
date: 2023-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |+
|
14
14
|
Trying to help with democracy. (No affiliation with ufos.)
|
@@ -57,6 +57,7 @@ files:
|
|
57
57
|
- "./bin/append"
|
58
58
|
- "./bin/append_each"
|
59
59
|
- "./bin/args"
|
60
|
+
- "./bin/autocorrect"
|
60
61
|
- "./bin/big_num"
|
61
62
|
- "./bin/black"
|
62
63
|
- "./bin/black_bold"
|
@@ -165,6 +166,7 @@ files:
|
|
165
166
|
- "./documentation/append"
|
166
167
|
- "./documentation/append_each"
|
167
168
|
- "./documentation/args"
|
169
|
+
- "./documentation/autocorrect"
|
168
170
|
- "./documentation/big_num"
|
169
171
|
- "./documentation/black"
|
170
172
|
- "./documentation/black_bold"
|
@@ -23256,6 +23258,7 @@ files:
|
|
23256
23258
|
- "./gem_data/VERSION_NUMBER"
|
23257
23259
|
- "./gem_data/democracy.gemspec"
|
23258
23260
|
- "./gem_data/push"
|
23261
|
+
- "./gem_data/push_snap"
|
23259
23262
|
- "./gem_data/version_decrement"
|
23260
23263
|
- "./gem_data/version_increment"
|
23261
23264
|
- "./images/1.png"
|
@@ -23271,8 +23274,10 @@ files:
|
|
23271
23274
|
- "./images/9.png"
|
23272
23275
|
- "./images/STORE.png"
|
23273
23276
|
- "./images/STORE2.png"
|
23277
|
+
- "./images/Store.png"
|
23274
23278
|
- "./index.html"
|
23275
23279
|
- "./install.sh"
|
23280
|
+
- "./non_compiled_programs/autocorrect"
|
23276
23281
|
- "./non_compiled_programs/big_num"
|
23277
23282
|
- "./non_compiled_programs/chat_rb"
|
23278
23283
|
- "./non_compiled_programs/close"
|
@@ -24652,6 +24657,7 @@ files:
|
|
24652
24657
|
- "./output_data"
|
24653
24658
|
- "./physics"
|
24654
24659
|
- "./push"
|
24660
|
+
- "./push_snap"
|
24655
24661
|
- "./src/_compilation/abs"
|
24656
24662
|
- "./src/_compilation/add"
|
24657
24663
|
- "./src/_compilation/append"
|