Skip to content

Instantly share code, notes, and snippets.

View LemonBoy's full-sized avatar

LemonBoy

View GitHub Profile
@c00kiemon5ter
c00kiemon5ter / pipes
Created April 22, 2012 15:14
fill your terminal with colored pipes/tubes
#!/bin/bash -e
declare -i f=75 s=13 r=5000 t=0 c=1 n=0 l=0
declare -i x=$((w/2)) y=$((h/2))
declare -ar v=( [00]="\x83" [01]="\x8f" [03]="\x93"
[10]="\x9b" [11]="\x81" [12]="\x93"
[21]="\x97" [22]="\x83" [23]="\x9b"
[30]="\x97" [32]="\x8f" [33]="\x81"
)
trap "clear; tput rmcup; tput cnorm" EXIT