GithubHelp home page GithubHelp logo

sambattalio / chad_stride Goto Github PK

View Code? Open in Web Editor NEW
29.0 4.0 14.0 80 KB

A small curses program to stride across your terminal

License: GNU General Public License v3.0

Makefile 2.21% C 89.67% Roff 6.55% Dockerfile 1.57%
c curses chad stride terminal chadstride chad-stride hacktoberfest

chad_stride's Introduction

logo
Chad Stride

Like sl & cmatrix, but better.

outch!
Chad

Features

On call, chad by default strides across your screen once and exits. However, his activity can be changed by the following flags:

  • -c [r|g|b|m|c|y]: Change chad's color & enable color changing via keyboard input while running. (thanks @ginglis13!)

  • -a SLEEP_TIME: Adjust sleep rate (in nanoseconds). Small number == faster chad. Defaults to 150000.

  • -f: Chad ignores signals (thanks @pbui!)

  • -b SIZE: Increase spacing of chad by SIZE

  • -l: infinite looping

  • -s: Chad stays in the center, striding in place.

  • -m MESSAGE: Display message at bottom center of screen

  • -R: Chad strolls with a rainbow effect

  • -p: Chad flips when he hits the edge of the screen

Installation

Mac

Install from source:

make
make install

Homebrew:

brew install sambattalio/homebrew-formulae/chad_stride

BSD/Linux

Install from source:

make
make install

You can install to a custom PREFIX by doing the following:

make PREFIX=~/.local install

Uninstall:

make uninstall

AUR:

yay -S chad_stride

Snap:

snap install --edge chad-stride

Windows

Someone please tell me

Contributing

This basically a read-only repository. Everything happens inside the command, as intended by Terry.

chad_stride's People

Contributors

benjaminlyons avatar ginglis13 avatar noyoshi avatar nuolong avatar pbui avatar sambattalio avatar wtheisen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

chad_stride's Issues

Smaller sleeps

As brought up by SSH users, change sleeps to be smaller

Clean up code

Right now it looks like there is some spacing inconsistencies and some weird gross code at places. Should be easy to fix the formatting, and maybe run it through a linter or something.

Center Chad on Screen

We should probably vertically center Chad always, and horizontally center chad in STAY mode.

Bool'in?

We should probably add bool's instead of just integers

Add to other package managers!!

Right now we are on AUR and self host a home-brew repo. It'd be cool if someone could bring it on their distro as well!
PR the instructions to the README once you are done if you do!!

Center Chad Vertically

Easy fix, should just have to use the variable row and then add row/2 - CHAD_HEIGHT/2 to every y value.

Chad Flip

Have Chad Flip and walk the other direction when he hits an edge of the screen.

Keep terminal background

Prolly use getenv or something. We just need to make sure that we keep background color the same before shell enthusiasts reee

Find a way to only have one chad array

I'm not sure if its possible, but instead of having a forwards and backwards chad, it'd be sick if we only had one and could maybe "Reverse" it with the ncurses library.

wasn't able to install new version via brew

Tried to brew install chad stride but the checksums didn't seem to match:

==> Installing chad_stride from sambattalio/formulae
==> Downloading https://github.com/sambattalio/chad_stride/archive/0.69420.tar.gz
Already downloaded: /Users/gavininglis/Library/Caches/Homebrew/downloads/1a19d4ba70b7a8ced43204fb21dc921c5a0e1c45d0307bd30cdb8773701b2aec--chad_stride-0.69420.tar.gz
Error: An exception occurred within a child process:
  ChecksumMismatchError: SHA256 mismatch
Expected: 3ed0b5e5e860d6d445884272b5b9668156efd2e699a82abcf478833b444bfd9c
  Actual: 7b8995f2cf75a4211eae61dcee2e2691b8a68cc2ed573e35c798672d33a30432
 Archive: /Users/gavininglis/Library/Caches/Homebrew/downloads/1a19d4ba70b7a8ced43204fb21dc921c5a0e1c45d0307bd30cdb8773701b2aec--chad_stride-0.69420.tar.gz
To retry an incomplete download, remove the file above.

add color

chad stride looks drab. could use some color maybe?

Text handling

I think it would be cool to allow a message to be displayed, maybe at bottom of chad or screen?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.