Boxes, chatgpt update
15. 1. 2023box โ
Needs โboxesโ and โlolcatโ.
box () { echo "$*" | boxes -d simple -a hcvc | lolcat -p 50 }
- -a hcvc # will center stuff
- -p 50 # the amount of color spread, defaults to 3.
Example
Links:
Boxes https://boxes.thomasjensen.com/examples.html
Random findings โ
train โ
# colorful animated train
sl | lolcat
Nice unicode chars for rounded box โ
# this does look good in terminal
# โญโโโโโโโโโโโโโโโฎ
# โ test โ
# โฐโโโโโโโโโโโโโโโฏ
Roundbox script โ
An attempt at roundbox script,
Only single line text is supported.
Research โ
Multiline should be possible as well, get longest line first, something like
printf "woot\nwooot\nwoooot\n" | while read r; do; echo "${#r}| $r |"; done
4| woot |
5| wooot |
6| woooot |
ChatGPT multi-line roundbox script โ
Update: And chatgpt update that supposedly brings multi-line text into the game.
Example:
echo "NOOOOOOOOOOOO\n WAAAAAAAAAAAAAAAY" | multibox
# returns:
โญโโโโโโโโโโโโโโโโโโโโฎ
โ NOOOOOOOOOOOO โ
โ WAAAAAAAAAAAAAAAY โ
โฐโโโโโโโโโโโโโโโโโโโโฏ