1753844 Members
7705 Online
108806 Solutions
New Discussion

tput error

 
Praveen Bezawada
Respected Contributor

tput error

Hi
I am doing tput clear and echoing something on the screen, i read some input and when i do tput clear and echo again , the test comes at the bottom of the screen and not atlines I specify. It is something like this

tput clear
tput cup 3,10
echo "Enter your name"
tput cup 3,50
read input
tput clear
tput cup 3,10
echo "Hello"

hello is displayed at the bottom of the screen.
Can anyone help.
Thanks
Praveen
1 REPLY 1
Andreas Voss
Honored Contributor

Re: tput error

Hi,

instead using the ',' you have to use a ' ' (space) to delimter the cursor positions.

Use: tput cup 3 50
instead of: tput cup 3,50

Regards