From 07fde8af8b9747ad9b80832c07bd5901ca33db13 Mon Sep 17 00:00:00 2001 From: pyr0ball Date: Wed, 8 Mar 2023 14:12:11 -0800 Subject: [PATCH] introduced sub-box border function. needs work --- functions | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/functions b/functions index 397f2f9..07e99f9 100644 --- a/functions +++ b/functions @@ -501,6 +501,17 @@ boxborder(){ boxbottom } +subboxborder(){ + BOXWIDTH_ORG=$BOXWIDTH + BOXWIDTH=$(($BOXWIDTH*75/100)) + boxline $(boxtop) + for line in "$@" ; do + boxline $(boxline "$line") + done + boxline $(boxbottom) + BOXWIDTH=$BOXWIDTH_ORG +} + success(){ _line="$@" echo -e "\n"