extra tput parameters

Franz Weckesser franz at meaddata.com
Mon Mar 11 04:52:55 AEST 1991


I've written a shell script which does some cursor positioning using
the tput cup capability.  Works great on my sun, but when I move it to
other machines (a sequent or an ibm RT), tput gives a usage error due
to the extra arguments (the cursor position coordinates).  I.e on my
sun, "tput cup 5 5" places the cursor at the coordinates 5,5, but on
an RT or Sequent "tput cup 5 5" complains about the number of
parameters (though "tput cup" provides a string with places for the
parameters).

The man pages seem to imply that the parameters will be put into the
return string by tput using tparm, but they never get the chance due
to the usage failure.  Is this a bug with earlier tput implementations? 
Is there any way to make use of the string passed back by tput?

Franz

================================================================= 
 Everything should be made as simple as possible, but no simpler
	- A.E.
================================================================= 



More information about the Comp.unix.shell mailing list