Skip to content

Commit 787f3b7

Browse files
Bryanstark
Bryan
authored andcommitted
add small single row tiefighters for small laptop users :P (#9)
* add small single row tiefighters for small laptop users :P * add color preview for tiefighter1row
1 parent 46cdb3f commit 787f3b7

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

color-scripts/tiefighter1row

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
#!/bin/sh
2+
3+
# ANSI Color -- use these variables to easily have different color
4+
# and format output. Make sure to output the reset sequence after
5+
# colors (f = foreground, b = background), and use the 'off'
6+
# feature for anything you turn on.
7+
# Author: pfh
8+
# Source: http://crunchbang.org/forums/viewtopic.php?pid=129265#p129265
9+
10+
initializeANSI()
11+
{
12+
esc=""
13+
14+
blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m"
15+
yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m"
16+
cyanf="${esc}[36m"; whitef="${esc}[37m"
17+
18+
blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m"
19+
yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m"
20+
cyanb="${esc}[46m"; whiteb="${esc}[47m"
21+
22+
boldon="${esc}[1m"; boldoff="${esc}[22m"
23+
italicson="${esc}[3m"; italicsoff="${esc}[23m"
24+
ulon="${esc}[4m"; uloff="${esc}[24m"
25+
invon="${esc}[7m"; invoff="${esc}[27m"
26+
27+
reset="${esc}[0m"
28+
}
29+
30+
# note in this first use that switching colors doesn't require a reset
31+
# first - the new color overrides the old one.
32+
# ****************************** Building blocks: █ ▓ ▒ ░ ▄ ▀ ▐ ▌ ● ═ ║ ╔ ╦ ╗ ╚ ╩ ╝ ■ ▬ ▲ ▼ ◄ ►
33+
34+
initializeANSI
35+
36+
cat << EOF
37+
38+
${greenf}█ █ ${blackf}█ █ ${bluef}█ █ ${purplef}█ █ ${cyanf}█ █
39+
${greenf}█ ▄▄▄ █ ${blackf}█ ▄▄▄ █ ${bluef}█ ▄▄▄ █ ${purplef}█ ▄▄▄ █ ${cyanf}█ ▄▄▄ █
40+
${greenf}█▄▄██▀██▄▄█ ${blackf}█▄▄██▀██▄▄█ ${bluef}█▄▄██▀██▄▄█ ${purplef}█▄▄██▀██▄▄█ ${cyanf}█▄▄██▀██▄▄█
41+
${greenf}█▀▀█████▀▀█ ${blackf}█▀▀█████▀▀█ ${bluef}█▀▀█████▀▀█ ${purplef}█▀▀█████▀▀█ ${cyanf}█▀▀█████▀▀█
42+
${greenf}█ ▀▀▀ █ ${blackf}█ ▀▀▀ █ ${bluef}█ ▀▀▀ █ ${purplef}█ ▀▀▀ █ ${cyanf}█ ▀▀▀ █
43+
${greenf}█ █ ${blackf}█ █ ${bluef}█ █ ${purplef}█ █ ${cyanf}█ █
44+
${reset}
45+
46+
EOF
3.08 KB
Loading

0 commit comments

Comments
 (0)