Terminal based utility for good times!

This project follows the "learn by building" philosophy, where I implemented various C concepts by creating something fun
- Dark humor jokes via the JokeAPI
- Random fun facts
- Weather information for any city using wttr.in
- Color-coded terminal interface
- Download the latest release from releases
- Option 1: Run directly from the downloaded location
- Option 2: Run PowerShell as admin and set the "fun" command
# Create directory mkdir "C:\Program Files\fun" # Move executable move fun.exe "C:\Program Files\fun\" # Add to PATH (run in PowerShell as Administrator) [Environment]::SetEnvironmentVariable("Path", "$($env:Path);C:\Program Files\fun", "Machine")
- Download the latest release from releases
- Make it executable:
chmod +x fun_linux
- Run directly:
./fun_linux
- Optional - Install system-wide:
sudo mv fun_linux /usr/local/bin/fun
The project implements various C programming concepts:
- Screen manipulation using ANSI escape codes
\033[2J
- Clear screen\033[H
- Move cursor to top-left
- Color coding output using ANSI color codes and then resetting the color
- External API interaction using
system()
andcurl
- Using
fgets
instead ofscanf
for better string input handling - Seeding random numbers with
srand(time(NULL))
then generating random numbersrand()
- String manipulation with
strcspn
to remove newlines
- GCC or any C compiler
- curl installed on your system
- Add more interactive features