mirror of
https://github.com/elenapan/dotfiles.git
synced 2025-12-26 15:14:58 +08:00
Former-commit-id: 4295c806ec
Former-commit-id: c87f8e56cd2677dbb5a2a15e90f879a9fa1a1a6b
Former-commit-id: 1ad787023efcecb57853b9a5103dff461192e56d
Former-commit-id: 595bf6d1621414a7b6e7d8e9acb374ce52687596
24 lines
1 KiB
Bash
Executable file
24 lines
1 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
# Show the terminal colourscheme as blocks
|
|
# Inspired by u/dkeg
|
|
# Cheers! Addy
|
|
|
|
f=3 b=4
|
|
for j in f b; do
|
|
for i in {0..7}; do
|
|
printf -v $j$i %b "\e[${!j}${i}m"
|
|
done
|
|
done
|
|
d=$'\e[1m'
|
|
t=$'\e[0m'
|
|
v=$'\e[7m'
|
|
|
|
cat << EOF
|
|
|
|
$f1██████$d██$t $f2██████$d██$t $f3██████$d██$t $f4██████$d██$t $f5██████$d██$t $f6██████$d██$t
|
|
$f1██████$d██$t $f2██████$d██$t $f3██████$d██$t $f4██████$d██$t $f5██████$d██$t $f6██████$d██$t
|
|
$f1██████$d██$t $f2██████$d██$t $f3██████$d██$t $f4██████$d██$t $f5██████$d██$t $f6██████$d██$t
|
|
$ft██████$d$f7██$t $ft██████$d$f7██$t $ft██████$d$f7██$t $ft██████$d$f7██$t $ft██████$d$f7██$t $ft██████$d$f7██$t
|
|
|
|
EOF
|