All Projects → trumae → Spinnercpp

trumae / Spinnercpp

Licence: mit
Simple header only library to add a spinner / progress indicator to any terminal application.

Projects that are alternatives of or similar to Spinnercpp

Spinner
Go (golang) package with 90 configurable terminal spinner/progress indicators.
Stars: ✭ 1,637 (+4324.32%)
Mutual labels:  cli, terminal, spinner, statusbar
Mpb
multi progress bar for Go cli applications
Stars: ✭ 1,221 (+3200%)
Mutual labels:  cli, terminal, spinner
Php Console Spinner
Colorful highly configurable spinner for php cli applications (suitable for async apps)
Stars: ✭ 225 (+508.11%)
Mutual labels:  cli, terminal, spinner
Progress bar
Command-line progress bars and spinners for Elixir.
Stars: ✭ 281 (+659.46%)
Mutual labels:  cli, terminal, spinner
Alive Progress
A new kind of Progress Bar, with real-time throughput, ETA, and very cool animations!
Stars: ✭ 2,940 (+7845.95%)
Mutual labels:  cli, terminal, spinner
Yaspin
A lightweight terminal spinner for Python with safe pipes and redirects 🎁
Stars: ✭ 413 (+1016.22%)
Mutual labels:  cli, terminal, spinner
Devdash
🍱 Highly Configurable Terminal Dashboard for Developers and Creators
Stars: ✭ 939 (+2437.84%)
Mutual labels:  cli, terminal
Ws50 Sync
ws50-sync is a python based program which pulls air quality data from your Withings account and stores it directly in a Domoticz DB.
Stars: ✭ 8 (-78.38%)
Mutual labels:  cli, terminal
Tui Consolelauncher
Linux CLI Launcher for Android
Stars: ✭ 861 (+2227.03%)
Mutual labels:  cli, terminal
Create Component App
Tool to generate different types of React components from the terminal. 💻
Stars: ✭ 879 (+2275.68%)
Mutual labels:  cli, terminal
Clifx
Declarative framework for building command line interfaces
Stars: ✭ 900 (+2332.43%)
Mutual labels:  cli, terminal
Tabulate
Table Maker for Modern C++
Stars: ✭ 862 (+2229.73%)
Mutual labels:  cli, terminal
Langterm
🕹️ WebGL-based VT220 emulator, made as a learning example and frontend for a text adventure
Stars: ✭ 35 (-5.41%)
Mutual labels:  cli, terminal
Git Praise
A nicer git blame.
Stars: ✭ 24 (-35.14%)
Mutual labels:  cli, terminal
Libspinner
A pure C single-header library with 70+ configurable terminal spinner/progress indicators.
Stars: ✭ 24 (-35.14%)
Mutual labels:  terminal, spinner
Diskonaut
Terminal disk space navigator 🔭
Stars: ✭ 856 (+2213.51%)
Mutual labels:  cli, terminal
Fluddy
🤝 A dependency-free command line utility for managing, updating, creating and launching Flask Apps.
Stars: ✭ 23 (-37.84%)
Mutual labels:  cli, terminal
Curlie
The power of curl, the ease of use of httpie.
Stars: ✭ 877 (+2270.27%)
Mutual labels:  cli, terminal
Lsankidb
☆ `ls` for your local Anki database.
Stars: ✭ 21 (-43.24%)
Mutual labels:  cli, terminal
Nord Guake
An arctic, north-bluish clean and elegant Guake color theme.
Stars: ✭ 20 (-45.95%)
Mutual labels:  cli, terminal
  • spinnercpp

spinnercpp is a simple header only library to add a spinner / progress indicator to any terminal application. spinnercpp is based on [https://github.com/briandowns/spinner]

Contributions welcome!

[[https://1.bp.blogspot.com/-dUjJ_XFIx8c/XZeajOvE7AI/AAAAAAAAF94/r7RJrJDfEs4ybrIPipTHgTFIUykfgUciwCLcBGAsYHQ/s1600/spinners.png]]

** Features

  • Start
  • Stop
  • Restart
  • Update the spinner speed
  • Prefix or append text
  • Output final string on spinner/indicator completion

** Examples

*** Simple use

#+BEGIN_SRC #include "../../spinnercpp.h"

int main() { auto spin = std::make_uniquespinnercpp::spinner(); spin->start(); std::this_thread::sleep_for(std::chrono::milliseconds(3000));

return 0; } #+END_SRC

*** Stop

#+BEGIN_SRC #include #include "../../spinnercpp.h"

using namespace std;

int main() { auto spin = std::make_uniquespinnercpp::spinner(); spin->start(); std::this_thread::sleep_for(std::chrono::milliseconds(3000)); spin->stop();

cout << "Stop" << endl;

return 0; } #+END_SRC

*** Update spin speed and restart the spinner

#+BEGIN_SRC auto spin = std::make_uniquespinnercpp::spinner(100ms); spin->start(); #+END_SRC

*** Choose the spinner

To use the charset 10 #+BEGIN_SRC auto spin = std::make_uniquespinnercpp::spinner(100ms, 10); spin->start(); #+END_SRC

*** Preffix and Suffix

#+BEGIN_SRC auto spin = std::make_uniquespinnercpp::spinner(100ms, 10, "> ", " |"); spin->start(); #+END_SRC

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].