2023-01-31 11:45:45 +08:00
|
|
|
|
-- Spinners adapted from: https://github.com/sindresorhus/cli-spinners
|
|
|
|
|
--
|
|
|
|
|
-- Some designs' names are made more descriptive; differences noted in comments.
|
|
|
|
|
-- Other designs are omitted for brevity.
|
|
|
|
|
--
|
|
|
|
|
-- You may want to adjust spinner_rate according to the number of frames of your
|
|
|
|
|
-- chosen spinner.
|
|
|
|
|
|
|
|
|
|
-- MIT License
|
|
|
|
|
--
|
|
|
|
|
-- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
|
|
|
--
|
|
|
|
|
-- Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
|
-- of this software and associated documentation files (the "Software"), to deal
|
|
|
|
|
-- in the Software without restriction, including without limitation the rights
|
|
|
|
|
-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
|
-- copies of the Software, and to permit persons to whom the Software is
|
|
|
|
|
-- furnished to do so, subject to the following conditions:
|
|
|
|
|
--
|
|
|
|
|
-- The above copyright notice and this permission notice shall be included in
|
|
|
|
|
-- all copies or substantial portions of the Software.
|
|
|
|
|
--
|
|
|
|
|
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
|
-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
|
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
|
-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
|
-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
|
-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
|
|
-- SOFTWARE.
|
|
|
|
|
return {
|
|
|
|
|
dots = {
|
2023-04-04 16:18:18 +08:00
|
|
|
|
'⠋',
|
|
|
|
|
'⠙',
|
|
|
|
|
'⠹',
|
|
|
|
|
'⠸',
|
|
|
|
|
'⠼',
|
|
|
|
|
'⠴',
|
|
|
|
|
'⠦',
|
|
|
|
|
'⠧',
|
|
|
|
|
'⠇',
|
|
|
|
|
'⠏',
|
2023-01-31 11:45:45 +08:00
|
|
|
|
},
|
|
|
|
|
dots_negative = { -- dots2
|
2023-04-04 16:18:18 +08:00
|
|
|
|
'⣾',
|
|
|
|
|
'⣽',
|
|
|
|
|
'⣻',
|
|
|
|
|
'⢿',
|
|
|
|
|
'⡿',
|
|
|
|
|
'⣟',
|
|
|
|
|
'⣯',
|
|
|
|
|
'⣷',
|
2023-01-31 11:45:45 +08:00
|
|
|
|
},
|
|
|
|
|
dots_snake = { -- dots3
|
2023-04-04 16:18:18 +08:00
|
|
|
|
'⠋',
|
|
|
|
|
'⠙',
|
|
|
|
|
'⠚',
|
|
|
|
|
'⠒',
|
|
|
|
|
'⠂',
|
|
|
|
|
'⠂',
|
|
|
|
|
'⠒',
|
|
|
|
|
'⠲',
|
|
|
|
|
'⠴',
|
|
|
|
|
'⠦',
|
|
|
|
|
'⠖',
|
|
|
|
|
'⠒',
|
|
|
|
|
'⠐',
|
|
|
|
|
'⠐',
|
|
|
|
|
'⠒',
|
|
|
|
|
'⠓',
|
|
|
|
|
'⠋',
|
2023-01-31 11:45:45 +08:00
|
|
|
|
},
|
|
|
|
|
dots_footsteps = { -- dots10
|
2023-04-04 16:18:18 +08:00
|
|
|
|
'⢄',
|
|
|
|
|
'⢂',
|
|
|
|
|
'⢁',
|
|
|
|
|
'⡁',
|
|
|
|
|
'⡈',
|
|
|
|
|
'⡐',
|
|
|
|
|
'⡠',
|
2023-01-31 11:45:45 +08:00
|
|
|
|
},
|
|
|
|
|
dots_hop = { -- dots11
|
2023-04-04 16:18:18 +08:00
|
|
|
|
'⠁',
|
|
|
|
|
'⠂',
|
|
|
|
|
'⠄',
|
|
|
|
|
'⡀',
|
|
|
|
|
'⢀',
|
|
|
|
|
'⠠',
|
|
|
|
|
'⠐',
|
|
|
|
|
'⠈',
|
2023-01-31 11:45:45 +08:00
|
|
|
|
},
|
|
|
|
|
line = {
|
2023-04-04 16:18:18 +08:00
|
|
|
|
'-',
|
|
|
|
|
'\\',
|
|
|
|
|
'|',
|
|
|
|
|
'/',
|
2023-01-31 11:45:45 +08:00
|
|
|
|
},
|
|
|
|
|
pipe = {
|
2023-04-04 16:18:18 +08:00
|
|
|
|
'┤',
|
|
|
|
|
'┘',
|
|
|
|
|
'┴',
|
|
|
|
|
'└',
|
|
|
|
|
'├',
|
|
|
|
|
'┌',
|
|
|
|
|
'┬',
|
|
|
|
|
'┐',
|
2023-01-31 11:45:45 +08:00
|
|
|
|
},
|
|
|
|
|
dots_ellipsis = { -- simpleDots
|
2023-04-04 16:18:18 +08:00
|
|
|
|
'. ',
|
|
|
|
|
'.. ',
|
|
|
|
|
'...',
|
|
|
|
|
' ',
|
2023-01-31 11:45:45 +08:00
|
|
|
|
},
|
|
|
|
|
dots_scrolling = { -- simpleDotsScrolling
|
2023-04-04 16:18:18 +08:00
|
|
|
|
'. ',
|
|
|
|
|
'.. ',
|
|
|
|
|
'...',
|
|
|
|
|
' ..',
|
|
|
|
|
' .',
|
|
|
|
|
' ',
|
2023-01-31 11:45:45 +08:00
|
|
|
|
},
|
|
|
|
|
star = {
|
2023-04-04 16:18:18 +08:00
|
|
|
|
'✶',
|
|
|
|
|
'✸',
|
|
|
|
|
'✹',
|
|
|
|
|
'✺',
|
|
|
|
|
'✹',
|
|
|
|
|
'✷',
|
2023-01-31 11:45:45 +08:00
|
|
|
|
},
|
|
|
|
|
flip = {
|
2023-04-04 16:18:18 +08:00
|
|
|
|
'_',
|
|
|
|
|
'_',
|
|
|
|
|
'_',
|
|
|
|
|
'-',
|
|
|
|
|
'`',
|
|
|
|
|
'`',
|
2023-01-31 11:45:45 +08:00
|
|
|
|
"'",
|
2023-04-04 16:18:18 +08:00
|
|
|
|
'´',
|
|
|
|
|
'-',
|
|
|
|
|
'_',
|
|
|
|
|
'_',
|
|
|
|
|
'_',
|
2023-01-31 11:45:45 +08:00
|
|
|
|
},
|
|
|
|
|
hamburger = {
|
2023-04-04 16:18:18 +08:00
|
|
|
|
'☱',
|
|
|
|
|
'☲',
|
|
|
|
|
'☴',
|
2023-01-31 11:45:45 +08:00
|
|
|
|
},
|
|
|
|
|
grow_vertical = { -- growVertical
|
2023-04-04 16:18:18 +08:00
|
|
|
|
'▁',
|
|
|
|
|
'▃',
|
|
|
|
|
'▄',
|
|
|
|
|
'▅',
|
|
|
|
|
'▆',
|
|
|
|
|
'▇',
|
|
|
|
|
'▆',
|
|
|
|
|
'▅',
|
|
|
|
|
'▄',
|
|
|
|
|
'▃',
|
2023-01-31 11:45:45 +08:00
|
|
|
|
},
|
|
|
|
|
grow_horizontal = { -- growHorizontal
|
2023-04-04 16:18:18 +08:00
|
|
|
|
'▏',
|
|
|
|
|
'▎',
|
|
|
|
|
'▍',
|
|
|
|
|
'▌',
|
|
|
|
|
'▋',
|
|
|
|
|
'▊',
|
|
|
|
|
'▉',
|
|
|
|
|
'▊',
|
|
|
|
|
'▋',
|
|
|
|
|
'▌',
|
|
|
|
|
'▍',
|
|
|
|
|
'▎',
|
2023-01-31 11:45:45 +08:00
|
|
|
|
},
|
|
|
|
|
noise = {
|
2023-04-04 16:18:18 +08:00
|
|
|
|
'▓',
|
|
|
|
|
'▒',
|
|
|
|
|
'░',
|
2023-01-31 11:45:45 +08:00
|
|
|
|
},
|
|
|
|
|
dots_bounce = { -- bounce
|
2023-04-04 16:18:18 +08:00
|
|
|
|
'⠁',
|
|
|
|
|
'⠂',
|
|
|
|
|
'⠄',
|
|
|
|
|
'⠂',
|
2023-01-31 11:45:45 +08:00
|
|
|
|
},
|
|
|
|
|
triangle = {
|
2023-04-04 16:18:18 +08:00
|
|
|
|
'◢',
|
|
|
|
|
'◣',
|
|
|
|
|
'◤',
|
|
|
|
|
'◥',
|
2023-01-31 11:45:45 +08:00
|
|
|
|
},
|
|
|
|
|
arc = {
|
2023-04-04 16:18:18 +08:00
|
|
|
|
'◜',
|
|
|
|
|
'◠',
|
|
|
|
|
'◝',
|
|
|
|
|
'◞',
|
|
|
|
|
'◡',
|
|
|
|
|
'◟',
|
2023-01-31 11:45:45 +08:00
|
|
|
|
},
|
|
|
|
|
circle = {
|
2023-04-04 16:18:18 +08:00
|
|
|
|
'◡',
|
|
|
|
|
'⊙',
|
|
|
|
|
'◠',
|
2023-01-31 11:45:45 +08:00
|
|
|
|
},
|
|
|
|
|
square_corners = { -- squareCorners
|
2023-04-04 16:18:18 +08:00
|
|
|
|
'◰',
|
|
|
|
|
'◳',
|
|
|
|
|
'◲',
|
|
|
|
|
'◱',
|
2023-01-31 11:45:45 +08:00
|
|
|
|
},
|
|
|
|
|
circle_quarters = { -- circleQuarters
|
2023-04-04 16:18:18 +08:00
|
|
|
|
'◴',
|
|
|
|
|
'◷',
|
|
|
|
|
'◶',
|
|
|
|
|
'◵',
|
2023-01-31 11:45:45 +08:00
|
|
|
|
},
|
|
|
|
|
circle_halves = { -- circleHalves
|
2023-04-04 16:18:18 +08:00
|
|
|
|
'◐',
|
|
|
|
|
'◓',
|
|
|
|
|
'◑',
|
|
|
|
|
'◒',
|
2023-01-31 11:45:45 +08:00
|
|
|
|
},
|
|
|
|
|
dots_toggle = { -- toggle
|
2023-04-04 16:18:18 +08:00
|
|
|
|
'⊶',
|
|
|
|
|
'⊷',
|
2023-01-31 11:45:45 +08:00
|
|
|
|
},
|
|
|
|
|
box_toggle = { -- toggle2
|
2023-04-04 16:18:18 +08:00
|
|
|
|
'▫',
|
|
|
|
|
'▪',
|
2023-01-31 11:45:45 +08:00
|
|
|
|
},
|
|
|
|
|
arrow = {
|
2023-04-04 16:18:18 +08:00
|
|
|
|
'←',
|
|
|
|
|
'↖',
|
|
|
|
|
'↑',
|
|
|
|
|
'↗',
|
|
|
|
|
'→',
|
|
|
|
|
'↘',
|
|
|
|
|
'↓',
|
|
|
|
|
'↙',
|
2023-01-31 11:45:45 +08:00
|
|
|
|
},
|
|
|
|
|
clock = {
|
2023-04-04 16:18:18 +08:00
|
|
|
|
'🕛 ',
|
|
|
|
|
'🕐 ',
|
|
|
|
|
'🕑 ',
|
|
|
|
|
'🕒 ',
|
|
|
|
|
'🕓 ',
|
|
|
|
|
'🕔 ',
|
|
|
|
|
'🕕 ',
|
|
|
|
|
'🕖 ',
|
|
|
|
|
'🕗 ',
|
|
|
|
|
'🕘 ',
|
|
|
|
|
'🕙 ',
|
|
|
|
|
'🕚 ',
|
2023-01-31 11:45:45 +08:00
|
|
|
|
},
|
|
|
|
|
earth = {
|
2023-04-04 16:18:18 +08:00
|
|
|
|
'🌍 ',
|
|
|
|
|
'🌎 ',
|
|
|
|
|
'🌏 ',
|
2023-01-31 11:45:45 +08:00
|
|
|
|
},
|
|
|
|
|
moon = {
|
2023-04-04 16:18:18 +08:00
|
|
|
|
'🌑 ',
|
|
|
|
|
'🌒 ',
|
|
|
|
|
'🌓 ',
|
|
|
|
|
'🌔 ',
|
|
|
|
|
'🌕 ',
|
|
|
|
|
'🌖 ',
|
|
|
|
|
'🌗 ',
|
|
|
|
|
'🌘 ',
|
2023-01-31 11:45:45 +08:00
|
|
|
|
},
|
|
|
|
|
dots_pulse = { -- point
|
2023-04-04 16:18:18 +08:00
|
|
|
|
'∙∙∙',
|
|
|
|
|
'●∙∙',
|
|
|
|
|
'∙●∙',
|
|
|
|
|
'∙∙●',
|
|
|
|
|
'∙∙∙',
|
|
|
|
|
},
|
|
|
|
|
fistBump = {
|
|
|
|
|
'🤜 🤛 ',
|
|
|
|
|
'🤜 🤛 ',
|
|
|
|
|
'🤜 🤛 ',
|
|
|
|
|
' 🤜 🤛 ',
|
|
|
|
|
' 🤜🤛 ',
|
|
|
|
|
' 🤜✨🤛 ',
|
|
|
|
|
'🤜 ✨ 🤛 ',
|
|
|
|
|
},
|
|
|
|
|
monkey = {
|
|
|
|
|
'🙈 ',
|
|
|
|
|
'🙈 ',
|
|
|
|
|
'🙉 ',
|
|
|
|
|
'🙊 '
|
|
|
|
|
},
|
|
|
|
|
soccerHeader = {
|
|
|
|
|
' 🧑⚽️ 🧑 ',
|
|
|
|
|
'🧑 ⚽️ 🧑 ',
|
|
|
|
|
'🧑 ⚽️ 🧑 ',
|
|
|
|
|
'🧑 ⚽️ 🧑 ',
|
|
|
|
|
'🧑 ⚽️ 🧑 ',
|
|
|
|
|
'🧑 ⚽️ 🧑 ',
|
|
|
|
|
'🧑 ⚽️🧑 ',
|
|
|
|
|
'🧑 ⚽️ 🧑 ',
|
|
|
|
|
'🧑 ⚽️ 🧑 ',
|
|
|
|
|
'🧑 ⚽️ 🧑 ',
|
|
|
|
|
'🧑 ⚽️ 🧑 ',
|
|
|
|
|
'🧑 ⚽️ 🧑 ',
|
|
|
|
|
},
|
|
|
|
|
weather = {
|
|
|
|
|
'☀️ ',
|
|
|
|
|
'☀️ ',
|
|
|
|
|
'☀️ ',
|
|
|
|
|
'🌤 ',
|
|
|
|
|
'⛅️ ',
|
|
|
|
|
'🌥 ',
|
|
|
|
|
'☁️ ',
|
|
|
|
|
'🌧 ',
|
|
|
|
|
'🌨 ',
|
|
|
|
|
'🌧 ',
|
|
|
|
|
'🌨 ',
|
|
|
|
|
'🌧 ',
|
|
|
|
|
'🌨 ',
|
|
|
|
|
'⛈ ',
|
|
|
|
|
'🌨 ',
|
|
|
|
|
'🌧 ',
|
|
|
|
|
'🌨 ',
|
|
|
|
|
'☁️ ',
|
|
|
|
|
'🌥 ',
|
|
|
|
|
'⛅️ ',
|
|
|
|
|
'🌤 ',
|
|
|
|
|
'☀️ ',
|
|
|
|
|
'☀️ ',
|
|
|
|
|
},
|
|
|
|
|
speaker = {
|
|
|
|
|
'🔈 ',
|
|
|
|
|
'🔉 ',
|
|
|
|
|
'🔊 ',
|
|
|
|
|
'🔉 ',
|
|
|
|
|
},
|
|
|
|
|
smiley = {
|
|
|
|
|
'😄 ',
|
|
|
|
|
'😝 ',
|
|
|
|
|
},
|
|
|
|
|
toggle = {
|
|
|
|
|
'⊶',
|
|
|
|
|
'⊷'
|
|
|
|
|
},
|
|
|
|
|
toggle10 = {
|
|
|
|
|
'㊂',
|
|
|
|
|
'㊀',
|
|
|
|
|
'㊁'
|
|
|
|
|
},
|
|
|
|
|
toggle11 = {
|
|
|
|
|
'⧇',
|
|
|
|
|
'⧆'
|
|
|
|
|
},
|
|
|
|
|
toggle12 = {
|
|
|
|
|
'☗',
|
|
|
|
|
'☖'
|
|
|
|
|
},
|
|
|
|
|
toggle13 = {
|
|
|
|
|
'=',
|
|
|
|
|
'*',
|
|
|
|
|
'-'
|
|
|
|
|
},
|
|
|
|
|
toggle2 = {
|
|
|
|
|
'▫',
|
|
|
|
|
'▪'
|
|
|
|
|
},
|
|
|
|
|
toggle3 = {
|
|
|
|
|
'□',
|
|
|
|
|
'■'
|
|
|
|
|
},
|
|
|
|
|
toggle4 = {
|
|
|
|
|
'■',
|
|
|
|
|
'□',
|
|
|
|
|
'▪',
|
|
|
|
|
'▫'
|
|
|
|
|
},
|
|
|
|
|
toggle5 = {
|
|
|
|
|
'▮',
|
|
|
|
|
'▯'
|
|
|
|
|
},
|
|
|
|
|
toggle6 = {
|
|
|
|
|
'ဝ',
|
|
|
|
|
'၀'
|
|
|
|
|
},
|
|
|
|
|
toggle7 = {
|
|
|
|
|
'⦾',
|
|
|
|
|
'⦿'
|
|
|
|
|
},
|
|
|
|
|
toggle8 = {
|
|
|
|
|
'◍',
|
|
|
|
|
'◌'
|
|
|
|
|
},
|
|
|
|
|
toggle9 = {
|
|
|
|
|
'◉',
|
|
|
|
|
'◎'
|
|
|
|
|
},
|
|
|
|
|
star2 = {
|
|
|
|
|
'+',
|
|
|
|
|
'x',
|
|
|
|
|
'*'
|
|
|
|
|
},
|
|
|
|
|
orangeBluePulse = {
|
|
|
|
|
'🔸 ',
|
|
|
|
|
'🔶 ',
|
|
|
|
|
'🟠 ',
|
|
|
|
|
'🟠 ',
|
|
|
|
|
'🔶 ',
|
|
|
|
|
'🔹 ',
|
|
|
|
|
'🔷 ',
|
|
|
|
|
'🔵 ',
|
|
|
|
|
'🔵 ',
|
|
|
|
|
'🔷 ',
|
|
|
|
|
},
|
|
|
|
|
orangePulse = {
|
|
|
|
|
'🔸 ',
|
|
|
|
|
'🔶 ',
|
|
|
|
|
'🟠 ',
|
|
|
|
|
'🟠 ',
|
|
|
|
|
'🔶 '
|
|
|
|
|
},
|
|
|
|
|
mindblown = {
|
|
|
|
|
'😐 ',
|
|
|
|
|
'😐 ',
|
|
|
|
|
'😮 ',
|
|
|
|
|
'😮 ',
|
|
|
|
|
'😦 ',
|
|
|
|
|
'😦 ',
|
|
|
|
|
'😧 ',
|
|
|
|
|
'😧 ',
|
|
|
|
|
'🤯 ',
|
|
|
|
|
'💥 ',
|
|
|
|
|
'✨ ',
|
|
|
|
|
' ',
|
|
|
|
|
' ',
|
|
|
|
|
' ',
|
|
|
|
|
},
|
|
|
|
|
hearts = {
|
|
|
|
|
'💛 ',
|
|
|
|
|
'💙 ',
|
|
|
|
|
'💜 ',
|
|
|
|
|
'💚 ',
|
|
|
|
|
'❤️ '
|
|
|
|
|
},
|
|
|
|
|
fingerDance = {
|
|
|
|
|
'🤘 ',
|
|
|
|
|
'🤟 ',
|
|
|
|
|
'🖖 ',
|
|
|
|
|
'✋ ',
|
|
|
|
|
'🤚 ',
|
|
|
|
|
'👆 '
|
|
|
|
|
},
|
|
|
|
|
christmas = {
|
|
|
|
|
'🌲',
|
|
|
|
|
'🎄'
|
|
|
|
|
},
|
|
|
|
|
circleHalves = {
|
|
|
|
|
'◐',
|
|
|
|
|
'◓',
|
|
|
|
|
'◑',
|
|
|
|
|
'◒'
|
|
|
|
|
},
|
|
|
|
|
bouncingBall = {
|
|
|
|
|
'( ● )',
|
|
|
|
|
'( ● )',
|
|
|
|
|
'( ● )',
|
|
|
|
|
'( ● )',
|
|
|
|
|
'( ●)',
|
|
|
|
|
'( ● )',
|
|
|
|
|
'( ● )',
|
|
|
|
|
'( ● )',
|
|
|
|
|
'( ● )',
|
|
|
|
|
'(● )',
|
|
|
|
|
},
|
|
|
|
|
bluePulse = {
|
|
|
|
|
'🔹 ',
|
|
|
|
|
'🔷 ',
|
|
|
|
|
'🔵 ',
|
|
|
|
|
'🔵 ',
|
|
|
|
|
'🔷 '
|
|
|
|
|
},
|
|
|
|
|
betaWave = {
|
|
|
|
|
'ρββββββ',
|
|
|
|
|
'βρβββββ',
|
|
|
|
|
'ββρββββ',
|
|
|
|
|
'βββρβββ',
|
|
|
|
|
'ββββρββ',
|
|
|
|
|
'βββββρβ',
|
|
|
|
|
'ββββββρ',
|
2023-01-31 11:45:45 +08:00
|
|
|
|
},
|
|
|
|
|
}
|