๐Ÿ“ฆ phagenlocher / pipes.go

๐Ÿ•ณ A pipes.sh clone written in Golang

โ˜… 8 stars โ‘‚ 1 forks ๐Ÿ‘ 8 watching โš–๏ธ MIT License
๐Ÿ“ฅ Clone https://github.com/phagenlocher/pipes.go.git
HTTPS git clone https://github.com/phagenlocher/pipes.go.git
SSH git clone git@github.com:phagenlocher/pipes.go.git
CLI gh repo clone phagenlocher/pipes.go
Philipp Hagenlocher Philipp Hagenlocher Update README.md a558028 2 years ago ๐Ÿ“ History
๐Ÿ“‚ master View all commits โ†’
๐Ÿ“ doc
๐Ÿ“„ go.mod
๐Ÿ“„ go.sum
๐Ÿ“„ LICENSE
๐Ÿ“„ pipes.go
๐Ÿ“„ README.md
๐Ÿ“„ README.md

pipes.go

Screenshot

Description

A pipes.sh clone written in Golang. While the original cannot be beaten in terms of compatibility and file size, it has a bit of a performance issue. pipes.go tries to fix this problem with high concurrency. This results in lower CPU usage and smoother animation.

Usage

  • -C disables color
  • -B disables bold output
  • -D additionally uses dimmed colors
  • -N lets the pipes change color when exiting the screen (just like in pipes.sh)
  • -R lets the pipes start from random coordinates
  • -p specifies the amount of pipes
  • -c sets a predefined colorscheme
  • -t sets the character set
  • -r specifies after how many updates to clear the screen
  • -f sets the targeted frames per second
  • -s sets the probability of not changing the direction for a pipe

Building & Installation

You will need to have developer's libraries for ncurses, git and Golang installed. On Debian or Ubuntu you can use this:

apt install libncurses-dev git golang

You can build and install the executable using go:

go build
go install

You can use go list to find the executable's install path:

go list -f '{{.Target}}'