Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
wsssh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexlab
wsssh
Commits
3a484773
Commit
3a484773
authored
Sep 15, 2025
by
nextime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve flag rendering accuracy and visual consistency
parent
755c2be1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
12 deletions
+44
-12
wsscp.c
wssshtools/wsscp.c
+22
-6
wsssh.c
wssshtools/wsssh.c
+22
-6
No files found.
wssshtools/wsscp.c
View file @
3a484773
...
@@ -119,17 +119,33 @@ void print_palestinian_flag(void) {
...
@@ -119,17 +119,33 @@ void print_palestinian_flag(void) {
const
char
*
white
=
"
\033
[47m"
;
const
char
*
white
=
"
\033
[47m"
;
const
char
*
green
=
"
\033
[42m"
;
const
char
*
green
=
"
\033
[42m"
;
int
height
=
12
;
int
width
=
40
;
int
width
=
40
;
int
triangle_widths
[
6
]
=
{
2
,
4
,
6
,
8
,
10
,
12
};
int
max_triangle
=
12
;
const
char
*
stripe_colors
[
6
]
=
{
black
,
black
,
white
,
white
,
green
,
green
};
for
(
int
i
=
0
;
i
<
height
;
i
++
)
{
int
triangle_width
;
if
(
i
<=
5
)
{
triangle_width
=
(
i
+
1
)
*
2
;
}
else
{
triangle_width
=
(
height
-
i
)
*
2
;
}
const
char
*
stripe_color
;
if
(
i
<
4
)
{
stripe_color
=
black
;
}
else
if
(
i
<
8
)
{
stripe_color
=
white
;
}
else
{
stripe_color
=
green
;
}
for
(
int
i
=
0
;
i
<
6
;
i
++
)
{
printf
(
"%s"
,
red
);
printf
(
"%s"
,
red
);
for
(
int
j
=
0
;
j
<
triangle_width
s
[
i
]
;
j
++
)
{
for
(
int
j
=
0
;
j
<
triangle_width
;
j
++
)
{
printf
(
" "
);
printf
(
" "
);
}
}
printf
(
"%s"
,
stripe_color
s
[
i
]
);
printf
(
"%s"
,
stripe_color
);
for
(
int
j
=
triangle_width
s
[
i
]
;
j
<
width
;
j
++
)
{
for
(
int
j
=
triangle_width
;
j
<
width
;
j
++
)
{
printf
(
" "
);
printf
(
" "
);
}
}
printf
(
"%s
\n
"
,
reset
);
printf
(
"%s
\n
"
,
reset
);
...
...
wssshtools/wsssh.c
View file @
3a484773
...
@@ -153,17 +153,33 @@ void print_palestinian_flag(void) {
...
@@ -153,17 +153,33 @@ void print_palestinian_flag(void) {
const
char
*
white
=
"
\033
[47m"
;
const
char
*
white
=
"
\033
[47m"
;
const
char
*
green
=
"
\033
[42m"
;
const
char
*
green
=
"
\033
[42m"
;
int
height
=
12
;
int
width
=
40
;
int
width
=
40
;
int
triangle_widths
[
6
]
=
{
2
,
4
,
6
,
8
,
10
,
12
};
int
max_triangle
=
12
;
const
char
*
stripe_colors
[
6
]
=
{
black
,
black
,
white
,
white
,
green
,
green
};
for
(
int
i
=
0
;
i
<
height
;
i
++
)
{
int
triangle_width
;
if
(
i
<=
5
)
{
triangle_width
=
(
i
+
1
)
*
2
;
}
else
{
triangle_width
=
(
height
-
i
)
*
2
;
}
const
char
*
stripe_color
;
if
(
i
<
4
)
{
stripe_color
=
black
;
}
else
if
(
i
<
8
)
{
stripe_color
=
white
;
}
else
{
stripe_color
=
green
;
}
for
(
int
i
=
0
;
i
<
6
;
i
++
)
{
printf
(
"%s"
,
red
);
printf
(
"%s"
,
red
);
for
(
int
j
=
0
;
j
<
triangle_width
s
[
i
]
;
j
++
)
{
for
(
int
j
=
0
;
j
<
triangle_width
;
j
++
)
{
printf
(
" "
);
printf
(
" "
);
}
}
printf
(
"%s"
,
stripe_color
s
[
i
]
);
printf
(
"%s"
,
stripe_color
);
for
(
int
j
=
triangle_width
s
[
i
]
;
j
<
width
;
j
++
)
{
for
(
int
j
=
triangle_width
;
j
<
width
;
j
++
)
{
printf
(
" "
);
printf
(
" "
);
}
}
printf
(
"%s
\n
"
,
reset
);
printf
(
"%s
\n
"
,
reset
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment