1833178 Members
2877 Online
110051 Solutions
New Discussion

Cursor positioning

 
SOLVED
Go to solution
Neil Edwards
Advisor

Cursor positioning

Is there a way to move the cursor to a specific location from the shell?

Thanks, Neil
It wasn't me.
5 REPLIES 5
Carlos Fernandez Riera
Honored Contributor

Re: Cursor positioning

tput cup row,file

See man terminfo
unsupported
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: Cursor positioning

Hi Neil:

Does a hog like slop? Yes, it's quite easy.

tput cup row col

e.g. tput cup 10 20 would move the cursor to row 10 column 20.

Man tput, terminfo for details. 'cup' --> 'cursor positioning' in terminfo speak.

Regards, Clay
If it ain't broke, I can fix that.
Carlos Fernandez Riera
Honored Contributor

Re: Cursor positioning

Sorry..

cursor on line 10, column 20

tput cup 10 20
unsupported
S.K. Chan
Honored Contributor

Re: Cursor positioning

Take a look at 'tput' command.
# man tput
Neil Edwards
Advisor

Re: Cursor positioning

Thanks guys. That was fast.

Neil
It wasn't me.