9fd46257a217364f5dce20a0bf80a66a7cf69c5a
Description
Puts a spinning ASCII torus (mathematical name for a doughnut-shaped object) on the terminal. Original post by Andy Sloane can be found here.
How to run
- Clone or download and extract the repository
- Open a terminal inside the project directory
- Follow the steps for your Operating System
For Windows
Prerequisites for Windows
- Install a compiler like MinGW-w64
How to build and run
gcc -Ofast -o torus.exe torus.c -lmin the shell to compile using MinGW-w64.\torus.exein the shell to run the program
For Linux
Prerequisites for Debian based distributions
sudo apt install gccto install the required compiler
Prerequisites for Arch based distributions
sudo pacman -S gccto install the required compiler
How to compile, run and clean
maketo compile./torusto runmake cleanto clean
Updates
- Added support for dynamic resolution based on current terminal size
- Added Windows support
- Added support for on-the-fly dynamic resolution
- Added help option to the program
Screenshot
Languages
C
98.3%
Makefile
1.7%
