25 lines
643 B
Bash
25 lines
643 B
Bash
: paint crt screen
|
|
exec 1>/dev/tty
|
|
cat <<SCREEN
|
|
${CLEAR} Mail List Entry Form
|
|
|
|
Name : Company:
|
|
Street:
|
|
City : State : ZIP:
|
|
Phone :
|
|
SCREEN
|
|
: read user input
|
|
cursor 3 9 ; read Name;
|
|
cursor 3 37 ; read Company;
|
|
cursor 4 9 ; read Street;
|
|
cursor 5 9 ; read City;
|
|
cursor 5 37 ; read State;
|
|
cursor 5 56 ; read ZIP;
|
|
cursor 6 9 ; read Phone;
|
|
: output table head
|
|
exec 1>&2
|
|
echo "Name Company Street City State ZIP Phone"
|
|
echo "---- ------- ------ ---- ----- --- -----"
|
|
: append row
|
|
echo "$Name $Company $Street $City $State $ZIP $Phone"
|