Boxes, chatgpt update

box โ†“

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
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,

roundbox

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 โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ