wx/src/functions/header.sh

22 lines
478 B
Bash
Raw Normal View History

2024-05-31 21:28:18 +00:00
wx-header(){
2024-05-31 22:11:20 +00:00
if [[ $2 == "h1" ]]
then
echo "=============================="
wx-repeat " " $((30/2-${#1}/2))
echo -n "$wxBold"
echo -n "$1"
echo -n "$wxNormal"
echo ""
echo "=============================="
fi
2024-05-31 21:28:18 +00:00
2024-05-31 22:11:20 +00:00
if [[ $2 == "h2" || -z $2 ]]
then
wx-start
wx-repeat " " $((30/2-6/2-${#1}/2))
echo -n ">> $1 <<"
echo ""
echo "------------------------------"
fi
2024-05-31 21:28:18 +00:00
}