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; std::string reset_position;
for (int index = 0; index < 200; ++index) { for (int index = 0; index < 200; ++index) {
std::vector<Element> entries; std::vector<Element> entries;
for (int i = 0; i < 22; ++i) { for (int i = 0; i < 23; ++i) {
if (i != 0) if (i != 0)
entries.push_back(separator()); entries.push_back(separator());
entries.push_back( // entries.push_back( //

View File

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