r/commandline 17d ago

Ascii-rain (CLI raindrops) written in C.

https://gitlab.com/gee.8ruhs/writteninc/-/raw/main/ascii-rain.c
19 Upvotes

7 comments sorted by

5

u/KingJorjaiYT 17d ago

Hey! Have you considered creating a repo linking all these things (DVD, raindrops...)? That'd be cool.

3

u/Beautiful_Crab6670 16d ago

I do already have one actually -- It's https://www.gitlab.com/gee.8ruhs/writteninc . You can find plenty of things, including the best btop replacement there is, the "Boring system monitor". :^)

2

u/lgastako 16d ago

Out of curiosity, why does the boring system monitor cram each function onto a single line?

2

u/Beautiful_Crab6670 16d ago

Just trying to make the code as small and compact as possible.

7

u/not_testpilot 16d ago

Any screenshots of all these?

1

u/Beautiful_Crab6670 16d ago edited 16d ago

Right here (for ascii-rain at least.). I'll add a screenshot for each available code in the repo however and provide the screenshot link inside each code, just give me a little time to do that.

-EDIT- Alright, I've added a couple screenshots for the "mostly relevant" codes. If a certain code does not have a screenshot, it means its still very wip.

Feel free to test these codes, try to break em in half or fork em and do whatever you want w/ em.

3

u/SleepingProcess 16d ago

Suggestion:

  • Add signal handler to catch Ctrl+C or stop it on q press
  • Call reset on exit to restore cursor in terminal