Skip to content

Commit

Permalink
Merge pull request #5 from briandowns/add_more_spinners
Browse files Browse the repository at this point in the history
added 20 new spinners
  • Loading branch information
briandowns authored Sep 10, 2019
2 parents 47cbacb + 2abedc1 commit 372b801
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Flotsam.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "libspinner"
build = "make"
repository = "github.com/briandowns/libspinner"
homepage = ""
version = "0.2.1"
version = "0.2.2"
description = "C library for adding a spinner/indicator to terminal applications."
authors = ["Brian J. Downs"]

Expand Down
4 changes: 0 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ ifeq ($(UNAME_S),Darwin)
$(NAME).dylib:
$(CC) -c -dynamiclib -o $(NAME).so spinner.c $(CFLAGS) $(LDFLAGS)
endif
ifeq ($(UNAME_S),FreeBSD)
$(NAME).dylib:
$(CC) -c -fPIE -fPIC -fstack-protector-strong -o $(NAME).so spinner.c $(CFLAGS) $(LDFLAGS)
endif

.PHONY: install
install:
Expand Down
23 changes: 22 additions & 1 deletion spinner.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,28 @@ char* char_sets[][MAX_CHARS] = {
"▐ ⠂ ▌", "▐ ⠠ ▌", "▐ ⡀ ▌", "▐ ⠠ ▌", "▐ ⠂ ▌", "▐ ⠈ ▌", "▐ ⠂▌", "▐ ⠠▌",
"▐ ⡀▌", "▐ ⠠ ▌", "▐ ⠂ ▌", "▐ ⠈ ▌", "▐ ⠂ ▌", "▐ ⠠ ▌", "▐ ⡀ ▌", "▐ ⠠ ▌",
"▐ ⠂ ▌", "▐ ⠈ ▌", "▐ ⠂ ▌", "▐ ⠠ ▌", "▐ ⡀ ▌", "▐⠠ ▌" },
{ "?", "¿" }
{ "?", "¿" },
{ "⢹", "⢺", "⢼", "⣸", "⣇", "⡧", "⡗", "⡏" },
{ "⢄", "⢂", "⢁", "⡁", "⡈", "⡐", "⡠" },
{ ". ", ".. ", "...", " ..", " .", " " },
{ ".", "o", "O", "°", "O", "o", "." },
{ "▓", "▒", "░" },
{ "▌", "▀", "▐", "▄" },
{ "⊶", "⊷" },
{ "▪", "▫" },
{ "□", "■" },
{ "▮", "▯" },
{ "-", "=", "≡" },
{ "d", "q", "p", "b" },
{ "∙∙∙", "●∙∙", "∙●∙", "∙∙●", "∙∙∙" },
{ "🌑 ", "🌒 ", "🌓 ", "🌔 ", "🌕 ", "🌖 ", "🌗 ", "🌘 " },
{ "☗", "☖" },
{ "⧇", "⧆" },
{ "◉", "◎" },
{ "㊂", "㊀", "㊁" },
{ "⦾", "⦿" },
{ "ဝ", "၀" },
{ "▌", "▀", "▐▄" }
};

spinner_t*
Expand Down

0 comments on commit 372b801

Please sign in to comment.