2024-05-31 21:28:18 +00:00
|
|
|
wx-header(){
|
2024-05-31 22:11:20 +00:00
|
|
|
if [[ $2 == "h1" ]]
|
|
|
|
then
|
2024-05-31 22:53:48 +00:00
|
|
|
echo ""
|
|
|
|
echo ""
|
|
|
|
echo ""
|
2024-05-31 22:11:20 +00:00
|
|
|
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
|
|
|
}
|