blob: a663336b049b32200ba0bcf0fbcdf4e47f70e9aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/sh
read title
clear
columns=$(tput cols)
rows=$(tput lines)
tput clear
y=$((($columns-$(echo -n $title | head -1 | wc -c))/2))
x=$((($rows-$(echo $title | wc -l))/2))
while read p; do
tput cup $x $y
echo "$p"
x=$((x+1))
done <<< "$title";
tput cup $rows 0
|