kaisalhassani
Programmer
Hi
I have a function to draw a box in UNIX shell but I would like to draw a baox with a solid line.
What is the ANSI escape sequence to draw a solid lines.
My scripts is
function draw_box
{
tput clear
echo "\033[4;2H +---------------------------------------------------------------
-----------+"
cnt=5
while [[ $cnt != 24 ]]
do
echo "\033[$cnt;2H |
|"
(( cnt += 1 ))
done
echo "\033[28;2H +--------------------------------------------------------------
------------+"
}
draw_box
Exit
The output is:-
+-----------+
| |
| |
| |
+-----------+
I have a function to draw a box in UNIX shell but I would like to draw a baox with a solid line.
What is the ANSI escape sequence to draw a solid lines.
My scripts is
function draw_box
{
tput clear
echo "\033[4;2H +---------------------------------------------------------------
-----------+"
cnt=5
while [[ $cnt != 24 ]]
do
echo "\033[$cnt;2H |
|"
(( cnt += 1 ))
done
echo "\033[28;2H +--------------------------------------------------------------
------------+"
}
draw_box
Exit
The output is:-
+-----------+
| |
| |
| |
+-----------+