Adding heartbeat to spinner (#548)

Co-authored-by: cyrus <cyruswang2017@gmail.com>
This commit is contained in:
Arthur Sonzogni 2023-01-06 11:05:56 +01:00 committed by GitHub
parent 9f9571190a
commit 5410329ac6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 83 additions and 62 deletions

View File

@ -17,7 +17,7 @@ int main(int argc, const char* argv[]) {
std::string reset_position;
for (int index = 0; index < 200; ++index) {
std::vector<Element> entries;
for (int i = 0; i < 22; ++i) {
for (int i = 0; i < 23; ++i) {
if (i != 0)
entries.push_back(separator());
entries.push_back( //

View File

@ -186,67 +186,88 @@ const std::vector<std::vector<std::vector<std::string>>> elements = {
{"[ == ]"},
{"[ == ]"},
},
{{
" ─╮",
"",
" ",
},
{
"",
"",
"",
},
{
" ",
"",
" ─╯",
},
{
" ",
" ",
"╰─╯",
},
{
" ",
"",
"╰─ ",
},
{
"",
"",
"",
},
{
"╭─ ",
"",
" ",
},
{
"╭─╮",
" ",
" ",
}},
{{
" /\\O ",
" /\\/",
" /\\ ",
" / \\ ",
"LOL LOL",
},
{
" _O ",
" //|_ ",
" | ",
" /| ",
" LLOL ",
},
{
" O ",
" /_ ",
" |\\ ",
" / | ",
" LOLLOL ",
}}};
{
{
" ─╮",
"",
" ",
},
{
"",
"",
"",
},
{
" ",
"",
" ─╯",
},
{
" ",
" ",
"╰─╯",
},
{
" ",
"",
"╰─ ",
},
{
"",
"",
"",
},
{
"╭─ ",
"",
" ",
},
{
"╭─╮",
" ",
" ",
},
},
{
{
" /\\O ",
" /\\/",
" /\\ ",
" / \\ ",
"LOL LOL",
},
{
" _O ",
" //|_ ",
" | ",
" /| ",
" LLOL ",
},
{
" O ",
" /_ ",
" |\\ ",
" / | ",
" LOLLOL ",
},
},
{
{" ", "_______", " "},
{" ", "______/", " "},
{" _", "_____/ ", " "},
{" _ ", "____/ \\", " "},
{" _ ", "___/ \\ ", " \\"},
{" _ ", "__/ \\ ", " \\_"},
{" _ ", "_/ \\ ", " \\_/"},
{" _ ", "/ \\ _", " \\_/ "},
{"_ ", " \\ __", " \\_/ "},
{" ", "\\ ___", " \\_/ "},
{" ", " ___", "\\_/ "},
{" ", " _____", "_/ "},
{" ", " ______", "/ "},
{" ", "_______", " "},
},
};
} // namespace